Documentation ¶
Index ¶
- Constants
- func DaemonSetNamespacedNameFromObject(obj client.Object) (nropv1.NamespacedName, bool)
- func GetMachineConfigLabel(mcp *machineconfigv1.MachineConfigPool) map[string]string
- func SkipManifestUpdate(gdm *GeneratedDesiredManifest) error
- type ExistingManifests
- type GenerateDesiredManifestUpdater
- type GeneratedDesiredManifest
Constants ¶
View Source
const MachineConfigLabelKey = "machineconfiguration.openshift.io/role"
MachineConfigLabelKey contains the key of generated label for machine config
Variables ¶
This section is empty.
Functions ¶
func DaemonSetNamespacedNameFromObject ¶
func DaemonSetNamespacedNameFromObject(obj client.Object) (nropv1.NamespacedName, bool)
func GetMachineConfigLabel ¶
func GetMachineConfigLabel(mcp *machineconfigv1.MachineConfigPool) map[string]string
GetMachineConfigLabel returns machine config labels that should be used under the machine config pool machine config selector
func SkipManifestUpdate ¶
func SkipManifestUpdate(gdm *GeneratedDesiredManifest) error
Types ¶
type ExistingManifests ¶
type ExistingManifests struct {
// contains filtered or unexported fields
}
func FromClient ¶
func FromClient(ctx context.Context, cli client.Client, plat platform.Platform, mf rtemanifests.Manifests, instance *nropv1.NUMAResourcesOperator, trees []nodegroupv1.Tree, namespace string) ExistingManifests
func (*ExistingManifests) MachineConfigsState ¶
func (em *ExistingManifests) MachineConfigsState(mf rtemanifests.Manifests) []objectstate.ObjectState
func (*ExistingManifests) State ¶
func (em *ExistingManifests) State(mf rtemanifests.Manifests, updater GenerateDesiredManifestUpdater) []objectstate.ObjectState
type GenerateDesiredManifestUpdater ¶
type GenerateDesiredManifestUpdater func(mcpName string, gdm *GeneratedDesiredManifest) error
type GeneratedDesiredManifest ¶
type GeneratedDesiredManifest struct { // context ClusterPlatform platform.Platform MachineConfigPool *machineconfigv1.MachineConfigPool NodeGroup *nropv1.NodeGroup // generated manifests DaemonSet *appsv1.DaemonSet }
Click to show internal directories.
Click to hide internal directories.