mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-27 05:43:11 +00:00
Add support for custom service labels
This commit is contained in:
@@ -118,6 +118,9 @@ spec:
|
|||||||
tower_node_selector:
|
tower_node_selector:
|
||||||
description: nodeSelector for the AWX pods
|
description: nodeSelector for the AWX pods
|
||||||
type: string
|
type: string
|
||||||
|
tower_service_labels:
|
||||||
|
description: Additional labels to apply to the service
|
||||||
|
type: string
|
||||||
tower_tolerations:
|
tower_tolerations:
|
||||||
description: node tolerations for the AWX pods
|
description: node tolerations for the AWX pods
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -120,6 +120,9 @@ spec:
|
|||||||
tower_node_selector:
|
tower_node_selector:
|
||||||
description: nodeSelector for the AWX pods
|
description: nodeSelector for the AWX pods
|
||||||
type: string
|
type: string
|
||||||
|
tower_service_labels:
|
||||||
|
description: Additional labels to apply to the service
|
||||||
|
type: string
|
||||||
tower_tolerations:
|
tower_tolerations:
|
||||||
description: node tolerations for the AWX pods
|
description: node tolerations for the AWX pods
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -118,6 +118,9 @@ spec:
|
|||||||
tower_node_selector:
|
tower_node_selector:
|
||||||
description: nodeSelector for the AWX pods
|
description: nodeSelector for the AWX pods
|
||||||
type: string
|
type: string
|
||||||
|
tower_service_labels:
|
||||||
|
description: Additional labels to apply to the service
|
||||||
|
type: string
|
||||||
tower_tolerations:
|
tower_tolerations:
|
||||||
description: node tolerations for the AWX pods
|
description: node tolerations for the AWX pods
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -381,6 +381,11 @@ spec:
|
|||||||
x-descriptors:
|
x-descriptors:
|
||||||
- urn:alm:descriptor:com.tectonic.ui:advanced
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
- urn:alm:descriptor:com.tectonic.ui:hidden
|
- 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
|
- displayName: Tower Tolerations
|
||||||
path: tower_tolerations
|
path: tower_tolerations
|
||||||
x-descriptors:
|
x-descriptors:
|
||||||
|
|||||||
@@ -135,6 +135,9 @@ spec:
|
|||||||
tower_node_selector:
|
tower_node_selector:
|
||||||
description: nodeSelector for the AWX pods
|
description: nodeSelector for the AWX pods
|
||||||
type: string
|
type: string
|
||||||
|
tower_service_labels:
|
||||||
|
description: Additional labels to apply to the service
|
||||||
|
type: string
|
||||||
tower_old_postgres_configuration_secret:
|
tower_old_postgres_configuration_secret:
|
||||||
description: Secret where the old database configuration can be found
|
description: Secret where the old database configuration can be found
|
||||||
for data migration
|
for data migration
|
||||||
|
|||||||
@@ -9,6 +9,12 @@ database_username: "{{ deployment_type }}"
|
|||||||
tower_task_privileged: false
|
tower_task_privileged: false
|
||||||
tower_ingress_type: none
|
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.:
|
# Add annotations to the ingress. Specify as literal block. E.g.:
|
||||||
# tower_ingress_annotations: |
|
# tower_ingress_annotations: |
|
||||||
# kubernetes.io/ingress.class: nginx
|
# kubernetes.io/ingress.class: nginx
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ metadata:
|
|||||||
app.kubernetes.io/part-of: '{{ meta.name }}'
|
app.kubernetes.io/part-of: '{{ meta.name }}'
|
||||||
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
|
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
|
||||||
app.kubernetes.io/component: '{{ deployment_type }}'
|
app.kubernetes.io/component: '{{ deployment_type }}'
|
||||||
|
{{ tower_service_labels | indent(width=4) }}
|
||||||
{% if tower_ingress_type | lower == 'loadbalancer' and tower_loadbalancer_annotations %}
|
{% if tower_ingress_type | lower == 'loadbalancer' and tower_loadbalancer_annotations %}
|
||||||
annotations:
|
annotations:
|
||||||
{{ tower_loadbalancer_annotations | indent(width=4) }}
|
{{ tower_loadbalancer_annotations | indent(width=4) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user