Documentation ¶
Index ¶
- func ConfigurePrivilegedServiceAccount(namespace string) error
- func CreateDaemonSet(daemonSetName, namespace, containerName, imageWithVersion string, ...) (aPodList *v1core.PodList, err error)
- func DeleteDaemonSet(daemonSetName, namespace string) error
- func DeleteNamespaceIfPresent(namespace string) (err error)
- func IsDaemonSetReady(daemonSetName, namespace, image string) bool
- func SetDaemonSetClient(aK8sClient kubernetes.Interface)
- func WaitDaemonsetReady(namespace, name string, timeout time.Duration) error
- type DaemonSetClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDaemonSet ¶
func CreateDaemonSet(daemonSetName, namespace, containerName, imageWithVersion string, labels map[string]string, env []v1core.EnvVar, timeout time.Duration, cpuReq, cpuLim, memReq, memLim string) (aPodList *v1core.PodList, err error)
This function is used to create a daemonset with the specified name, namespace, container name and image with the timeout to check if the deployment is ready and all daemonset pods are running fine
func DeleteDaemonSet ¶
This method is used to delete a daemonset specified by the name at a specified namespace
func IsDaemonSetReady ¶
func SetDaemonSetClient ¶
func SetDaemonSetClient(aK8sClient kubernetes.Interface)
Types ¶
type DaemonSetClient ¶
type DaemonSetClient struct {
K8sClient kubernetes.Interface
}
Click to show internal directories.
Click to hide internal directories.