Documentation ¶
Index ¶
- func EnsureConfigMaps(ctx context.Context, h *helper.Helper, obj client.Object, cms []util.Template, ...) error
- func GetConfigMap(ctx context.Context, h *helper.Helper, object client.Object, ...) (*corev1.ConfigMap, ctrl.Result, error)
- func GetConfigMapAndHashWithName(ctx context.Context, h *helper.Helper, configMapName string, namespace string) (*corev1.ConfigMap, string, error)
- func GetConfigMaps(ctx context.Context, h *helper.Helper, obj client.Object, configMaps []string, ...) ([]util.Hash, error)
- func Hash(configMap *corev1.ConfigMap) (string, error)
- func VerifyConfigMap(ctx context.Context, configMapName types.NamespacedName, ...) (string, ctrl.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureConfigMaps ¶
func EnsureConfigMaps( ctx context.Context, h *helper.Helper, obj client.Object, cms []util.Template, envVars *map[string]env.Setter, ) error
EnsureConfigMaps - get all configmaps required, verify they exist and add the hash to env and status
func GetConfigMap ¶
func GetConfigMap( ctx context.Context, h *helper.Helper, object client.Object, configMapName string, requeueTimeout time.Duration, ) (*corev1.ConfigMap, ctrl.Result, error)
GetConfigMap - Get config map
if the config map is not found, requeue after requeueTimeout
func GetConfigMapAndHashWithName ¶
func GetConfigMapAndHashWithName( ctx context.Context, h *helper.Helper, configMapName string, namespace string, ) (*corev1.ConfigMap, string, error)
GetConfigMapAndHashWithName -
func GetConfigMaps ¶
func GetConfigMaps( ctx context.Context, h *helper.Helper, obj client.Object, configMaps []string, namespace string, envVars *map[string]env.Setter, ) ([]util.Hash, error)
GetConfigMaps - get all configmaps required, verify they exist and add the hash to env and status
func Hash ¶
Hash function creates a hash of a ConfigMap's Data and BinaryData fields and returns it as a safe encoded string.
func VerifyConfigMap ¶
func VerifyConfigMap( ctx context.Context, configMapName types.NamespacedName, expectedFields []string, reader client.Reader, requeueTimeout time.Duration, ) (string, ctrl.Result, error)
VerifyConfigMap - verifies if the ConfigMap object exists and the expected fields are in the ConfigMap. It returns a hash of the values of the expected fields.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.