-
Notifications
You must be signed in to change notification settings - Fork 262
release: support skipping CRD installations for Helm v3 #282
Conversation
pkg/release/release.go
Outdated
@@ -208,6 +208,7 @@ func (r *Release) Sync(client helm.Client, hr *v1.HelmRelease) (rHr *v1.HelmRele | |||
ResetValues: hr.Spec.ResetValues, | |||
MaxHistory: hr.GetMaxHistory(), | |||
Wait: hr.Spec.Wait || (curRel != nil && hr.Spec.Rollback.Enable), | |||
SkipCRDs: hr.Spec.SkipCRDs, |
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.
@hiddeco I know you are a stickler for ordering of the properties so let me know if you want it moved 😄
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.
Haha, I'd probably have done something like this:
...
Install: curRel == nil,
Force: hr.Spec.ForceUpgrade,
ResetValues: hr.Spec.ResetValues,
SkipCRDs: hr.Spec.SkipCRDs,
MaxHistory: hr.GetMaxHistory(),
...
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.
Done, reordered in the CRD too.
#!/usr/bin/env bats | ||
|
||
function setup() { | ||
# Load libraries in setup() to access BATS_* variables |
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.
Copying and pasting e2e to get going makes me feel dirty... I will have a look at what common stuff we can extract out at some point to make it easier to get started.
version: 1.1.1 | ||
values: | ||
ingressController: | ||
installCRDs: false |
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.
Need to set this so CRDs are not installed by the normal templates.
71b74fa
to
250226b
Compare
pkg/release/release.go
Outdated
@@ -208,6 +208,7 @@ func (r *Release) Sync(client helm.Client, hr *v1.HelmRelease) (rHr *v1.HelmRele | |||
ResetValues: hr.Spec.ResetValues, | |||
MaxHistory: hr.GetMaxHistory(), | |||
Wait: hr.Spec.Wait || (curRel != nil && hr.Spec.Rollback.Enable), | |||
SkipCRDs: hr.Spec.SkipCRDs, |
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.
Haha, I'd probably have done something like this:
...
Install: curRel == nil,
Force: hr.Spec.ForceUpgrade,
ResetValues: hr.Spec.ResetValues,
SkipCRDs: hr.Spec.SkipCRDs,
MaxHistory: hr.GetMaxHistory(),
...
250226b
to
c32fb29
Compare
c32fb29
to
d1578f5
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.
Local chart change for end-to-end test will be taken care of in a separate PR.
🚀
Adding support for
skipCRDs
for helm3 to allow a user to skip CRD installation if desired.@hiddeco I used the same release from the original issue for my e2e test, not sure we want this dependency on the kong chart so let me know if that is an issue.
Closes #278