Skip to content

Commit

Permalink
[Fix] Airflow Auth
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvinmaniar123 committed Nov 21, 2023
1 parent 345a01d commit c8b9266
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions charts/openmetadata/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ OpenMetadata Configurations Environment Variables*/}}
value: "{{ .Values.openmetadata.config.pipelineServiceClientConfig.ingestionIpInfoEnabled }}"
- name: PIPELINE_SERVICE_CLIENT_ENDPOINT
value: "{{ .Values.openmetadata.config.pipelineServiceClientConfig.apiEndpoint }}"
{{ if and (contains "airflow" .Values.openmetadata.config.pipelineServiceClientConfig.className) (.Values.openmetadata.config.pipelineServiceClientConfig.auth.enabled) }}
{{- with .Values.openmetadata.config.pipelineServiceClientConfig.auth }}
- name: AIRFLOW_USERNAME
value: "{{ .username }}"
Expand All @@ -368,6 +369,7 @@ OpenMetadata Configurations Environment Variables*/}}
name: {{ .password.secretRef }}
key: {{ .password.secretKey }}
{{- end }}
{{- end }}
- name: PIPELINE_SERVICE_CLIENT_VERIFY_SSL
value: "{{ .Values.openmetadata.config.pipelineServiceClientConfig.verifySsl }}"
- name: PIPELINE_SERVICE_CLIENT_HOST_IP
Expand Down
5 changes: 4 additions & 1 deletion charts/openmetadata/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"properties": {
"auth": {
"type": "object",
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"password": {
"type": "object",
Expand Down Expand Up @@ -1056,6 +1056,9 @@
"type": "object",
"additionalProperties": false,
"properties": {
"enabled" : {
"type": "boolean"
},
"config": {
"type": "object",
"properties": {
Expand Down
7 changes: 4 additions & 3 deletions charts/openmetadata/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ openmetadata:
dbParams: "allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC"
pipelineServiceClientConfig:
enabled: true
className: "org.openmetadata.service.clients.pipeline.airflow.AirflowRESTClient"
className: "io.collate.pipeline.argo.ArgoServiceClient"
# endpoint url for airflow
apiEndpoint: http://openmetadata-dependencies-web:8080
# this will be the api endpoint url of OpenMetadata Server
Expand All @@ -70,6 +70,7 @@ openmetadata:
# local path in Airflow Pod
sslCertificatePath: "/no/path"
auth:
enabled: true
username: admin
password:
secretRef: airflow-secrets
Expand Down Expand Up @@ -392,8 +393,8 @@ startupProbe:
podDisruptionBudget:
enabled: false
config:
maxUnavailable: 1
minAvailable: 1
maxUnavailable: "1"
minAvailable: "1"

commonLabels: {}
podAnnotations: {}

0 comments on commit c8b9266

Please sign in to comment.