kube

package
v0.4.34 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialiseSettings

func InitialiseSettings(k8sClient *client.K8sClient) error

func MakeSignature

func MakeSignature(size int) ([]byte, error)

func MigrateDexConfigFromAcdToDevtronSecret added in v0.4.31

func MigrateDexConfigFromAcdToDevtronSecret(k8sClient *client.K8sClient) (bool, error)

Types

type KubeUtil

type KubeUtil struct {
	// contains filtered or unexported fields
}

func NewKubeUtil

func NewKubeUtil(client kubernetes.Interface) *KubeUtil

NewUtil returns a new kubeUtil receiver

func (*KubeUtil) CreateOrUpdateSecret

func (ku *KubeUtil) CreateOrUpdateSecret(ns string, name string, update updateFn) error

CreateOrUpdateSecret creates or updates a secret, using the update function. If the secret is created, its labels and annotations are set if non-empty in the receiver. If the secret is updated, labels and annotations will not be touched.

func (*KubeUtil) CreateOrUpdateSecretData

func (ku *KubeUtil) CreateOrUpdateSecretData(ns string, name string, data map[string][]byte, merge bool) error

CreateOrUpdateSecretData creates or updates a secret name in namespace ns, with given data. If merge is true, merges data with the existing data, otherwise overwrites it.

func (*KubeUtil) CreateOrUpdateSecretField

func (ku *KubeUtil) CreateOrUpdateSecretField(ns string, name string, field string, value string) error

CreateOrUpdateSecretField creates or updates a secret name in namespace ns, with given value for given field

func (*KubeUtil) DeepCopy

func (ku *KubeUtil) DeepCopy() *KubeUtil

DeepCopy returns a copy of ku

func (*KubeUtil) WithAnnotations

func (ku *KubeUtil) WithAnnotations(annotations map[string]string) *KubeUtil

WithAnnotations returns a copy of ku with annotations attached

func (*KubeUtil) WithLabels

func (ku *KubeUtil) WithLabels(labels map[string]string) *KubeUtil

WithLabels returns a copy of ku with labels attached

Jump to

Keyboard shortcuts

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