mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Add Kubernetes Deployment support for annotations
Annotations are only supported for ingress and service accounts This PR will allow you now to specify annotations for Kubernetes Deployment resources by defining `kubernetes_deployment_annotations` var list
This commit is contained in:
@@ -85,6 +85,12 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ kubernetes_deployment_name }}
|
name: {{ kubernetes_deployment_name }}
|
||||||
namespace: {{ kubernetes_namespace }}
|
namespace: {{ kubernetes_namespace }}
|
||||||
|
{% if kubernetes_deployment_annotations is defined %}
|
||||||
|
annotations:
|
||||||
|
{% for key, value in kubernetes_deployment_annotations.items() %}
|
||||||
|
{{ key }}: {{ value }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% if openshift_host is defined %}
|
{% if openshift_host is defined %}
|
||||||
labels:
|
labels:
|
||||||
app: {{ kubernetes_deployment_name }}
|
app: {{ kubernetes_deployment_name }}
|
||||||
|
|||||||
Reference in New Issue
Block a user