Skip to content

Commit

Permalink
Add ServiceAccount and ImagePullSecet to migration job (#1763)
Browse files Browse the repository at this point in the history
Add ServiceAccount and ImagePullSecet to migration pod
  • Loading branch information
TheRealHaoLiu committed Mar 13, 2024
1 parent af16e9e commit 0dbf3dd
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 0dbf3dd

Please sign in to comment.