Documentation ¶
Index ¶
- func CleanCommonKubernetesFields(obj *unstructured.Unstructured)
- func CleanSecret(state *config.State)
- func GetGVKForObject(obj runtime.Object) (schema.GroupVersionKind, error)
- func KubernetesJson2Yaml(obj runtime.Object) (string, error)
- func RestartKubesealPods(labels string, state *config.State)
- func SetGVKForObject(obj runtime.Object)
- func SetKubernetesclient(state *config.State)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanCommonKubernetesFields ¶
func CleanCommonKubernetesFields(obj *unstructured.Unstructured)
CleanCommonKubernetesFields - To clean common kubernetes fields before processing.
func CleanSecret ¶
CleanSecret - Utils to cleanup secret by updating custom labels and restarting kubeseal pods.
func GetGVKForObject ¶
func GetGVKForObject(obj runtime.Object) (schema.GroupVersionKind, error)
GetGVKForObject - Retrieve Object type and version for a given object. K8s API intentionnaly remove this fields.
func KubernetesJson2Yaml ¶
KubernetesJson2Yaml - Utils to convert k8s json into yaml
func RestartKubesealPods ¶
RestartKubesealPods - Utils to restart kubeseal pods by deleting them and let k8s recreate them.
func SetGVKForObject ¶
SetGVKForObject - Set API version and Object type for a given k8s object.
func SetKubernetesclient ¶
SetKubernetesclient - Utils to define and init the right k8s client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.