Merge pull request #272 from kimbernator/devel

Add support for custom service labels
This commit is contained in:
Christian Adams
2021-05-10 15:18:31 -04:00
committed by GitHub
7 changed files with 25 additions and 0 deletions

View File

@@ -9,6 +9,12 @@ database_username: "{{ deployment_type }}"
tower_task_privileged: false
tower_ingress_type: none
# Custom labels for the tower service. Specify as literal block. E.g.:
# tower_service_labels: |
# environment: non-production
# zone: internal
tower_service_labels: ''
# Add annotations to the ingress. Specify as literal block. E.g.:
# tower_ingress_annotations: |
# kubernetes.io/ingress.class: nginx

View File

@@ -9,6 +9,7 @@ metadata:
app.kubernetes.io/part-of: '{{ meta.name }}'
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
app.kubernetes.io/component: '{{ deployment_type }}'
{{ tower_service_labels | indent(width=4) }}
{% if tower_ingress_type | lower == 'loadbalancer' and tower_loadbalancer_annotations %}
annotations:
{{ tower_loadbalancer_annotations | indent(width=4) }}