# Functions
No description provided by the author
ArgsAddFlagValue performs upsert of a flag in the arguments map, returning true if created.
ArgsFromMapToSlice create the slice of args, and sorting the resulting output in order to make it idempotent.
ArgsFromSliceToMap transforms a slice of string into a map, simplifying the subsequent mangling.
ArgsRemoveFlag removes a flag from the arguments map, returning true if found and removed.
CalculateMapChecksum orders the map according to its key, and calculating the overall md5 of the values.
CreateOrUpdateWithConflict is a helper function that wraps the RetryOnConflict around the CreateOrUpdate function: this allows to fetch from the cache the latest modified object an try to apply the changes defined in the MutateFn without enqueuing back the request in order to get the latest changes of the resource.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EncodeToJSON returns the given object in JSON format and the error, respecting the Kubernetes struct tags.
EncodeToYaml returns the given object in yaml format and the error.
No description provided by the author
GetObjectChecksum returns the annotation checksum in case this is set, otherwise, an empty string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HasNamedContainer finds the Container in the provided slice by its name, returning a boolean if found, and its index.
HasNamedVolume finds the Volume in the provided slice by its name, returning a boolean if found, and its index.
HasNamedVolumeMount finds the VolumeMount in the provided slice by its name, returning a boolean if found, and its index.
No description provided by the author
No description provided by the author
SetObjectChecksum calculates the checksum for the given map and store it in the object annotations.