k8sutils

package
v0.0.0-...-c1bfec5 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

func CleanSecret(state *config.State)

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

func KubernetesJson2Yaml(obj runtime.Object) (string, error)

KubernetesJson2Yaml - Utils to convert k8s json into yaml

func RestartKubesealPods

func RestartKubesealPods(labels string, state *config.State)

RestartKubesealPods - Utils to restart kubeseal pods by deleting them and let k8s recreate them.

func SetGVKForObject

func SetGVKForObject(obj runtime.Object)

SetGVKForObject - Set API version and Object type for a given k8s object.

func SetKubernetesclient

func SetKubernetesclient(state *config.State)

SetKubernetesclient - Utils to define and init the right k8s client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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