util

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCRD

func ApplyCRD(ctx context.Context, cfg *rest.Config) error

ApplyCRD applies custom resource definitions for kms-secrets which is located in config/crd.

func ApplyRBAC

func ApplyRBAC(ctx context.Context, cfg *rest.Config) error

ApplyRBAC applies role based access control for operator which is located in config/rbac.

func DeleteCRD

func DeleteCRD(ctx context.Context, cfg *rest.Config) error

DeleteCRD deletes custom resource definitions for kms-secrets.

func DeleteRBAC

func DeleteRBAC(ctx context.Context, cfg *rest.Config) error

DeleteRBAC deletes role based access control for operator.

func EncryptString

func EncryptString(str, keyID, region string) ([]byte, error)

EncryptString encrypts a string using provided KMSKeyID.

func FindContainer

func FindContainer(pod *corev1.Pod, containerName string) *corev1.Container

FindContainer finds a container in the pod.

func FindMount

func FindMount(mounts []corev1.VolumeMount, volumeName string) *corev1.VolumeMount

FindMount finds a volume in the volumeMounts.

func FindVolume

func FindVolume(volumes []corev1.Volume, volumeName string) *corev1.Volume

FindVolume finds a volume in the volumes.

func WaitPodRunning

func WaitPodRunning(podList *corev1.PodList) (bool, error)

WaitPodRunning waits until specified pods are running.

Types

This section is empty.

Jump to

Keyboard shortcuts

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