kubernetes

package
v0.115.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClusterRoleBindingsIfNotExist

func CreateClusterRoleBindingsIfNotExist(ctx context.Context, k8s kubernetes.Interface, clusterRoleBindings []ClusterRoleBinding) error

func CreateClusterRolesIfNotExist

func CreateClusterRolesIfNotExist(ctx context.Context, k8s kubernetes.Interface, clusterRoles []ClusterRole) error

func CreateJobsIfNotExist

func CreateJobsIfNotExist(ctx context.Context, k8s kubernetes.Interface, jobs []Job) error

func CreateNamespacesIfNotExist

func CreateNamespacesIfNotExist(ctx context.Context, k8s kubernetes.Interface, namespaces []Namespace) error

func CreateNamespacesIfNotExistSimple

func CreateNamespacesIfNotExistSimple(ctx context.Context, k8s kubernetes.Interface, namespaces []string) error

func CreateSecretsIfNotExist

func CreateSecretsIfNotExist(ctx context.Context, k8s kubernetes.Interface, secrets []Secret) error

func CreateServiceAccountsIfNotExist

func CreateServiceAccountsIfNotExist(ctx context.Context, k8s kubernetes.Interface, serviceAccounts []ServiceAccount) error

func DeleteClusterRole

func DeleteClusterRole(ctx context.Context, k8s kubernetes.Interface, clusterRoleName string) error

func DeleteClusterRoleBinding

func DeleteClusterRoleBinding(ctx context.Context, k8s kubernetes.Interface, clusterRoleBindingName string) error

func DeleteServiceAccount

func DeleteServiceAccount(ctx context.Context, k8s kubernetes.Interface, sa ServiceAccount) error

func RecreateJobs

func RecreateJobs(ctx context.Context, k8s kubernetes.Interface, jobs []Job) error

Types

type ClusterRole

type ClusterRole struct {
	Name        string
	Annotations map[string]string
	Labels      map[string]string
	Rules       []rbacv1.PolicyRule
}

type ClusterRoleBinding

type ClusterRoleBinding struct {
	Name        string
	Annotations map[string]string
	Labels      map[string]string
	Subjects    []rbacv1.Subject
	RoleRef     rbacv1.RoleRef
}

type Job

type Job struct {
	Name        string
	Namespace   string
	Annotations map[string]string
	Labels      map[string]string
	Spec        batchv1.JobSpec
}

type Namespace

type Namespace struct {
	Name        string
	Annotations map[string]string
	Labels      map[string]string
}

type Secret

type Secret struct {
	Name        string
	Namespace   string
	Annotations map[string]string
	Labels      map[string]string
	Contents    map[string]string
}

type ServiceAccount

type ServiceAccount struct {
	Name        string
	Namespace   string
	Automount   bool
	Annotations map[string]string
	Labels      map[string]string
}

Jump to

Keyboard shortcuts

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