Documentation ¶
Index ¶
- func InitialiseSettings(k8sClient *client.K8sClient) error
- func MakeSignature(size int) ([]byte, error)
- func MigrateDexConfigFromAcdToDevtronSecret(k8sClient *client.K8sClient) (bool, error)
- type KubeUtil
- func (ku *KubeUtil) CreateOrUpdateSecret(ns string, name string, update updateFn) error
- func (ku *KubeUtil) CreateOrUpdateSecretData(ns string, name string, data map[string][]byte, merge bool) error
- func (ku *KubeUtil) CreateOrUpdateSecretField(ns string, name string, field string, value string) error
- func (ku *KubeUtil) DeepCopy() *KubeUtil
- func (ku *KubeUtil) WithAnnotations(annotations map[string]string) *KubeUtil
- func (ku *KubeUtil) WithLabels(labels map[string]string) *KubeUtil
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitialiseSettings ¶
func MakeSignature ¶
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 ¶
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) WithAnnotations ¶
WithAnnotations returns a copy of ku with annotations attached
Click to show internal directories.
Click to hide internal directories.