bootstrap

package
v0.0.0-...-ec00d85 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBootstrapComplete

func IsBootstrapComplete(configMapClient corev1listers.ConfigMapLister) (bool, error)

IsBootstrapComplete returns true if bootstrap has completed.

This function checks if "bootstrap" config map in "kube-system" namespace was created and has status equal to complete.

The configmap is created when bootstrapping is done by the installer (https://github.com/openshift/installer/blob/911203db89a5728f00aaef011b5fb8add7abf646/data/data/bootstrap/files/usr/local/bin/report-progress.sh#L21) As of today it is used by etcd and network operators

As of today there is nothing else we could depend on to know if bootstrap was done.

It is important to note that the bootstrap node might not be removed until additional conditions are met. For example, on a SNO cluster, the installer waits until the CEO removes the bootstrap member from the etcd cluster. In HA clusters, the bootstrap node is torn down as soon as the configmap is created with the appropriate content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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