package
0.0.0-20241102040927-43901cc2fa33
Repository: https://github.com/longhorn/go-common-libs.git
Documentation: pkg.go.dev

# Functions

CreateClusterRole creates a new ClusterRole.
CreateClusterRoleBinding creates a new ClusterRoleBinding.
CreateConfigMap creates a new ConfigMap in the given namespace.
CreateDaemonSet creates a new DaemonSet in the given namespace.
No description provided by the author
DeleteClusterRole deletes the ClusterRole with the given name.
DeleteClusterRoleBinding deletes the ClusterRoleBinding with the given name.
DeleteConfigMap deletes the ConfigMap with the given name in the given namespace.
DeleteDaemonSet deletes the DaemonSet with the given name in the given namespace.
No description provided by the author
GetClusterRole returns the ClusterRole with the given name.
GetClusterRoleBinding returns the ClusterRoleBinding with the given name.
GetConfigMap returns the ConfigMap with the given name in the given namespace.
GetDaemonSet returns the DaemonSet with the given name in the given namespace.
No description provided by the author
No description provided by the author
No description provided by the author
IsContainerCompleted returns true if the container is terminated with exit code 0.
IsContainerInitializing returns true if the container is waiting for initialization.
IsContainerReady returns true if the container is ready.
IsContainerRestarted returns true if the container is terminated and restarted at least once.
IsContainerWaitingCrashLoopBackOff returns true if the container is waiting for crash loop back off.
IsDaemonSetReady checks if the DaemonSet is ready by comparing the number of ready pods with the desired number of pods.
No description provided by the author
IsPodContainerInState checks if a container is in a desired state.