Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chart/templates/cleanup/cleanup-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow Cleanup ServiceAccount
#################################
{{- if and .Values.cleanup.serviceAccount.create .Values.cleanup.enabled }}
kind: ServiceAccount
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "cleanup.serviceAccountName" . }}
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
{{- $revisionHistoryLimit := or .Values.dagProcessor.revisionHistoryLimit .Values.revisionHistoryLimit }}
{{- $securityContext := include "airflowPodSecurityContext" (list . .Values.dagProcessor) }}
{{- $containerSecurityContext := include "containerSecurityContext" (list . .Values.dagProcessor) }}
kind: Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-dag-processor
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#################################
{{- if semverCompare ">=2.3.0" .Values.airflowVersion }}
{{- if and .Values.dagProcessor.serviceAccount.create .Values.dagProcessor.enabled }}
kind: ServiceAccount
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "dagProcessor.serviceAccountName" . }}
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/dags-persistent-volume-claim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow DAGs PersistentVolumeClaim
######################################
{{- if and (not .Values.dags.persistence.existingClaim ) .Values.dags.persistence.enabled }}
kind: PersistentVolumeClaim
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ template "airflow_dags_volume_claim" . }}
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/flower/flower-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
{{- $revisionHistoryLimit := or .Values.flower.revisionHistoryLimit .Values.revisionHistoryLimit }}
{{- $securityContext := include "airflowPodSecurityContext" (list . .Values.flower) }}
{{- $containerSecurityContext := include "containerSecurityContext" (list . .Values.flower) }}
kind: Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-flower
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/flower/flower-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#################################
{{- if .Values.flower.enabled }}
{{- if or (eq .Values.executor "CeleryExecutor") (eq .Values.executor "CeleryKubernetesExecutor") }}
kind: Service
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-flower
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/flower/flower-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow Flower ServiceAccount
######################################
{{- if and .Values.flower.enabled (or (eq .Values.executor "CeleryExecutor") (eq .Values.executor "CeleryKubernetesExecutor")) .Values.flower.serviceAccount.create }}
kind: ServiceAccount
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "flower.serviceAccountName" . }}
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/jobs/create-user-job-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow Create User Job ServiceAccount
###########################################
{{- if and .Values.createUserJob.serviceAccount.create .Values.webserver.defaultUser.enabled }}
kind: ServiceAccount
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "createUserJob.serviceAccountName" . }}
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow Migrate Database Job ServiceAccount
##############################################
{{- if .Values.migrateDatabaseJob.serviceAccount.create }}
kind: ServiceAccount
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "migrateDatabaseJob.serviceAccountName" . }}
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/logs-persistent-volume-claim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow LOGs PersistentVolumeClaim
######################################
{{- if and (not .Values.logs.persistence.existingClaim ) .Values.logs.persistence.enabled }}
kind: PersistentVolumeClaim
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ template "airflow_logs_volume_claim" . }}
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/pgbouncer/pgbouncer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
{{- $revisionHistoryLimit := or .Values.pgbouncer.revisionHistoryLimit .Values.revisionHistoryLimit }}
{{- $containerSecurityContext := include "containerSecurityContext" (list . .Values.pgbouncer) }}
{{- $containerSecurityContextMetricsExporter := include "containerSecurityContext" (list . .Values.pgbouncer.metricsExporterSidecar) }}
kind: Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-pgbouncer
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Pgbouncer PodDisruptionBudget
#################################
{{- if and .Values.pgbouncer.enabled .Values.pgbouncer.podDisruptionBudget.enabled }}
kind: PodDisruptionBudget
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ .Release.Name }}-pgbouncer-pdb
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/pgbouncer/pgbouncer-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow Pgbouncer ServiceAccount
######################################
{{- if and .Values.pgbouncer.serviceAccount.create .Values.pgbouncer.enabled }}
kind: ServiceAccount
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "pgbouncer.serviceAccountName" . }}
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/rbac/pod-cleanup-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow Cleanup Role
#################################
{{- if and .Values.rbac.create .Values.cleanup.enabled }}
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ .Release.Name }}-cleanup-role
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/rbac/pod-cleanup-rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow Cleanup Role Binding
#################################
{{- if and .Values.rbac.create .Values.cleanup.enabled }}
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ .Release.Name }}-cleanup-rolebinding
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/rbac/pod-launcher-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
## Airflow Pod Launcher Role
#################################
{{- if and .Values.rbac.create .Values.allowPodLaunching }}
apiVersion: rbac.authorization.k8s.io/v1
{{- if .Values.multiNamespaceMode }}
kind: ClusterRole
{{- else }}
kind: Role
{{- end }}
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ .Release.Name }}-pod-launcher-role
{{- if not .Values.multiNamespaceMode }}
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/rbac/pod-launcher-rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
{{- if and .Values.rbac.create .Values.allowPodLaunching }}
{{- $schedulerLaunchExecutors := list "LocalExecutor" "LocalKubernetesExecutor" "KubernetesExecutor" "CeleryKubernetesExecutor" }}
{{- $workerLaunchExecutors := list "CeleryExecutor" "LocalKubernetesExecutor" "KubernetesExecutor" "CeleryKubernetesExecutor" }}
apiVersion: rbac.authorization.k8s.io/v1
{{- if .Values.multiNamespaceMode }}
kind: ClusterRoleBinding
{{- else }}
kind: RoleBinding
{{- end }}
apiVersion: rbac.authorization.k8s.io/v1
metadata:
{{- if not .Values.multiNamespaceMode }}
namespace: "{{ .Release.Namespace }}"
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/rbac/pod-log-reader-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
## Airflow Pod Reader Role
#################################
{{- if and .Values.rbac.create (or .Values.webserver.allowPodLogReading .Values.triggerer.enabled) }}
apiVersion: rbac.authorization.k8s.io/v1
{{- if .Values.multiNamespaceMode }}
kind: ClusterRole
{{- else }}
kind: Role
{{- end }}
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ .Release.Name }}-pod-log-reader-role
{{- if not .Values.multiNamespaceMode }}
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/rbac/pod-log-reader-rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
## Airflow Pod Reader Role Binding
#################################
{{- if and .Values.rbac.create (or .Values.webserver.allowPodLogReading .Values.triggerer.enabled) }}
apiVersion: rbac.authorization.k8s.io/v1
{{- if .Values.multiNamespaceMode }}
kind: ClusterRoleBinding
{{- else }}
kind: RoleBinding
{{- end }}
apiVersion: rbac.authorization.k8s.io/v1
metadata:
{{- if not .Values.multiNamespaceMode }}
namespace: "{{ .Release.Namespace }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
#################################
{{- if and .Values.rbac.create .Values.rbac.createSCCRoleBinding }}
{{- $hasWorkers := has .Values.executor (list "CeleryExecutor" "LocalKubernetesExecutor" "KubernetesExecutor" "CeleryKubernetesExecutor") }}
apiVersion: rbac.authorization.k8s.io/v1
{{- if .Values.multiNamespaceMode }}
kind: ClusterRoleBinding
{{- else }}
kind: RoleBinding
{{- end }}
apiVersion: rbac.authorization.k8s.io/v1
metadata:
{{- if not .Values.multiNamespaceMode }}
namespace: "{{ .Release.Namespace }}"
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/redis/redis-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow Redis Service
#################################
{{- if and .Values.redis.enabled (or (eq .Values.executor "CeleryExecutor") (eq .Values.executor "CeleryKubernetesExecutor")) }}
kind: Service
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-redis
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/redis/redis-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow Redis ServiceAccount
######################################
{{- if and .Values.redis.enabled .Values.redis.serviceAccount.create (or (eq .Values.executor "CeleryExecutor") (eq .Values.executor "CeleryKubernetesExecutor")) }}
kind: ServiceAccount
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "redis.serviceAccountName" . }}
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/redis/redis-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
{{- $topologySpreadConstraints := or .Values.redis.topologySpreadConstraints .Values.topologySpreadConstraints }}
{{- $securityContext := include "localPodSecurityContext" .Values.redis }}
{{- $containerSecurityContext := include "containerSecurityContext" (list . .Values.redis) }}
kind: StatefulSet
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ .Release.Name }}-redis
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/scheduler/scheduler-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
{{- $containerSecurityContext := include "containerSecurityContext" (list . .Values.scheduler) }}
{{- $containerSecurityContextWaitForMigrations := include "containerSecurityContext" (list . .Values.scheduler.waitForMigrations) }}
{{- $containerSecurityContextLogGroomerSidecar := include "containerSecurityContext" (list . .Values.scheduler.logGroomerSidecar) }}
kind: {{ if $stateful }}StatefulSet{{ else }}Deployment{{ end }}
apiVersion: apps/v1
kind: {{ if $stateful }}StatefulSet{{ else }}Deployment{{ end }}
metadata:
name: {{ .Release.Name }}-scheduler
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow Scheduler PodDisruptionBudget
#################################
{{- if .Values.scheduler.podDisruptionBudget.enabled }}
kind: PodDisruptionBudget
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ .Release.Name }}-scheduler-pdb
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/scheduler/scheduler-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow Scheduler Service
#################################
{{- if or (eq .Values.executor "LocalExecutor") (eq .Values.executor "LocalKubernetesExecutor") }}
kind: Service
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-scheduler
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/scheduler/scheduler-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Airflow Scheduler ServiceAccount
#################################
{{- if .Values.scheduler.serviceAccount.create }}
kind: ServiceAccount
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "scheduler.serviceAccountName" . }}
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/secrets/elasticsearch-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Elasticsearch Secret
#################################
{{- if (and .Values.elasticsearch.enabled (not .Values.elasticsearch.secretName)) }}
kind: Secret
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-elasticsearch
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/secrets/fernetkey-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#################################
{{- if not .Values.fernetKeySecretName }}
{{- $generated_fernet_key := (randAlphaNum 32 | b64enc) }}
kind: Secret
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-fernet-key
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/secrets/flower-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Flower Secret
#################################
{{- if (and (not .Values.flower.secretName) .Values.flower.username .Values.flower.password) }}
kind: Secret
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-flower
labels:
Expand Down
4 changes: 2 additions & 2 deletions chart/templates/secrets/kerberos-keytab-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#################################
{{- if .Values.kerberos.keytabBase64Content }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "kerberos_keytab_secret" . | quote }}
labels:
Expand All @@ -33,8 +34,7 @@ metadata:
{{- with .Values.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
type: Opaque
data:
kerberos.keytab: {{ .Values.kerberos.keytabBase64Content }}
kind: Secret
type: Opaque
{{- end }}
2 changes: 1 addition & 1 deletion chart/templates/secrets/metadata-connection-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
{{- $port := ((ternary .Values.ports.pgbouncer .Values.data.metadataConnection.port .Values.pgbouncer.enabled) | toString) }}
{{- $database := (ternary (printf "%s-%s" .Release.Name "metadata") .Values.data.metadataConnection.db .Values.pgbouncer.enabled) }}
{{- $query := ternary (printf "sslmode=%s" .Values.data.metadataConnection.sslmode) "" (eq .Values.data.metadataConnection.protocol "postgresql") }}
kind: Secret
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-airflow-metadata
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Pgbouncer Certificate Secret
#################################
{{- if or .Values.pgbouncer.ssl.ca .Values.pgbouncer.ssl.cert .Values.pgbouncer.ssl.key }}
kind: Secret
apiVersion: v1
kind: Secret
metadata:
name: {{ template "pgbouncer_certificates_secret" . }}
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/secrets/pgbouncer-config-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Pgbouncer Config Secret
#################################
{{- if (and .Values.pgbouncer.enabled (not .Values.pgbouncer.configSecretName)) }}
kind: Secret
apiVersion: v1
kind: Secret
metadata:
name: {{ template "pgbouncer_config_secret" . }}
labels:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/secrets/pgbouncer-stats-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
## Pgbouncer Stats Secret
#################################
{{- if .Values.pgbouncer.enabled }}
kind: Secret
apiVersion: v1
kind: Secret
metadata:
name: {{ template "pgbouncer_stats_secret" . }}
labels:
Expand Down
4 changes: 2 additions & 2 deletions chart/templates/secrets/redis-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
{{- $random_redis_password := randAlphaNum 10 }}
{{- if and .Values.redis.enabled (not .Values.redis.passwordSecretName) }}
# If passwordSecretName is not set, we will either use the set password, or use the generated one
kind: Secret
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-redis-password
labels:
Expand All @@ -56,8 +56,8 @@ data:
##################################
## Airflow Redis Connection Secret
##################################
kind: Secret
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-broker-url
labels:
Expand Down
Loading