Skip to content

Commit

Permalink
Add ServiceAccount and ImagePullSecet to migration pod
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu committed Mar 13, 2024
1 parent 154b801 commit 7508669
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/installer/templates/jobs/migration.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ spec:
{% if development_mode | bool %}
- name: awx-devel
mountPath: "/awx_devel"
{% endif %}
serviceAccountName: '{{ ansible_operator_meta.name }}'
{% if image_pull_secret is defined %}
imagePullSecrets:
- name: {{ image_pull_secret }}
{% elif image_pull_secrets | length > 0 %}
imagePullSecrets:
{% for secret in image_pull_secrets %}
- name: {{ secret }}
{% endfor %}
{% endif %}
volumes:
- name: "{{ ansible_operator_meta.name }}-application-credentials"
Expand Down

0 comments on commit 7508669

Please sign in to comment.