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

default namespace setup #276

Closed
wants to merge 1 commit into from

Conversation

everesio
Copy link

What was changed

Optional job to create a default namespace.

Why?

Current deployment needs a manual step

Checklist

  1. Closes

  2. How was this tested:
    Tested on k8s with postgresql DB created by zalando postgres operator

  3. Any docs updates needed?

@mindaugasrukas mindaugasrukas requested a review from a team June 30, 2023 20:38
Copy link
Member

@bergundy bergundy left a 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 }}"
Copy link
Member

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."']
Copy link
Member

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?

Copy link
Member

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

Comment on lines 302 to 303
{{- end }}
{{- end }}
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
{{- end }}
{{- end }}
{{- end }}
---
{{- end }}

enabled: false
name: default
backoffLimit: 100
retention: 1

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

Choose a reason for hiding this comment

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

can support multi name?

@robholland robholland added enhancement New feature or request needs revision Team has requested some changes labels Jun 8, 2024
@robholland
Copy link
Contributor

Implemented in #550

@robholland robholland closed this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs revision Team has requested some changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants