Skip to content

Commit

Permalink
[archer] switch from linkerd-await to wget
Browse files Browse the repository at this point in the history
  • Loading branch information
notandy committed Nov 6, 2024
1 parent f453568 commit 1e5e682
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions openstack/archer/templates/job-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ spec:
- name: {{ include "archer.fullname" . }}-migration
image: "{{ .Values.global.registry }}/archer:{{ .Values.image.tag | required ".Values.image.tag is required" }}"
{{- if and $.Values.global.linkerd_enabled $.Values.global.linkerd_requested }}
command: [ "/linkerd-await" ]
args: [ "--shutdown", "--", "/usr/bin/archer-migrate", "--config-file=/etc/archer/archer.ini" ]
command: [ "/bin/sh" ]
args: [ "-c", "/usr/bin/archer-migrate --config-file=/etc/archer/archer.ini && wget -O- --post-data hello=shutdown http://0.0.0.0:4191/shutdown" ]
{{- else }}
command: [ "/usr/bin/archer-migrate" ]
args: [ "--config-file=/etc/archer/archer.ini" ]
Expand All @@ -40,10 +40,6 @@ spec:
secretKeyRef:
name: sentry
key: archer.DSN
{{- if not (and $.Values.global.linkerd_enabled $.Values.global.linkerd_requested) }}
- name: LINKERD_AWAIT_DISABLED
value: "Linkerd was not enabled or not requested"
{{- end }}
- name: PGPASSWORD
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 1e5e682

Please sign in to comment.