mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 23:18:03 -03: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:
parent
d7864c58c1
commit
23c386223c
@ -85,6 +85,12 @@ kind: Deployment
|
||||
metadata:
|
||||
name: {{ kubernetes_deployment_name }}
|
||||
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 %}
|
||||
labels:
|
||||
app: {{ kubernetes_deployment_name }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user