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

[Feature Request] add ability to run CLI admin commands from helm chart #303

Open
shmykyta opened this issue Jul 6, 2022 · 1 comment
Open
Labels
enhancement New feature or request question Further information is requested

Comments

@shmykyta
Copy link

shmykyta commented Jul 6, 2022

Is your feature request related to a problem? Please describe.

Currently need to run tctl commands after deployment manually what contradict cloud native and automation way to manage application and infrastructure.

https://github.com/temporalio/helm-charts#running-temporal-cli-from-the-admin-tools-container

Describe the solution you'd like

Use ability to add admin CLI commands to postStart lifecycle hook:
https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

      containers:
        - name: admin-tools
          image: "{{ .Values.admintools.image.repository }}:{{ .Values.admintools.image.tag }}"
          imagePullPolicy: {{ .Values.admintools.image.pullPolicy }}
          {{- if .Values.cliCommand }}
          lifecycle:
            postStart:
             exec:
                command: ["/bin/sh", "-c", {{ .Values.cliCommand | quote }}]
          {{- end }}
          ports:
            - name: http
              containerPort: 22
              protocol: TCP
          env:
            - name: TEMPORAL_CLI_ADDRESS
              value: {{ include "temporal.fullname" . }}-frontend:{{ include "temporal.frontend.grpcPort" . }}
          livenessProbe:
              exec:
                command:
                - ls
                - /
@shmykyta shmykyta added the enhancement New feature or request label Jul 6, 2022
@robholland
Copy link
Contributor

Do you have an example of a command you need to run? This doesn't feel in-scope for the chart to provide.

@robholland robholland added the question Further information is requested label Jun 15, 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 question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants