Documentation
¶
Index ¶
- func DefineAndCreateDaemonsetWithMultusAndSkipLabelOnCluster(nadName, namespace, daemonsetName string) error
- func DefineAndCreateDaemonsetWithMultusOnCluster(nadName, namespace, daemonsetName string) error
- func DefineAndCreateDeployment(deploymentName, namespace string, replicaNumber int32) error
- func DefineAndCreateDeploymentOnCluster(replicaNumber int32, namespace string) error
- func DefineAndCreateDeploymentWithContainerPorts(replicaNumber int32, ports []corev1.ContainerPort, namespace string) error
- func DefineAndCreateDeploymentWithMultusAndSkipLabelOnCluster(name, namespace string, nadNames []string, replicaNumber int32) error
- func DefineAndCreateDeploymentWithMultusOnCluster(name, namespace string, nadNames []string, replicaNumber int32) error
- func DefineAndCreateDeploymentWithNamespace(namespace string, replicaNumber int32) error
- func DefineAndCreateDeploymentWithSkippedLabelOnCluster(replicaNumber int32, namespace string) error
- func DefineAndCreateNadOnCluster(name, namespace, network string) error
- func DefineAndCreateNetworkPolicy(name, ns string, policyTypes []string, labels map[string]string) error
- func DefineAndCreatePrivilegedDeploymentOnCluster(replicaNumber int32, namespace string) error
- func DefineAndCreateServiceOnCluster(name, namespace string, port, targetPort int32, withNodePort, headless bool, ...) error
- func DefineDeploymentWithContainerPorts(name, namespace string, replicaNumber int32, ports []corev1.ContainerPort) (*appsv1.Deployment, error)
- func DefineDeploymentWithContainers(replica int32, containers int, name, namespace string) (*appsv1.Deployment, error)
- func DefineDpdkPod(podName, namespace string) *corev1.Pod
- func ExecCmdOnAllPodInNamespace(command []string, namespace string) error
- func ExecCmdOnOnePodInNamespace(command []string, namespace string) error
- func GetClusterMultusInterfaces(namespace string) ([]string, error)
- func RedefineServiceToHeadless(service *corev1.Service)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefineAndCreateDeploymentOnCluster ¶
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 DefineAndCreateDeploymentWithSkippedLabelOnCluster ¶
func DefineAndCreateDeploymentWithSkippedLabelOnCluster(replicaNumber int32, namespace string) error
DefineAndCreateDeploymentWithSkippedLabelOnCluster defines deployment resource and creates it on cluster.
func DefineAndCreatePrivilegedDeploymentOnCluster ¶
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 DefineDpdkPod ¶
func ExecCmdOnOnePodInNamespace ¶
ExecCmdOnOnePodInNamespace runs command on the first available pod in namespace.
Types ¶
This section is empty.