# README
K8s Daemonset in privilege mode
Functions
- Creation of the daemonset in priviledge mode
- Deletion of a daemonset in a specified namespace
- Check if a daemonset is ready within a specified time
Usage
- Import the library
import k8sPriviledgedDs "github.com/test-network-function/privileged-daemonset"
- Set the K8s client to act on
Daemonset
object
k8sPriviledgedDs.SetDaemonSetClient(myK8sInterface) // myK8sInterface is of type kubernetes.Interface
- Invoke the exported functions in a specified namespace with a specified imagename
To create
daemonSetRunningPods, err := k8sPriviledgedDs.CreateDaemonSet(myDaemonSetName, myNameSpace, daemonSetContainerName, imageWithVersion, timeOut)
To delete
err := k8sPriviledgedDs.DeleteDaemonSet(myDaemonSetName, myNameSpace)
To check if the daemonset is ready
err := k8sPriviledgedDs.WaitDaemonsetReady(myDaemonSetName, myNameSpace)
# Functions
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.
This method is used to delete a daemonset specified by the name at a specified namespace.
No description provided by the author
No description provided by the author
This function is used to wait until daemonset is ready.
# Structs
No description provided by the author