package
1.1.2
Repository: https://github.com/openshift/rook.git
Documentation: pkg.go.dev

# Functions

ClusterLabels returns a map of label keys and values for the given Cluster.
DatacenterLabels returns a map of label keys and values for the given Datacenter.
GetMemberServicesForRack returns the member services for the given rack.
GetDataDir returns the directory used to store the database data.
GetPodsForCluster returns the existing Pods for the given cluster.
GetPodsForRack returns the created Pods for the given rack.
No description provided by the author
No description provided by the author
IndexFromName attempts to get the index from a name using the naming convention <name>-<index>.
isPodUnschedulable iterates a Pod's Status.Conditions to find out if it has been deemed unschedulable.
IsRackConditionTrue checks a rack's status for the presence of a condition type and checks if it is true.
Max returns the bigger of two given numbers.
Min returns the smaller of two given numbers.
NewControllerRef returns an OwnerReference to the provided Cluster Object.
PatchCluster patches the old Cluster so that it matches the new Cluster.
PatchService patches the old Service so that it matches the new Service.
PatchStatefulSet patches the old StatefulSet so that it matches the new StatefulSet.
RackLabels returns a map of label keys and values for the given Rack.
RackSelector returns a LabelSelector for the given rack.
RefFromInt is a helper function that takes a int and outputs a reference to that int.
RefFromInt32 is a helper function that takes a int32 and outputs a reference to that int.
RefFromInt64 is a helper function that takes a int64 and outputs a reference to that int.
RefFromString is a helper function that takes a string and outputs a reference to that string.
ScaleStatefulSet attempts to scale a StatefulSet by the given amount.
No description provided by the author
No description provided by the author
No description provided by the author
StatefulSetPodLabel returns a map of labels to uniquely identify a StatefulSet Pod with the given name.
StatefulSetStatusesStale checks if the StatefulSet Objects of a Cluster have been observed by the StatefulSet controller.
VerifyOwner checks if the owner Object is the controller of the obj Object and returns an error if it isn't.