Skip to content

Commit

Permalink
Fix awx_kube_devel
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu committed Mar 11, 2024
1 parent d2c4b9c commit 488c9f4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion roles/installer/templates/jobs/migration.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
- name: "migration-job"
image: '{{ _image }}'
command:
- /usr/bin/awx-manage
- awx-manage
- migrate
- --noinput
volumeMounts:
Expand All @@ -29,6 +29,10 @@ spec:
mountPath: "/etc/tower/settings.py"
subPath: settings.py
readOnly: true
{% if development_mode | bool %}
- name: awx-devel
mountPath: "/awx_devel"
{% endif %}
volumes:
- name: "{{ ansible_operator_meta.name }}-application-credentials"
secret:
Expand All @@ -52,6 +56,11 @@ spec:
items:
- key: settings
path: settings.py
{% if development_mode | bool %}
- name: awx-devel
hostPath:
path: /awx_devel
{% endif %}
dnsPolicy: ClusterFirst
restartPolicy: Never
terminationGracePeriodSeconds: 30

0 comments on commit 488c9f4

Please sign in to comment.