machinefilters

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchesKCPConfiguration

func MatchesKCPConfiguration(infraConfigs map[string]*unstructured.Unstructured, machineConfigs map[string]*bootstrapv1.CK8sConfig, kcp *controlplanev1.CK8sControlPlane) func(machine *clusterv1.Machine) bool

MatchesKCPConfiguration returns a filter to find all machines that matches with KCP config and do not require any rollout. Kubernetes version, infrastructure template, and CK8sConfig field need to be equivalent.

Types

type Func

type Func = collections.Func

func MatchesCK8sBootstrapConfig

func MatchesCK8sBootstrapConfig(machineConfigs map[string]*bootstrapv1.CK8sConfig, kcp *controlplanev1.CK8sControlPlane) Func

MatchesCK8sBootstrapConfig checks if machine's CK8sConfigSpec is equivalent with KCP's CK8sConfigSpec.

func MatchesKubernetesVersion

func MatchesKubernetesVersion(kubernetesVersion string) Func

MatchesKubernetesVersion returns a filter to find all machines that match a given Kubernetes version.

func MatchesTemplateClonedFrom

func MatchesTemplateClonedFrom(infraConfigs map[string]*unstructured.Unstructured, kcp *controlplanev1.CK8sControlPlane) Func

MatchesTemplateClonedFrom returns a filter to find all machines that match a given KCP infra template.

Jump to

Keyboard shortcuts

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