-
Notifications
You must be signed in to change notification settings - Fork 342
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
default namespace setup #276
Conversation
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.
Why not let the helm chart register any number of arbitrary namespaces?
It’s more flexible, not called “default” (which may be confused with the name default) and doesn’t need an enabled
flag.
- name: DEFAULT_NAMESPACE | ||
value: "{{ .Values.defaultnamespace.setup.name }}" | ||
- name: DEFAULT_NAMESPACE_RETENTION | ||
value: "{{ .Values.defaultnamespace.setup.retention }}" |
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.
This doesn’t support tls afaict, which is a fairly common requirement when setting up the server.
- name: create-default-namespace | ||
image: "{{ $.Values.admintools.image.repository }}:{{ $.Values.admintools.image.tag }}" | ||
imagePullPolicy: {{ $.Values.admintools.image.pullPolicy }} | ||
command: ['sh', '-c', 'tctl --ns $(DEFAULT_NAMESPACE) namespace describe || tctl --ns $(DEFAULT_NAMESPACE) namespace register --rd $(DEFAULT_NAMESPACE_RETENTION) --desc "Default namespace for Temporal Server."'] |
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.
Can you please use temporal cli instead of the soon to be deprecated tctl?
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 think this command is missing quotes around the variables
{{- end }} | ||
{{- 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.
{{- end }} | |
{{- end }} | |
{{- end }} | |
--- | |
{{- end }} |
enabled: false | ||
name: default | ||
backoffLimit: 100 | ||
retention: 1 |
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.
use bigger default value?
defaultnamespace: | ||
setup: | ||
enabled: false | ||
name: default |
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.
can support multi name?
Implemented in #550 |
What was changed
Optional job to create a default namespace.
Why?
Current deployment needs a manual step
Checklist
Closes
How was this tested:
Tested on k8s with postgresql DB created by zalando postgres operator
Any docs updates needed?