hussein-awala opened a new pull request, #35639:
URL: https://github.com/apache/airflow/pull/35639
This PR adds a new value, `airflowNamespaces` to create some resources
usually used by the K8S worker/K8S pod when creating them in another namespace.
I'm trying to refactorize the method:
```
{{- $workersNamespaces := list }}
{{- if .Values.multiNamespaceMode }}
{{- range $namespace := .Values.airflowNamespaces }}
{{- $workersNamespaces = mustAppend $workersNamespaces ($namespace |
quote) }}
{{- end }}
{{- end }}
{{- if not (has (.Release.Namespace | quote) $workersNamespaces) }}
{{ $workersNamespaces = mustPrepend $workersNamespaces
(.Release.Namespace | quote) }}
{{- end }}
```
and move it to `_helpers`, but I have a problem with the returned value
(string), which is badly parsed in the templates.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]