kube

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSRObject

func CSRObject(csr []byte, duration int32, id uuid.UUID) *v1.CertificateSigningRequest

func DeleteResources

func DeleteResources(id, kubeConfigFlag string) error

func RoleBindingObject

func RoleBindingObject(roleName, userName, ns string, id uuid.UUID) *rbacv1.RoleBinding

Types

type Client

type Client struct {
	KubeClient kubernetes.Interface
	DynClient  dynamic.Interface
}

func NewClient

func NewClient(config *rest.Config) (*Client, error)

func (*Client) CreateCSR

func (*Client) CreateRole

func (c *Client) CreateRole(r *rbacv1.Role) (*rbacv1.Role, error)

func (*Client) CreateRoleBinding

func (c *Client) CreateRoleBinding(rb *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)

func (*Client) ValidateNamespace

func (c *Client) ValidateNamespace(ns string) error

Jump to

Keyboard shortcuts

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