helper

package
v0.0.0-...-6776c55 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefineAndCreateDaemonsetWithMultusAndSkipLabelOnCluster

func DefineAndCreateDaemonsetWithMultusAndSkipLabelOnCluster(nadName, namespace, daemonsetName string) error

func DefineAndCreateDaemonsetWithMultusOnCluster

func DefineAndCreateDaemonsetWithMultusOnCluster(nadName, namespace, daemonsetName string) error

func DefineAndCreateDeployment

func DefineAndCreateDeployment(deploymentName, namespace string, replicaNumber int32) error

func DefineAndCreateDeploymentOnCluster

func DefineAndCreateDeploymentOnCluster(replicaNumber int32, namespace string) error

DefineAndCreateDeploymentOnCluster defines deployment resource and creates it on cluster.

func DefineAndCreateDeploymentWithContainerPorts

func DefineAndCreateDeploymentWithContainerPorts(replicaNumber int32, ports []corev1.ContainerPort, namespace string) error

DefineAndCreateDeploymentOnCluster defines deployment resource and creates it on cluster.

func DefineAndCreateDeploymentWithMultusAndSkipLabelOnCluster

func DefineAndCreateDeploymentWithMultusAndSkipLabelOnCluster(
	name, namespace string, nadNames []string, replicaNumber int32) error

DefineAndCreateDeploymentWithMultusAndSkipLabelOnCluster defines deployment resource and creates it on cluster.

func DefineAndCreateDeploymentWithMultusOnCluster

func DefineAndCreateDeploymentWithMultusOnCluster(name, namespace string, nadNames []string, replicaNumber int32) error

DefineAndCreateDeploymentWithMultusOnCluster defines deployment resource and creates it on cluster.

func DefineAndCreateDeploymentWithNamespace

func DefineAndCreateDeploymentWithNamespace(namespace string, replicaNumber int32) error

func DefineAndCreateDeploymentWithSkippedLabelOnCluster

func DefineAndCreateDeploymentWithSkippedLabelOnCluster(replicaNumber int32, namespace string) error

DefineAndCreateDeploymentWithSkippedLabelOnCluster defines deployment resource and creates it on cluster.

func DefineAndCreateNadOnCluster

func DefineAndCreateNadOnCluster(name, namespace, network string) error

func DefineAndCreateNetworkPolicy

func DefineAndCreateNetworkPolicy(name, ns string, policyTypes []string, labels map[string]string) error

func DefineAndCreatePrivilegedDeploymentOnCluster

func DefineAndCreatePrivilegedDeploymentOnCluster(replicaNumber int32, namespace string) error

DefineAndCreatePrivilegedDeploymentOnCluster defines deployment resource and creates it on cluster.

func DefineAndCreateServiceOnCluster

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

DefineAndCreateServiceOnCluster defines service resource and creates it on cluster.

func DefineDeploymentWithContainerPorts

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

func DefineDeploymentWithContainers

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

func DefineDpdkPod

func DefineDpdkPod(podName, namespace string) *corev1.Pod

func ExecCmdOnAllPodInNamespace

func ExecCmdOnAllPodInNamespace(command []string, namespace string) error

func ExecCmdOnOnePodInNamespace

func ExecCmdOnOnePodInNamespace(command []string, namespace string) error

ExecCmdOnOnePodInNamespace runs command on the first available pod in namespace.

func GetClusterMultusInterfaces

func GetClusterMultusInterfaces(namespace string) ([]string, error)

func RedefineServiceToHeadless

func RedefineServiceToHeadless(service *corev1.Service)

Types

This section is empty.

Jump to

Keyboard shortcuts

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