-
Notifications
You must be signed in to change notification settings - Fork 6.4k
fix: KubeVersion passed to helm template is incorrectly #22650
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
Conversation
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #22650 +/- ##
==========================================
+ Coverage 59.98% 60.06% +0.08%
==========================================
Files 343 342 -1
Lines 57890 57843 -47
==========================================
+ Hits 34724 34745 +21
+ Misses 20382 20325 -57
+ Partials 2784 2773 -11 ☔ View full report in Codecov by Sentry. |
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.
I tested your changes just now. I get the same error for a version such as 1.30.1+xyz
-
Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = Manifest generation error (cached): failed to execute helm template command: failed to get command args to log: `helm template . --name-template helm-webapp --namespace helm --kube-version 1.30.1_xyz --values <path to cached source>/helm-webapp/values-prod.yaml <api versions removed> --include-crds` failed exit status 1: Error: invalid kube version '1.30.1_xyz': Invalid Semantic Version
Maybe this is happening because the kube version of target cluster is not actually 1.30.1_xyz
.
Secondly, with the current changes, we will be removing the kube-version support for GKE that was introduced in this PR. I'd like to know other maintainers thoughts on this PR before moving forward.
Hi, @nitishfy ! Thank you for investigating about this issue. How interesting! You can know that helm can receive the kube-version as a 1.30.1+xyz by seeing the log of test I added new one. Helm would replace
I totally agree with your thoughts since this change surely break the compatibility. The essence that we found the problem is current API definition accept various semantic version such as vX.Y.Z+x.y.z. We might have to discuss about rule what version is acceptable and what one isn't acceptable. |
util/helm/helm_test.go
Outdated
assert.Equal(t, "sample/v2", objs[0].GetAPIVersion()) | ||
} | ||
|
||
func TestIssue22606(t *testing.T) { |
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.
func TestIssue22606(t *testing.T) { | |
func TestIssue22606(t *testing.T) { |
please add a better name for this test.
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.
Agree with @nitishfy. Maybe add a more descriptive name for the function and add the link to the issue as a comment.
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 you both, I renamed it.
cdb69cf
to
2179ad8
Compare
I'll discuss the backward compatibly on original issue later 👍 |
let's bring this issue in this week's meeting. |
@sivchari @nitishfy Then add documentation that:
Then for version |
@FourFifthsCode @nitishfy @leoluz |
I think we'd be required to do cherry-picking. |
@FourFifthsCode is suggesting we make two different changes, one for master/v3.0 and the other for v2.14. The master/v3.0 change would remove the The 2.14 change would just alter the logic to remove only trailing Personally I'd be satisfied with just the first change, since 3.0 goes GA early next week. |
Note that |
I deleted text.Semver from the repo in this commit. That commits for v3. |
Code lgtm! Can you add a page to the 2.14-3.0.md file documenting the change? |
Can we consider this change as breaking changes since treating tag is changed ? |
Yep, it's a breaking change. Here's the place to document it: https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/upgrading/2.14-3.0.md |
Thanks! I added the section about this change. |
@sivchari apologies that we weren't able to get this into 3.0! Could you rebase update the docs to indicate that the change will happen in 3.1? |
Signed-off-by: sivchari <[email protected]>
d8897f5
to
568f919
Compare
Signed-off-by: sivchari <[email protected]>
Signed-off-by: sivchari <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: sivchari <[email protected]> Signed-off-by: Michael Crenshaw <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]>
Signed-off-by: sivchari <[email protected]> Signed-off-by: Michael Crenshaw <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: sivchari <[email protected]> Signed-off-by: Michael Crenshaw <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: sivchari <[email protected]> Signed-off-by: Michael Crenshaw <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]> Signed-off-by: enneitex <[email protected]>
close #22606
Checklist: