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

Include optional namespace in keycloak-operator templates #1274

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

gwydionmv
Copy link
Contributor

@gwydionmv gwydionmv commented Jun 14, 2024

Description

Included optional namespace field in the keycloak-operator templates.

Checklist

  • This PR contains a description of the changes I'm making
  • I updated the version in Chart.yaml
  • I updated the changelog with an artifacthub.io/changes annotation in Chart.yaml, check the example in the documentation.
  • I updated applicable README.md files using pre-commit run
  • I documented any high-level concepts I'm introducing in docs/
  • CI is currently green and this is ready for review
  • I am ready to test changes after they are applied and released

@github-actions github-actions bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 14, 2024
@gwydionmv gwydionmv force-pushed the feature/include-optional-namespace branch from d5737e6 to 62482c9 Compare June 14, 2024 13:42
@github-actions github-actions bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 14, 2024
@gwydionmv gwydionmv marked this pull request as ready for review June 14, 2024 14:17
@gwydionmv gwydionmv requested a review from a team as a code owner June 14, 2024 14:17
Copy link
Member

@tongpu tongpu left a comment

Choose a reason for hiding this comment

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

I've left a few comments for you to consider.

Please make sure to also reflect the change in values.yaml, maybe with a commented out line showing how it can be used. Using namespace: "" might also work, because I think Helm treats empty string as if they don't exist.

Comment on lines +6 to +8
{{- with .Values.operator.namespace }}
namespace: {{ . }}
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

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

ClusterRoles are not namespaced, so this is not required here.

Suggested change
{{- with .Values.operator.namespace }}
namespace: {{ . }}
{{- end }}

Comment on lines +31 to +33
{{- with .Values.operator.namespace }}
namespace: {{ . }}
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

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

ClusterRoles are not namespaced, so this is not required here.

Suggested change
{{- with .Values.operator.namespace }}
namespace: {{ . }}
{{- end }}

Comment on lines +6 to +8
{{- with .Values.operator.namespace }}
namespace: {{ . }}
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

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

Is it also required that you can deploy the operator in another namespace the the one the Helm chart is being deployed into?
I can fully understand that you would want this for the keycloak instances, but the operator would be deployed in a central namespace right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants