-
Notifications
You must be signed in to change notification settings - Fork 44
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
base: main
Are you sure you want to change the base?
Include optional namespace in keycloak-operator templates #1274
Conversation
d5737e6
to
62482c9
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.
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.
{{- with .Values.operator.namespace }} | ||
namespace: {{ . }} | ||
{{- end }} |
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.
ClusterRoles are not namespaced, so this is not required here.
{{- with .Values.operator.namespace }} | |
namespace: {{ . }} | |
{{- end }} |
{{- with .Values.operator.namespace }} | ||
namespace: {{ . }} | ||
{{- end }} |
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.
ClusterRoles are not namespaced, so this is not required here.
{{- with .Values.operator.namespace }} | |
namespace: {{ . }} | |
{{- end }} |
{{- with .Values.operator.namespace }} | ||
namespace: {{ . }} | ||
{{- end }} |
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.
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?
Description
Included optional namespace field in the keycloak-operator templates.
Checklist
artifacthub.io/changes
annotation inChart.yaml
, check the example in the documentation.pre-commit run
docs/