This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new c7858e8  Enable annotations to be added to the webserver service 
(#9776)
c7858e8 is described below

commit c7858e81a595a56715e09cf91f6e959ebe7b306a
Author: Vicken Simonian <[email protected]>
AuthorDate: Mon Jul 13 23:45:21 2020 -0700

    Enable annotations to be added to the webserver service (#9776)
---
 chart/README.md                                  | 5 +++--
 chart/templates/webserver/webserver-service.yaml | 4 ++++
 chart/values.yaml                                | 2 ++
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/chart/README.md b/chart/README.md
index c0d7847..c4a9205 100644
--- a/chart/README.md
+++ b/chart/README.md
@@ -194,9 +194,10 @@ The following tables lists the configurable parameters of 
the Airflow chart and
 | `webserver.resources.limits.memory`                   | Memory Limit of 
webserver                                                                       
             | `~`                                               |
 | `webserver.resources.requests.cpu`                    | CPU Request of 
webserver                                                                       
              | `~`                                               |
 | `webserver.resources.requests.memory`                 | Memory Request of 
webserver                                                                       
           | `~`                                               |
+| `webserver.service.annotations`                       | Annotations to be 
added to the webserver service                                                  
           | `{}`                                              |
 | `webserver.defaultUser`                               | Optional default 
airflow user information                                                        
            | `{}`                                              |
-| `dags.persistence.*`                               | Dag persistence 
configutation                                                                   
 | Please refer to `values.yaml`                                    |
-| `dags.gitSync.*`                               | Git sync configuration      
                                                             | Please refer to 
`values.yaml`                                    |
+| `dags.persistence.*`                                  | Dag persistence 
configutation                                                                   
             | Please refer to `values.yaml`                     |
+| `dags.gitSync.*`                                      | Git sync 
configuration                                                                   
                    | Please refer to `values.yaml`                     |
 
 
 Specify each parameter using the `--set key=value[,key=value]` argument to 
`helm install`. For example,
diff --git a/chart/templates/webserver/webserver-service.yaml 
b/chart/templates/webserver/webserver-service.yaml
index 77f5995..878a5d3 100644
--- a/chart/templates/webserver/webserver-service.yaml
+++ b/chart/templates/webserver/webserver-service.yaml
@@ -31,6 +31,10 @@ metadata:
 {{- with .Values.labels }}
 {{ toYaml . | indent 4 }}
 {{- end }}
+  annotations:
+{{- with .Values.webserver.service.annotations }}
+{{- toYaml . | nindent 4 }}
+{{- end }}
 spec:
   type: {{ .Values.webserver.service.type }}
   selector:
diff --git a/chart/values.yaml b/chart/values.yaml
index f0d5fa4..259b423 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -259,6 +259,8 @@ webserver:
 
   service:
     type: ClusterIP
+    ## service annotations
+    annotations: {}
 
 # Flower settings
 flower:

Reply via email to