k8s_utils

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package k8s_utils ...

Package k8s_utils ...

Package k8s_utils ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeCreateCM

func FakeCreateCM(kc KubernetesClient, clsuterInfofilepath string) error

FakeCreateCM ...

func FakeCreateSecret

func FakeCreateSecret(kc KubernetesClient, fakeAuthType, secretdatafilepath string) error

FakeCreateSecret ...

func FakeCreateSecretWithKey

func FakeCreateSecretWithKey(kc KubernetesClient, secretName, dataName, secretdatafilepath string) error

FakeCreateSecretWithKey ...

func GetConfigMapData

func GetConfigMapData(kc KubernetesClient, configMapName, dataName string) (string, error)

GetConfigMapData ...

func GetSecretData

func GetSecretData(kc KubernetesClient, secretName, secretKey string) (string, error)

GetSecretData ...

Types

type KubernetesClient

type KubernetesClient struct {
	Namespace string               `validate:"required"`
	Clientset kubernetes.Interface `validate:"required"`
}

KubernetesClient ...

func FakeGetk8sClientSet

func FakeGetk8sClientSet() (KubernetesClient, error)

FakeGetk8sClientSet ...

func Getk8sClientSet

func Getk8sClientSet() (KubernetesClient, error)

Getk8sClientSet ...

Jump to

Keyboard shortcuts

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