clusterapi

package
v0.0.0-...-7605501 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCluster

func CreateCluster() serde.Provider

Write Cluster API code here, return kubeconfig

func CreateClusterRole

func CreateClusterRole(k serde.Provider, cr *rbacv1.ClusterRole) error

func CreateClusterRoleBinding

func CreateClusterRoleBinding(k serde.Provider, crb *rbacv1.ClusterRoleBinding) error

func CreateKubeconfig

func CreateKubeconfig(sa string, ns string) ([]string, error)

func CreateSecret

func CreateSecret(k serde.Provider, name string, ns string) error

func CreateServiceAccount

func CreateServiceAccount(k serde.Provider, name string, ns string) error

func DeleteCluster

func DeleteCluster()

func DeleteClusterRole

func DeleteClusterRole(k serde.Provider, cr *rbacv1.ClusterRole) error

func DeleteClusterRoleBinding

func DeleteClusterRoleBinding(k serde.Provider, crb *rbacv1.ClusterRoleBinding) error

func DeleteSecret

func DeleteSecret(k serde.Provider, name string, ns string) error

func DeleteServiceAccount

func DeleteServiceAccount(k serde.Provider, name string, ns string) error

func GetAuthorizationToken

func GetAuthorizationToken(k serde.Provider, ns string, serviceAccountName string) (string, error)

func GetCluster

func GetCluster() serde.Provider

Types

This section is empty.

Jump to

Keyboard shortcuts

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