Documentation ¶
Index ¶
- type Client
- func (c *Client) CheckClusterRoleBinding() (*rbacv1.ClusterRoleBinding, error)
- func (c *Client) CheckServiceAccount() (*v1.ServiceAccount, error)
- func (c *Client) CreateClusterRoleBinding(name, namespace string) error
- func (c *Client) CreateNamespace(namespace, team string) (bool, error)
- func (c *Client) CreateServiceAccount(name, namespace string) error
- func (c *Client) GetCaCert() (string, error)
- func (c *Client) GetToken(namespace string) (string, error)
- func (c *Client) ListNamespace() ([]string, error)
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 (*Client) CreateNamespace ¶
func (*Client) CreateServiceAccount ¶
func (*Client) ListNamespace ¶
Click to show internal directories.
Click to hide internal directories.