package
0.9.3
Repository: https://github.com/travisn/rook.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Environment variables used by storage cluster daemons.
ConfigDirEnvVar config dir env var.
ConfigOverrideEnvVar config override env var.
ConfigOverrideMount is an override mount.
ConfigOverrideVolume is an override volume.
No description provided by the author
DeleteDaemonset makes a best effort at deleting a daemonset and its pods, then waits for them to be deleted.
DeleteDeployment makes a best effort at deleting a deployment and its pods, then waits for them to be deleted.
DeleteReplicaSet makes a best effort at deleting a deployment and its pods, then waits for them to be deleted.
No description provided by the author
GetDeploymentImage returns the version of the image running in the pod spec for the desired container.
GetDeployments returns a list of deployment names labels matching a given selector example of a label selector might be "app=rook-ceph-mon, mon!=b" more: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/.
No description provided by the author
GetK8SVersion gets the version of the running K8S cluster.
No description provided by the author
GetNodeHostNames returns the name of the node resource mapped to their hostname label.
GetNodeNameFromHostname returns the name of the node resource looked up by the hostname label Typically these will be the same name, but sometimes they are not such as when nodes have a longer dns name, but the hostname is short.
GetJobLog gets the logs for the pod.
GetPodPhaseMap takes a list of pods and returns a map of pod phases to the names of pods that are in that phase.
No description provided by the author
No description provided by the author
No description provided by the author
Hash MD5 hash a given string.
IndexToName converts an index to a daemon name based on as few letters of the alphabet as possible.
MakeRookImage formats the container name.
No description provided by the author
NameEnvVar pod name env var.
NamespaceEnvVar namespace env var.
NameToIndex converts a daemon name to an index, which is the inverse of IndexToName For example: a -> 0 b -> 1.
No description provided by the author
NodeConfigURI returns the node config URI path for this node.
NodeEnvVar node env var.
PathToVolumeName converts a path to a valid volume name.
PodIPEnvVar private ip env var.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TruncateNodeName hashes the nodeName in case it would case the name to be longer than 63 characters WARNING If your format and nodeName as a hash, are longer than 63 chars it won't be truncated! Your format alone should only be 31 chars at max because of MD5 hash being 32 chars.
No description provided by the author
No description provided by the author
No description provided by the author
WaitForJobCompletion waits for a job to reach the completed state.

# Constants

AppAttr app label.
ClusterAttr cluster label.
ConfigOverrideName config override name.
ConfigOverrideVal config override value.
DataDir folder.
DataDirVolume data dir volume.
DefaultNamespace for the cluster.
DefaultRepoPrefix repo prefix.
Namespace for rook.
NodeNameEnvVar is the env variable for getting the node via downward api.
PodNameEnvVar is the env variable for getting the pod name via downward api.
PodNamespaceEnvVar is the env variable for getting the pod namespace via downward api.
PrivateIPEnvVar pod IP env var.
PublicIPEnvVar public IP env var.
RookType for the CRD.

# Structs

No description provided by the author