utils

package
v0.104.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteMapToRawMessageMap

func ByteMapToRawMessageMap(m map[string][]byte) (map[string]json.RawMessage, error)

ByteMapToRawMessageMap converts a map of bytes to a map of json.RawMessages

func ConfigMapRefFromLocalRef

func ConfigMapRefFromLocalRef(localConfigMapRef *lsv1alpha1.LocalConfigMapReference, namespace string) *lsv1alpha1.ConfigMapReference

func ResolveConfigMapReference

func ResolveConfigMapReference(ctx context.Context, kubeClient client.Client, configMapRef *lsv1alpha1.ConfigMapReference) (map[string][]byte, []byte, int64, error)

ResolveConfigMapReference is an auxiliary function that fetches the content of a configmap as specified by the given ConfigMapReference The first returned value is the complete configmap content, the second one the specified key (if set), the third one is the generation of the configmap

func ResolveSecretReference

func ResolveSecretReference(ctx context.Context, kubeClient client.Client, secretRef *lsv1alpha1.SecretReference) (map[string][]byte, []byte, int64, error)

ResolveSecretReference is an auxiliary function that fetches the content of a secret as specified by the given SecretReference The first returned value is the complete secret content, the second one the specified key (if set), the third one is the generation of the secret

func SecretRefFromLocalRef

func SecretRefFromLocalRef(localSecretRef *lsv1alpha1.LocalSecretReference, namespace string) *lsv1alpha1.SecretReference

func StringMapToRawMessageMap

func StringMapToRawMessageMap(m map[string]string) (map[string]json.RawMessage, error)

StringMapToRawMessageMap converts a map of strings to a map of json.RawMessages

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL