--- /dev/null
+{{- if not .Values.global.oldServiceAssurance -}}
+{{- if .Values.airflow.enabled -}}
+#######################################################################################
+# Copyright ETSI Contributors and Others.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#######################################################################################
+apiVersion: v1
+kind: Secret
+type: Opaque
+metadata:
+ name: airflow-webserver-secret
+ labels:
+ {{- include "osm.labels" . | nindent 4 }}
+data:
+ webserver-secret-key: {{ randAlphaNum 32 | b64enc | quote }}
+{{- end }}
+{{- end }}
\ No newline at end of file
if ! helm -n osm status airflow 2> /dev/null ; then
# if it does not exist, create secrets and install
- kubectl -n osm create secret generic airflow-webserver-secret --from-literal="webserver-secret-key=$(python3 -c 'import secrets; print(secrets.token_hex(16))')"
helm repo add apache-airflow https://airflow.apache.org
helm repo update
helm -n osm install airflow apache-airflow/airflow -f ${OSM_HELM_WORK_DIR}/airflow-values.yaml --version ${AIRFLOW_HELM_VERSION}