util

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ReleaseVersionAnnotation = "release.openshift.io/version"
	CriticalPodAnnotation    = "scheduler.alpha.kubernetes.io/critical-pod"
)

Common Kubernetes object annotations.

Variables

This section is empty.

Functions

func DeploymentUpdated

func DeploymentUpdated(dep *appsv1.Deployment) bool

DeploymentUpdated checks whether a Kubernetes deployment object's replicas are fully updated and available.

func FilterString

func FilterString(haystack []string, needle string) ([]string, int)

FilterString removes any instances of the needle from haystack. It returns a new slice with all instances of needle removed, and a count of the number instances encountered.

func ReleaseVersionMatches

func ReleaseVersionMatches(obj metav1.Object, version string) bool

ReleaseVersionMatches checks whether a Kubernetes object has an OpenShift release version annotation that matches the given version.

func ResetProgressingTime

func ResetProgressingTime(conds *[]configv1.ClusterOperatorStatusCondition)

ResetProgressingTime finds the Progressing condition in the given slice, or creates a default one if none is found, and sets the LastTransitionTime to the current time.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL