package
1.2.50
Repository: https://github.com/jenkins-x/sso-operator.git
Documentation: pkg.go.dev

# Functions

CreateServiceAccount creates a new service account in the given namespace and returns the service account name.
EnsureClusterRoleBinding ensures for the given cluster role name that there is a binding to a service account in the given namespace.
FindIngressHosts searches an ingress resource by name and retrieves its hosts.
GetAPIExtensionsClient returns the k8s api extensions client.
GetClientConfig return the k8s configuration.
GetClientset creates a new k8s client.
GetJenkinsClient returns the Jenkins CRDs client.
IsRetryableAPIError indicates if the given error is retryable.
IsSSOInitialized checks if the SSO is initialized by retrieving the current state from k8s.
RegisterSSOCRD ensures that the CRD is registered for SSO.
WaitForDeploymentToStabilize waits till the Deployment has a matching generation/replica count between spec and status.
WaitForJobComplete wait for a job to complete.
WaitForPodComplete wait for given POD to complete.
WaitForPodReady waits for given POD to become ready.
WaitForPodsWithLabelRunning waits for all matching pods to become Running and at least one matching pod exists.
WaitForService waits until the service appears (exist == true), or disappears (exist == false).
WaitForServiceEndpointsNum waits until the amount of endpoints that implement service to expectNum.