Skip to content

Labels and annotations for MachineDeployments and KubeadmControlPlane created by topology controller #7006

@MaxFedotov

Description

@MaxFedotov

User Story

As a user I would like to specify labels and annotations for MachineDeployment and KubeadmControlPlane created by topology controller to be used used by cluster-autoscaler or for filtering.

Detailed Description

It is possible to specify labels and annotations in cluster topology spec, but they are propagated only to machines created by MachineDeployment and KubeadmControlPlane.

As documented in cluster-autoscaler readme, in order to use it with Managed Topology, users had to skip spec.topology.workers.machineDeployments[].replicas field, which cause topology controller to always create MachineDeployment with only one replica. Users can later add specific cluster-autoscaler annotations in order to increase number of replicas.
And as this annotations cannot be added to MachineDeployment during provisioning, it is impossible to create them with any other number of replicas other then one.

It will be nice to have a way to pass labels and annotation from Cluster topology spec to MachineDeployment and KubeadmControlPlane and also be able to update them without triggering rollout for corresponding Machines

/kind feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/clusterclassIssues or PRs related to clusterclasskind/featureCategorizes issue or PR as related to a new feature.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions