deployment

package
v0.0.0-...-b705c5c Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClusterRole

func CreateClusterRole(opts types.NamespacedName) rbacv1.ClusterRole

func CreateClusterRoleBinding

func CreateClusterRoleBinding(opts types.NamespacedName) rbacv1.ClusterRoleBinding

func CreateRoleBinding

func CreateRoleBinding(opts types.NamespacedName) rbacv1.RoleBinding

func CreateServiceAccount

func CreateServiceAccount(opts types.NamespacedName) corev1.ServiceAccount

func Deploy

func Deploy(ctx context.Context, opts DeployOptions) error

func InstallClusterRole

func InstallClusterRole(ctx context.Context, kube client.Client, obj *rbacv1.ClusterRole) error

func InstallClusterRoleBinding

func InstallClusterRoleBinding(ctx context.Context, kube client.Client, obj *rbacv1.ClusterRoleBinding) error

func InstallDeployment

func InstallDeployment(ctx context.Context, kube client.Client, obj *appsv1.Deployment) error

func InstallRole

func InstallRole(ctx context.Context, kube client.Client, obj *rbacv1.Role) error

func InstallRoleBinding

func InstallRoleBinding(ctx context.Context, kube client.Client, obj *rbacv1.RoleBinding) error

func InstallServiceAccount

func InstallServiceAccount(ctx context.Context, kube client.Client, obj *corev1.ServiceAccount) error

func LookupCRD

func LookupCRD(ctx context.Context, kube client.Client, gvr schema.GroupVersionResource) (bool, error)

func LookupDeployment

func LookupDeployment(ctx context.Context, kube client.Client, obj *appsv1.Deployment) (bool, bool, error)

func Undeploy

func Undeploy(ctx context.Context, opts UndeployOptions) error

func UninstallCRD

func UninstallCRD(ctx context.Context, kube client.Client, gr schema.GroupResource) error

func UninstallClusterRole

func UninstallClusterRole(ctx context.Context, opts UninstallOptions) error

func UninstallClusterRoleBinding

func UninstallClusterRoleBinding(ctx context.Context, opts UninstallOptions) error

func UninstallDeployment

func UninstallDeployment(ctx context.Context, opts UninstallOptions) error

func UninstallRole

func UninstallRole(ctx context.Context, opts UninstallOptions) error

func UninstallRoleBinding

func UninstallRoleBinding(ctx context.Context, opts UninstallOptions) error

func UninstallServiceAccount

func UninstallServiceAccount(ctx context.Context, opts UninstallOptions) error

Types

type DeployOptions

type DeployOptions struct {
	KubeClient      client.Client
	NamespacedName  types.NamespacedName
	Spec            *definitionsv1alpha1.DefinitionSpec
	ResourceVersion string
	Log             func(msg string, keysAndValues ...any)
}

type UndeployOptions

type UndeployOptions struct {
	KubeClient     client.Client
	NamespacedName types.NamespacedName
	GVR            schema.GroupVersionResource
	Log            func(msg string, keysAndValues ...any)
}

type UninstallOptions

type UninstallOptions struct {
	KubeClient     client.Client
	NamespacedName types.NamespacedName
	Log            func(msg string, keysAndValues ...any)
}

Jump to

Keyboard shortcuts

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