k8sclient

package
v0.0.0-...-b2bfca1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	K8sClient *kubernetes.Clientset
	Ctx       = context.Background()
)

Functions

func ClusterRoleBindingExists

func ClusterRoleBindingExists(ctx context.Context, name string) (bool, error)

func ClusterRoleExists

func ClusterRoleExists(ctx context.Context, name string) (bool, error)

func GetClusterRole

func GetClusterRole(opts *InstallOptions) *rbacv1.ClusterRole

GetClusterRole

func GetClusterRoleBinding

func GetClusterRoleBinding(opts *InstallOptions) *rbacv1.ClusterRoleBinding

GetClusterRoleBinding

func GetDeployment

func GetDeployment(opts *InstallOptions) *appsv1.Deployment

func GetIngress

func GetIngress(opts *InstallOptions) *networkingv1.Ingress

Ingress

func GetRandomSecretKey

func GetRandomSecretKey() string

RandomSecretKey

func GetSecret

func GetSecret(opts *InstallOptions) *corev1.Secret

GetSecret

func GetService

func GetService(opts *InstallOptions) *corev1.Service

func GetServiceAccount

func GetServiceAccount(opts *InstallOptions) *corev1.ServiceAccount

GetServiceAccount

func Init

func Init(appConfig *config.ServerConfig) (*kubernetes.Clientset, error)

Init initializes a message queue client

func Install

func Install(opts *InstallOptions) error

func NamespaceExists

func NamespaceExists(ctx context.Context, namespaceName string) (bool, error)

func Uninstall

func Uninstall(opts *InstallOptions) error

Types

type InstallOptions

type InstallOptions struct {
	NamespaceName          string
	DeploymentName         string
	ServiceAccountName     string
	SecretName             string
	ContainerName          string
	AppLabel               string
	ClusterRoleBindingName string
	ClusterRoleName        string
	Image                  string
	ImagePullPolicy        string
	AdminUser              string
	AdminPassword          string
	DumpYaml               bool
}

Jump to

Keyboard shortcuts

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