utils

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SCCAnnotation is the annotation listing SCCs for a SA
	SCCAnnotation = "cdi-scc"
)

Variables

This section is empty.

Functions

func CreateContainer

func CreateContainer(name, image, verbosity string, pullPolicy corev1.PullPolicy) corev1.Container

CreateContainer creates container

func CreateDeployment

func CreateDeployment(name, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.Deployment

CreateDeployment creates deployment

func CreateOperatorDeployment

func CreateOperatorDeployment(name, namespace, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.Deployment

CreateOperatorDeployment creates deployment

func CreateOperatorDeploymentSpec

func CreateOperatorDeploymentSpec(name, namespace, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.DeploymentSpec

CreateOperatorDeploymentSpec creates deployment

func CreatePortsContainer

func CreatePortsContainer(name, image, verbosity string, pullPolicy corev1.PullPolicy, ports *[]corev1.ContainerPort) corev1.Container

CreatePortsContainer creates container

func CreateRole

func CreateRole(name string) *rbacv1.Role

CreateRole creates role

func CreateRoleBinding

func CreateRoleBinding(name, roleRef, serviceAccount, serviceAccountNamespace string) *rbacv1.RoleBinding

CreateRoleBinding creates role binding

func CreateService

func CreateService(name, matchKey, matchValue string) *corev1.Service

CreateService creates service

func CreateServiceAccount

func CreateServiceAccount(name string) *corev1.ServiceAccount

CreateServiceAccount creates service account

func CreateServiceNamespaceAccount

func CreateServiceNamespaceAccount(name, namespace string) *corev1.ServiceAccount

CreateServiceNamespaceAccount creates service account

func ValidateGVKs added in v1.10.3

func ValidateGVKs(objects []runtime.Object)

ValidateGVKs makes sure all resources have initialized GVKs

func WithCommonLabels

func WithCommonLabels(labels map[string]string) map[string]string

WithCommonLabels aggregates common lables

func WithOperatorLabels

func WithOperatorLabels(labels map[string]string) map[string]string

WithOperatorLabels aggregates common lables

Types

This section is empty.

Jump to

Keyboard shortcuts

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