add Service Account annotation

Signed-off-by: Donovan Murphy <dono@dono.email>
This commit is contained in:
Donovan Murphy 2020-02-19 20:29:42 -06:00
parent 7c8c6b5333
commit ed8133be2d

View File

@ -4,6 +4,12 @@ kind: ServiceAccount
metadata:
name: awx
namespace: {{ kubernetes_namespace }}
{% if kubernetes_service_account_annotations is defined %}
annotations:
{% for key, value in kubernetes_service_account_annotations.items() %}
{{ key }}: {{ value }}
{% endfor %}
{% endif %}
{% if kubernetes_image_pull_secrets is defined %}
imagePullSecrets:
- name: "{{ kubernetes_image_pull_secrets }}"