Merge pull request #333 from tchellomello/sa_annotations

Added ability to specify annotations to ServiceAccount
This commit is contained in:
Shane McDonald
2021-05-25 20:50:25 -04:00
committed by GitHub
9 changed files with 45 additions and 0 deletions

View File

@@ -9,6 +9,11 @@ database_username: "{{ deployment_type }}"
task_privileged: false
ingress_type: none
# Add annotations to the service account. Specify as literal block. E.g.:
# service_account_annotations: |
# eks.amazonaws.com/role-arn: arn:aws:iam::<ACCOUNT_ID>:role/<IAM_ROLE_NAME>
service_account_annotations: ''
# Custom labels for the tower service. Specify as literal block. E.g.:
# service_labels: |
# environment: non-production

View File

@@ -10,6 +10,10 @@ metadata:
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
app.kubernetes.io/component: '{{ deployment_type }}'
app.kubernetes.io/operator-version: '{{ lookup("env", "OPERATOR_VERSION") }}'
{% if service_account_annotations %}
annotations:
{{ service_account_annotations | indent(width=4) }}
{% endif %}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role