Skip to content

Commit

Permalink
[charts] Add aws session token env var to all charts required for tel…
Browse files Browse the repository at this point in the history
…emetry
  • Loading branch information
Z4ck404 committed Jan 17, 2024
1 parent 71d4322 commit 06ab071
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 56 deletions.
2 changes: 1 addition & 1 deletion charts/bigdata-notebook-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: bigdata-notebook-service
description: A Helm chart for the Spot Big Data Notebook Service
type: application
version: 0.2.3
version: 0.2.4
appVersion: 0.1.16
home: https://github.com/spotinst/charts
icon: https://docs.spot.io/_media/images/spot_mark.png
Expand Down
15 changes: 5 additions & 10 deletions charts/bigdata-notebook-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,6 @@ spec:
containerPort: 2020
protocol: TCP
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: spot-bigdata-telemetry-creds
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: spot-bigdata-telemetry-creds
key: AWS_SECRET_ACCESS_KEY
- name: AWS_BUCKET_NAME
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -187,6 +177,8 @@ spec:
- name: varlibdockercontainers
readOnly: true
mountPath: /var/lib/docker/containers
- name: aws-credentials-volume
mountPath: /root/.aws
volumes:
- name: config
configMap:
Expand All @@ -197,6 +189,9 @@ spec:
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: aws-credentials-volume
secret:
secretName: spot-bigdata-telemetry-creds
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
2 changes: 1 addition & 1 deletion charts/bigdata-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: bigdata-operator
description: Spot Ocean BigData Operator
type: application
version: 0.4.4
version: 0.4.5
appVersion: 0.4.3
home: https://github.com/spotinst/charts
icon: https://docs.spot.io/_media/images/spot_mark.png
Expand Down
17 changes: 6 additions & 11 deletions charts/bigdata-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,6 @@ spec:
containerPort: 2020
protocol: TCP
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: spot-bigdata-telemetry-creds
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: spot-bigdata-telemetry-creds
key: AWS_SECRET_ACCESS_KEY
- name: AWS_BUCKET_NAME
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -137,6 +127,8 @@ spec:
- name: varlibdockercontainers
readOnly: true
mountPath: /var/lib/docker/containers
- name: aws-credentials-volume
mountPath: /root/.aws
volumes:
- name: config
configMap:
Expand All @@ -147,6 +139,9 @@ spec:
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: aws-credentials-volume
secret:
secretName: spot-bigdata-telemetry-creds
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand All @@ -159,4 +154,4 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/bigdata-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: bigdata-proxy
description: A Helm chart for the Spot Big Data Proxy
type: application
version: 0.4.3
version: 0.4.4
appVersion: 0.5.3
home: https://github.com/spotinst/charts
icon: https://docs.spot.io/_media/images/spot_mark.png
Expand Down
15 changes: 5 additions & 10 deletions charts/bigdata-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,6 @@ spec:
containerPort: 2020
protocol: TCP
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: spot-bigdata-telemetry-creds
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: spot-bigdata-telemetry-creds
key: AWS_SECRET_ACCESS_KEY
- name: AWS_BUCKET_NAME
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -102,6 +92,8 @@ spec:
- name: varlibdockercontainers
readOnly: true
mountPath: /var/lib/docker/containers
- name: aws-credentials-volume
mountPath: /root/.aws
volumes:
- name: config
configMap:
Expand All @@ -112,6 +104,9 @@ spec:
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: aws-credentials-volume
secret:
secretName: spot-bigdata-telemetry-creds
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
2 changes: 1 addition & 1 deletion charts/bigdata-spark-watcher/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: bigdata-spark-watcher
description: A Helm chart for the Spot Big Data Spark Watcher
type: application
version: 0.5.0
version: 0.5.1
appVersion: 0.4.5
home: https://github.com/spotinst/charts
icon: https://docs.spot.io/_media/images/spot_mark.png
Expand Down
15 changes: 5 additions & 10 deletions charts/bigdata-spark-watcher/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,6 @@ spec:
containerPort: 2020
protocol: TCP
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: spot-bigdata-telemetry-creds
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: spot-bigdata-telemetry-creds
key: AWS_SECRET_ACCESS_KEY
- name: AWS_BUCKET_NAME
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -129,6 +119,8 @@ spec:
- name: varlibdockercontainers
readOnly: true
mountPath: /var/lib/docker/containers
- name: aws-credentials-volume
mountPath: /root/.aws
volumes:
- name: config
configMap:
Expand All @@ -139,6 +131,9 @@ spec:
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: aws-credentials-volume
secret:
secretName: spot-bigdata-telemetry-creds
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
2 changes: 1 addition & 1 deletion charts/spark-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Spark Operator (b/g part)
name: spark-operator
version: 0.1.22
version: 0.1.23
appVersion: v1beta2-1.3.4-3.1.1
dependencies:
- name: spark-operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,6 @@ spec:
containerPort: 2020
protocol: TCP
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: spot-bigdata-telemetry-creds
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: spot-bigdata-telemetry-creds
key: AWS_SECRET_ACCESS_KEY
- name: AWS_BUCKET_NAME
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -183,6 +173,8 @@ spec:
- name: varlibdockercontainers
readOnly: true
mountPath: /var/lib/docker/containers
- name: aws-credentials-volume
mountPath: /root/.aws
{{- end }}
{{- if or .Values.webhook.enable (ne (len .Values.volumes) 0) .Values.telemetry.enabled }}
volumes:
Expand All @@ -199,6 +191,9 @@ spec:
- name: config
configMap:
name: bigdata-telemetry-fluentbit-cm
- name: aws-credentials-volume
secret:
secretName: spot-bigdata-telemetry-creds
- name: varlog
hostPath:
path: /var/log/
Expand Down

0 comments on commit 06ab071

Please sign in to comment.