mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Add support for custom service labels
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) }}
|
||||
|
||||
Reference in New Issue
Block a user