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

Allow mgmt create via controller if managed by cli #7210

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

tatlat
Copy link
Member

@tatlat tatlat commented Dec 19, 2023

Issue #, if available:
The unification of the controller and CLI requires the ability to create mgmt clusters via the controller. However, we should only allow this creation when it's initiated by the CLI.

Description of changes:
Modifies webhook create validations to return an error for self-managed clusters only if the managed-by-cli annotation is not present.

Testing (if applicable):
Manually created mgmt clusters with CLI (both old and new workflows) and FLC.

Documentation added/planned (if applicable):

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eks-distro-bot eks-distro-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 19, 2023
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (59789da) 71.56% compared to head (b59c7de) 71.60%.
Report is 39 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7210      +/-   ##
==========================================
+ Coverage   71.56%   71.60%   +0.03%     
==========================================
  Files         545      548       +3     
  Lines       42323    42548     +225     
==========================================
+ Hits        30288    30466     +178     
- Misses      10343    10388      +45     
- Partials     1692     1694       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tatlat tatlat force-pushed the flc-unification-annotations branch from 489c31d to b59c7de Compare December 20, 2023 19:33
@panktishah26
Copy link
Member

/lgtm

@tatlat
Copy link
Member Author

tatlat commented Dec 20, 2023

/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tatlat

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@eks-distro-bot eks-distro-bot merged commit 3aa3f5a into aws:main Dec 20, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants