Add support for custom service labels

This commit is contained in:
Jeremy Kimber
2021-05-03 10:20:56 -05:00
parent 8772d0eec5
commit fd42802512
7 changed files with 24 additions and 0 deletions

View File

@@ -118,6 +118,9 @@ spec:
tower_node_selector:
description: nodeSelector for the AWX pods
type: string
tower_service_labels:
description: Additional labels to apply to the service
type: string
tower_tolerations:
description: node tolerations for the AWX pods
type: string

View File

@@ -120,6 +120,9 @@ spec:
tower_node_selector:
description: nodeSelector for the AWX pods
type: string
tower_service_labels:
description: Additional labels to apply to the service
type: string
tower_tolerations:
description: node tolerations for the AWX pods
type: string

View File

@@ -118,6 +118,9 @@ spec:
tower_node_selector:
description: nodeSelector for the AWX pods
type: string
tower_service_labels:
description: Additional labels to apply to the service
type: string
tower_tolerations:
description: node tolerations for the AWX pods
type: string

View File

@@ -381,6 +381,11 @@ spec:
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- urn:alm:descriptor:com.tectonic.ui:hidden
- displayName: Tower Service Labels
path: tower_service_labels
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- urn:alm:descriptor:com.tectonic.ui:text
- displayName: Tower Tolerations
path: tower_tolerations
x-descriptors:

View File

@@ -135,6 +135,9 @@ spec:
tower_node_selector:
description: nodeSelector for the AWX pods
type: string
tower_service_labels:
description: Additional labels to apply to the service
type: string
tower_old_postgres_configuration_secret:
description: Secret where the old database configuration can be found
for data migration

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_ingress_annotations: |
# 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) }}