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
Check Fargate Profile existence before creating #5722
Conversation
Failed for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the link of the issue in the PR description, also please add the config file used for your manual testing
d9ea9ae
to
4ec539f
Compare
4ec539f
to
ac3f35a
Compare
ac3f35a
to
7ef7095
Compare
7ef7095
to
de6b1b6
Compare
once again, rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some suggestions, also please add tests for your changes! 👍🏻
5048c79
to
cd1e8a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for adding all the changes and apologies for the late review, i was away on holiday and didn't get a chance to come back to you. I have added some comments but I think your PR is nearly there. small changes and it almost looks good to merge. ✨
When creating Fargate Profile from ClusterConfig file, it might need to comment out existed on then create a new one. With this PR, an existed Fargate Profile creation will be skipped before start. ``` % make binary ``` ``` % ./eksctl version 0.122.0-dev+a5d7c20ba.2022-11-30T20:36:42Z ``` ``` % ./eksctl create fargateprofile -f ./cluster-config/cluster-minimal.yaml 2022-11-30 20:50:12 [ℹ] Fargate profile "demo-existed-profile" already exists on EKS cluster "eks-demo" 2022-11-30 20:50:12 [ℹ] creating Fargate profile "demo-new-profile" on EKS cluster "eks-demo" ... ```
cd1e8a9
to
6c1a1a1
Compare
@Himangini Just update PR with rebase |
thanks I am going to test the PR, and once I am happy will get this merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏻
Description
When creating Fargate Profile from ClusterConfig file, it might need to comment out existed on then create a new one. With this PR, an existed Fargate Profile creation will be skipped before start.
Generally, we will create a cluster with Fargate Profile with ClusterConfig,
However, if we try to create an new one with the following ClusterConfig,
It would get 409 conflict error prompt as follow,
With this PR changes, it should skip existed Fargate Profiles but not
giving 409 Conflict error return.
Fixes: #5652
Checklist
README.md
, or theuserdocs
directory)area/nodegroup
) and kind (e.g.kind/improvement
)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯