utils

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdate added in v0.9.0

func CreateOrUpdate(ctx context.Context, client resource.Interface, obj runtime.Object) (bool, error)

func CreateOrUpdateClusterRole

func CreateOrUpdateClusterRole(ctx context.Context, clientSet clientset.Interface, clusterRole *rbacv1.ClusterRole) (bool, error)

func CreateOrUpdateClusterRoleBinding

func CreateOrUpdateClusterRoleBinding(
	ctx context.Context, clientSet clientset.Interface, clusterRoleBinding *rbacv1.ClusterRoleBinding) (bool, error)

func CreateOrUpdateDeployment

func CreateOrUpdateDeployment(
	ctx context.Context, clientSet clientset.Interface, namespace string, deployment *appsv1.Deployment) (bool, error)

func CreateOrUpdateEmbeddedCRD added in v0.3.1

func CreateOrUpdateEmbeddedCRD(ctx context.Context, updater crdutils.CRDUpdater, crdYaml string) (bool, error)

func CreateOrUpdateRole

func CreateOrUpdateRole(
	ctx context.Context, clientSet clientset.Interface, namespace string, role *rbacv1.Role) (bool, error)

func CreateOrUpdateRoleBinding

func CreateOrUpdateRoleBinding(
	ctx context.Context, clientSet clientset.Interface, namespace string, roleBinding *rbacv1.RoleBinding) (bool, error)

func CreateOrUpdateServiceAccount

func CreateOrUpdateServiceAccount(
	ctx context.Context, clientSet clientset.Interface, namespace string, sa *corev1.ServiceAccount) (bool, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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