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

Add option for helm deployments to create namespace #4765

Merged
merged 3 commits into from
Sep 14, 2020

Conversation

anshlykov
Copy link
Contributor

Fixes: #4482

Description
This PR adds the ability to create a namespace for Helm deploy command if Helm version is 3.2+.

@anshlykov anshlykov requested a review from a team as a code owner September 8, 2020 23:56
@anshlykov anshlykov requested a review from tejal29 September 8, 2020 23:56
@codecov
Copy link

codecov bot commented Sep 11, 2020

Codecov Report

Merging #4765 into master will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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              
Impacted Files Coverage Δ
pkg/skaffold/schema/latest/config.go 100.00% <ø> (ø)
pkg/skaffold/schema/v2beta6/upgrade.go 100.00% <ø> (ø)
pkg/skaffold/schema/versions.go 82.75% <ø> (ø)
pkg/skaffold/deploy/helm.go 79.00% <100.00%> (-0.03%) ⬇️
pkg/skaffold/schema/v2beta7/config.go 100.00% <100.00%> (ø)
pkg/skaffold/schema/v2beta7/upgrade.go 100.00% <100.00%> (ø)
pkg/skaffold/docker/context.go 80.00% <0.00%> (ø)
pkg/skaffold/build/cluster/kaniko.go 0.00% <0.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b1f940...418020b. Read the comment docs.

@@ -272,6 +272,7 @@ var testTwoReleases = latest.HelmDeploy{
}},
}

var crateNamespaceFlag = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var crateNamespaceFlag = true
var createNamespaceFlag = true

Copy link
Contributor Author

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

@@ -284,7 +285,7 @@ var testDeployCreateNamespaceConfig = latest.HelmDeploy{
"some.key": "somevalue",
},
Namespace: "testReleaseNamespace",
CreateNamespace: true,
CreateNamespace: &crateNamespaceFlag,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CreateNamespace: &crateNamespaceFlag,
CreateNamespace: &createNamespaceFlag,

@gsquared94 gsquared94 added the kokoro:run runs the kokoro jobs on a PR label Sep 14, 2020
@kokoro-team kokoro-team removed the kokoro:run runs the kokoro jobs on a PR label Sep 14, 2020
@gsquared94 gsquared94 merged commit 4ab605b into GoogleContainerTools:master Sep 14, 2020
@anshlykov anshlykov deleted the gh-4482 branch September 14, 2020 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option for helm deployments to create namespace
4 participants