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

fix: helm create namespace #96

Merged
merged 1 commit into from
Oct 18, 2023
Merged

fix: helm create namespace #96

merged 1 commit into from
Oct 18, 2023

Conversation

sergelogvinov
Copy link
Owner

Pull Request

What? (description)

Add an options that adds namespace in helm template result.
#95

Why? (reasoning)

Acceptance

Please use the following checklist:

  • you linked an issue (if applicable)
  • you included tests (if applicable)
  • you linted your code (make lint)
  • you linted your code (make unit)

See make help for a description of the available targets.

@sergelogvinov sergelogvinov force-pushed the helm-namespace branch 2 times, most recently from f13ebab to 9370237 Compare October 17, 2023 18:29
@@ -1,4 +1,4 @@
{{- if ne .Release.Namespace "kube-system" }}
{{- if and .Values.createNamespace (ne .Release.Namespace "kube-system") }}

Choose a reason for hiding this comment

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

I don't undestand the meaning of the createNamespace boolean. In my #95 issue, I've demonstrated that the creation of the namespace doesn't work.
Is the boolean aim to disable the namespace creation only ?
Also, if we don't enter in th if condition, you don't indicate int the README to add the security labels to the namespace. Are they mandatory ?

Copy link

@LeoShivas LeoShivas Oct 17, 2023

Choose a reason for hiding this comment

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

Yeah, I was too focused on the review. You said in my issue that you just want to disable the namespace creation.

My bad. :-)

Copy link
Owner Author

Choose a reason for hiding this comment

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

You are correct; we need to clarify the required label if someone wants to create namespace manually.

Add an options that adds namespace in helm template result.

Signed-off-by: Serge Logvinov <[email protected]>
@sergelogvinov sergelogvinov merged commit 364b8be into main Oct 18, 2023
3 checks passed
@sergelogvinov sergelogvinov deleted the helm-namespace branch October 18, 2023 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants