Skip to content

Commit

Permalink
Merge pull request #991 from chancez/presto_hive_instance_creds
Browse files Browse the repository at this point in the history
charts,manifests: Support configuring Presto hive.s3.use-instance-credentials Hive catalog config property
  • Loading branch information
openshift-merge-robot authored Oct 29, 2019
2 parents 38229d3 + 8567eb0 commit 49435ce
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,8 @@ spec:
hive:
type: object
properties:
useHadoopConfig:
type: boolean
hadoopConfigSecretName:
type: string
metastoreTimeout:
Expand Down Expand Up @@ -1542,8 +1544,11 @@ spec:
- true
secretName:
minLength: 1
useHadoopConfig:
type: boolean
s3:
type: object
properties:
useInstanceCredentials:
type: boolean
environment:
type: string
maxQueryLength:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ hive.metastore.uri=thrift://hive-metastore:9083
{{- if .Values.presto.spec.config.connectors.hive.metastoreTimeout }}
hive.metastore-timeout={{ .Values.presto.spec.config.connectors.hive.metastoreTimeout }}
{{- end }}
{{- if .Values.presto.spec.config.connectors.hive.s3.useInstanceCredentials }}
hive.s3.use-instance-credentials={{ .Values.presto.spec.config.connectors.hive.s3.useInstanceCredentials }}
{{- end }}

{{- if .Values.presto.spec.config.connectors.hive.useHadoopConfig}}
hive.config.resources=/hadoop-config/core-site.xml
{{- end }}
{{- if .Values.presto.spec.config.s3Compatible.endpoint }}
hive.s3.endpoint={{ .Values.presto.spec.config.s3Compatible.endpoint }}
hive.s3.path-style-access=true
{{- end }}


{{- end }}

{{- define "presto-jmx-catalog-properties" -}}
Expand Down
2 changes: 2 additions & 0 deletions charts/openshift-metering/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,8 @@ presto:
createSecret: false
enabled: false
secretName: ""
s3:
useInstanceCredentials: null

extraConnectorFiles: []

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,8 @@ spec:
hive:
type: object
properties:
useHadoopConfig:
type: boolean
hadoopConfigSecretName:
type: string
metastoreTimeout:
Expand Down Expand Up @@ -1541,8 +1543,11 @@ spec:
- true
secretName:
minLength: 1
useHadoopConfig:
type: boolean
s3:
type: object
properties:
useInstanceCredentials:
type: boolean
environment:
type: string
maxQueryLength:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,8 @@ spec:
hive:
type: object
properties:
useHadoopConfig:
type: boolean
hadoopConfigSecretName:
type: string
metastoreTimeout:
Expand Down Expand Up @@ -1541,8 +1543,11 @@ spec:
- true
secretName:
minLength: 1
useHadoopConfig:
type: boolean
s3:
type: object
properties:
useInstanceCredentials:
type: boolean
environment:
type: string
maxQueryLength:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,8 @@ spec:
hive:
type: object
properties:
useHadoopConfig:
type: boolean
hadoopConfigSecretName:
type: string
metastoreTimeout:
Expand Down Expand Up @@ -1541,8 +1543,11 @@ spec:
- true
secretName:
minLength: 1
useHadoopConfig:
type: boolean
s3:
type: object
properties:
useInstanceCredentials:
type: boolean
environment:
type: string
maxQueryLength:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,8 @@ spec:
hive:
type: object
properties:
useHadoopConfig:
type: boolean
hadoopConfigSecretName:
type: string
metastoreTimeout:
Expand Down Expand Up @@ -1541,8 +1543,11 @@ spec:
- true
secretName:
minLength: 1
useHadoopConfig:
type: boolean
s3:
type: object
properties:
useInstanceCredentials:
type: boolean
environment:
type: string
maxQueryLength:
Expand Down
5 changes: 5 additions & 0 deletions manifests/deploy/openshift/telemeter/list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1447,6 +1447,11 @@ objects:
type: string
metastoreURI:
type: string
s3:
properties:
useInstanceCredentials:
type: boolean
type: object
tls:
oneOf:
- allOf:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,8 @@ spec:
hive:
type: object
properties:
useHadoopConfig:
type: boolean
hadoopConfigSecretName:
type: string
metastoreTimeout:
Expand Down Expand Up @@ -1541,8 +1543,11 @@ spec:
- true
secretName:
minLength: 1
useHadoopConfig:
type: boolean
s3:
type: object
properties:
useInstanceCredentials:
type: boolean
environment:
type: string
maxQueryLength:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,8 @@ spec:
hive:
type: object
properties:
useHadoopConfig:
type: boolean
hadoopConfigSecretName:
type: string
metastoreTimeout:
Expand Down Expand Up @@ -1541,8 +1543,11 @@ spec:
- true
secretName:
minLength: 1
useHadoopConfig:
type: boolean
s3:
type: object
properties:
useInstanceCredentials:
type: boolean
environment:
type: string
maxQueryLength:
Expand Down

0 comments on commit 49435ce

Please sign in to comment.