Skip to content

Commit

Permalink
Merge pull request #34 from castai/fix-wrong-migrate-job-params
Browse files Browse the repository at this point in the history
fix: Missing user id in job definition
  • Loading branch information
Ivaka authored Sep 2, 2024
2 parents 60a153f + c182bbe commit b385a41
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
- /bin/sh
- -c
- |
configmap_data=$(kubectl get configmap ${CONFIGMAP_NAME} -o json)
configmap_data=$(kubectl get configmap -n {{ .Release.Namespace }} {{ include "gpu-metrics-exporter.config-map" . }} -o json)
if echo $configmap_data | jq -e '.data["API_KEY"]' > /dev/null; then
secret_value=$(echo $configmap_data | jq -r '.data["API_KEY"]')
Expand All @@ -35,6 +35,7 @@ spec:
echo "API_KEY not found in the ConfigMap. Skipping migration."
fi
securityContext:
runAsUser: 1000
readOnlyRootFilesystem: true
runAsNonRoot: true
capabilities:
Expand Down

0 comments on commit b385a41

Please sign in to comment.