kube

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Annotate

func Annotate(resource, annotation, ns string)

func Apply

func Apply(args ...string) *Buffer

func CreateApiKeySecret

func CreateApiKeySecret(keyName, ns string)

func CreateApiKeySecretFrom

func CreateApiKeySecretFrom(keyName, ns, orgId, public, private string)

func CreateConfigMapWithLiterals

func CreateConfigMapWithLiterals(configName string, ns string, keys ...string)

func CreateNamespace

func CreateNamespace(name string) *Buffer

func CreateRandomUserSecret added in v1.0.0

func CreateRandomUserSecret(name, ns string)

func CreateUserSecret

func CreateUserSecret(secret, name, ns string)

func Delete

func Delete(args ...string) *Buffer

func DeleteApiKeySecret

func DeleteApiKeySecret(keyName, ns string)

func DeleteNamespace

func DeleteNamespace(ns string) *Buffer

func DeleteResource

func DeleteResource(rType, name, ns string)

func DescribeOperatorPod

func DescribeOperatorPod(ns string) string

DescribeOperatorPod performs "kubectl describe" to get Operator pod information

func DescribeTestApp

func DescribeTestApp(label, ns string) []byte

func GenKubeVersion

func GenKubeVersion(fullVersion string) string

GenKubeVersion

func GetClusterDump added in v0.8.0

func GetClusterDump(output string)

func GetClusterResource

func GetClusterResource(namespace, rName string) v1.AtlasDeployment

GetClusterResource

func GetGeneration

func GetGeneration(ns, resourceName string) string

GetGeneration .status.observedGeneration

func GetJsonResource

func GetJsonResource(resource string, ns string) []byte

func GetK8sClusterStateName

func GetK8sClusterStateName(ns, rName string) string

func GetLogs added in v0.8.0

func GetLogs(label, ns string) []byte

func GetManagerLogs

func GetManagerLogs(ns string) []byte

func GetPodStatus

func GetPodStatus(ns string) func() string

GetPodStatus status.phase

func GetPrivateEndpoint

func GetPrivateEndpoint(resource, ns string) []byte

func GetProjectResource

func GetProjectResource(namespace, rName string) []byte

GetProjectResource

func GetResourceCreationTimestamp

func GetResourceCreationTimestamp(resource, name, ns string) []byte

func GetStatusCondition

func GetStatusCondition(statusType, ns string, atlasname string) string

GetStatusCondition .status.conditions.type=Ready.status

func GetStatusPhase

func GetStatusPhase(ns string, args ...string) string

func GetVersionOutput

func GetVersionOutput() *Buffer

func GetYamlResource

func GetYamlResource(resource string, ns string) []byte

func HasConfigMap

func HasConfigMap(configName, ns string) bool

func LabelResourceByLabel added in v0.8.0

func LabelResourceByLabel(resource, newLabel, ns, labeled string)

func SwitchContext

func SwitchContext(name string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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