helper

package
v0.0.0-...-0629bfa Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefineAndCreateServiceOnCluster

func DefineAndCreateServiceOnCluster(name, namespace string, port int32, targetPort int32, withNodePort bool,
	ipFams []corev1.IPFamily, ipFamPolicy string) error

DefineAndCreateServiceOnCluster defines service resource and creates it on cluster.

func DefineDeployment

func DefineDeployment(replica int32, containers int, name, namespace string) (*appsv1.Deployment, error)

func DefineDeploymentWithClusterRoleBindingWithServiceAccount

func DefineDeploymentWithClusterRoleBindingWithServiceAccount(replica int32,
	containers int, name, namespace, serviceAccountName string) (*appsv1.Deployment, error)

func DefineDeploymentWithContainerPorts

func DefineDeploymentWithContainerPorts(name, namespace string, replicaNumber int32,
	ports []corev1.ContainerPort) (*appsv1.Deployment, error)

func DefineDeploymentWithNamespace

func DefineDeploymentWithNamespace(replica int32, containers int, name string, namespace string) (*appsv1.Deployment, error)

func SetServiceAccountAutomountServiceAccountToken

func SetServiceAccountAutomountServiceAccountToken(namespace, saname, value string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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