Documentation
¶
Index ¶
- func AddNFTSvcToNodeDisruptionPolicy(cs *client.ClientSet) error
- func ApplyMachineConfig(yamlInput []byte, c *client.ClientSet) (bool, error)
- func GetMachineConfigPool(cs *client.ClientSet, name string) (*machineconfigurationv1.MachineConfigPool, error)
- func ValidateClusterVersionAndMachineConfiguration(cs *client.ClientSet) error
- func WaitForAPIGroupAvailable(cs *client.ClientSet, groupVersion string)
- func WaitForMCPUpdate(cs *client.ClientSet, name, previousRenderedMC string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyMachineConfig ¶
ApplyMachineConfig applies the MachineConfig and returns true if created or updated. False if unchanged, and an error if there is error.
func GetMachineConfigPool ¶ added in v0.0.6
func GetMachineConfigPool(cs *client.ClientSet, name string) (*machineconfigurationv1.MachineConfigPool, error)
GetMachineConfigPool returns the MachineConfigPool with the given name.
func WaitForAPIGroupAvailable ¶ added in v0.0.4
func WaitForMCPUpdate ¶ added in v0.0.6
WaitForMCPUpdate waits for the MCO to render a new MachineConfig (by comparing the rendered MC name to previousRenderedMC) and then waits for all machines in the pool to be ready with the new config (timeout: 20m, polling interval: 5s). This avoids polling for transient status changes (UpdatedMachineCount != MachineCount) which can be missed on SNO where NodeDisruptionPolicy completes in seconds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.