kubecontroller

package
v0.0.0-...-5961fbe Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeController

type KubeController struct {
	// contains filtered or unexported fields
}

KubeController helps to manage interactions with the Kubernetes API server

func NewKubeController

func NewKubeController(path string) *KubeController

NewKubeController is the constructor for KubeController

func (*KubeController) CreateNamespace

func (kc *KubeController) CreateNamespace(namespace string) error

CreateNamespace creates a namespace in the cluster

func (*KubeController) CreateNetworkPolicy

func (kc *KubeController) CreateNetworkPolicy(namespace string) error

CreateNetworkPolicy creates a network policy for the specified namespace in the cluster

func (*KubeController) CreateResourceQuota

func (kc *KubeController) CreateResourceQuota(namespace string, cpu int64, memory int64, storage int64) error

CreateResourceQuota creates a resource quota for the specified namespace in the cluster

func (*KubeController) CreateRole

func (kc *KubeController) CreateRole(namespace string) error

CreateRole creates a role for the specified namespace in the cluster

func (*KubeController) CreateRoleBinding

func (kc *KubeController) CreateRoleBinding(namespace string) error

CreateRoleBinding creates a role binding for the specified namespace in the cluster

func (*KubeController) CreateServiceAccount

func (kc *KubeController) CreateServiceAccount(namespace string) error

CreateServiceAccount creates a service account for the specified namespace in the cluster

func (*KubeController) DeleteNamespace

func (kc *KubeController) DeleteNamespace(namespace string) error

DeleteNamespace deletes a namespace from the cluster

func (*KubeController) GenerateKubeConfiguration

func (kc *KubeController) GenerateKubeConfiguration(namespace string) (string, error)

GenerateKubeConfiguration generates a kube configuration file

Jump to

Keyboard shortcuts

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