utils

package
v1.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContainer

func CreateContainer(name, repo, image, tag, 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, repo, image, tag, 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 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