Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions charts/argocd-understack/templates/application-argo-events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ spec:
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
kustomize:
patches:
- patch: |
- op: add
path: /data/UNDERSTACK_PARTITION
value: "{{ index $.Values.appLabels "understack.rackspace.com/partition" | default "" }}"
- op: add
path: /data/UNDERSTACK_SITE
value: "{{ index $.Values.appLabels "understack.rackspace.com/site" | default "" }}"
target:
kind: ConfigMap
name: cluster-metadata
syncPolicy:
automated:
prune: true
Expand Down
2 changes: 1 addition & 1 deletion workflows/argo-events/workflowtemplates/ansible-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
- "{{ inputs.parameters.project_path }}"
- --playbook
- "{{ inputs.parameters.playbook }}"
- --cmdline=-i {{ inputs.parameters.inventory_file }} --extra-vars '{{ inputs.parameters.extra_vars }} env=$(UNDERSTACK_ENV) site=$(openstack_region)' -vvv
- --cmdline=-i {{ inputs.parameters.inventory_file }} --extra-vars '{{ inputs.parameters.extra_vars }} env=$(UNDERSTACK_PARTITION) site=$(UNDERSTACK_SITE) partition=$(UNDERSTACK_PARTITION)' -vvv
env:
- name: NAUTOBOT_TOKEN
valueFrom:
Expand Down
Loading