Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce label selector settings to FleetAddonConfig #67

Closed
Danil-Grigorev opened this issue Jul 15, 2024 · 1 comment · Fixed by #68
Closed

Introduce label selector settings to FleetAddonConfig #67

Danil-Grigorev opened this issue Jul 15, 2024 · 1 comment · Fixed by #68
Assignees

Comments

@Danil-Grigorev
Copy link
Contributor

Danil-Grigorev commented Jul 15, 2024

User Story

As a cluster administrator I’d like to restrict imported clusters into Fleet with a predefined LabelSelector, to have a granular control on clusters I want to import.

Solution

Add 2 new optional fields to FleetAddonConfig

  • namespace_label_selector - to define namespaces eligible for import. Every CAPI cluster in the namespace is automatically imported.
  • cluster_label_selector - only matching clusters are imported.

Wire in the new fields functionality into the existing clusters import logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant