k8s

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	RestConfig *rest.Config
	ClientSet  *kubernetes.Clientset
}

func NewK8sClient

func NewK8sClient(configFlags *genericclioptions.ConfigFlags) (*Client, error)

func (*Client) CheckClusterRoleBinding

func (c *Client) CheckClusterRoleBinding() (*rbacv1.ClusterRoleBinding, error)

func (*Client) CheckServiceAccount

func (c *Client) CheckServiceAccount() (*v1.ServiceAccount, error)

func (*Client) CreateClusterRoleBinding

func (c *Client) CreateClusterRoleBinding(name, namespace string) error

func (*Client) CreateNamespace

func (c *Client) CreateNamespace(namespace, team string) (bool, error)

func (*Client) CreateServiceAccount

func (c *Client) CreateServiceAccount(name, namespace string) error

func (*Client) GetCaCert

func (c *Client) GetCaCert() (string, error)

func (*Client) GetToken

func (c *Client) GetToken(namespace string) (string, error)

func (*Client) ListNamespace

func (c *Client) ListNamespace() ([]string, error)

Jump to

Keyboard shortcuts

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