kubectl

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespace added in v1.2.0

func GetNamespace(ctx context.Context, cli client.Client, nsName string) (*corev1.Namespace, error)

GetNamespace gets namespace

func GetSecret

func GetSecret(ctx context.Context, cli client.Client, secretName, namespace string) (*corev1.Secret, error)

GetSecret gets secret matching with secret's name and namespace

func GetServiceAccount

func GetServiceAccount(ctx context.Context, cli client.Client, selector map[string]string) (*corev1.ServiceAccountList, error)

GetServiceAccount gets serviceAccounts managed by cks

Types

type KubeClient

type KubeClient struct{}

func (*KubeClient) GetClient

func (c *KubeClient) GetClient() (client.Client, error)

GetClient gets kube client

Jump to

Keyboard shortcuts

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