-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add option for helm deployments to create namespace #4765
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4765 +/- ##
==========================================
+ Coverage 73.79% 73.85% +0.06%
==========================================
Files 345 347 +2
Lines 13744 13757 +13
==========================================
+ Hits 10142 10160 +18
+ Misses 2970 2965 -5
Partials 632 632
Continue to review full report at Codecov.
|
pkg/skaffold/deploy/helm_test.go
Outdated
@@ -272,6 +272,7 @@ var testTwoReleases = latest.HelmDeploy{ | |||
}}, | |||
} | |||
|
|||
var crateNamespaceFlag = true |
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.
var crateNamespaceFlag = true | |
var createNamespaceFlag = true |
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.
@gsquared94 thanks for catching this. fixed
pkg/skaffold/deploy/helm_test.go
Outdated
@@ -284,7 +285,7 @@ var testDeployCreateNamespaceConfig = latest.HelmDeploy{ | |||
"some.key": "somevalue", | |||
}, | |||
Namespace: "testReleaseNamespace", | |||
CreateNamespace: true, | |||
CreateNamespace: &crateNamespaceFlag, |
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.
CreateNamespace: &crateNamespaceFlag, | |
CreateNamespace: &createNamespaceFlag, |
Fixes: #4482
Description
This PR adds the ability to create a namespace for Helm deploy command if Helm version is 3.2+.