Skip to content

Commit

Permalink
Support subpaths in buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Oct 18, 2023
1 parent c117330 commit 3a05f1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator-wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.10.21
version: 0.10.22
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
8 changes: 4 additions & 4 deletions charts/operator-wandb/charts/app/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ app deployments.

{{- define "app.bucket" -}}
{{- if eq .Values.global.bucket.provider "az" }}
{{- printf "az://%s/%s" .Values.global.bucket.name .Values.global.bucket.path -}}
{{- trimSuffix "/" (printf "az://%s/%s" .Values.global.bucket.name .Values.global.bucket.path) -}}
{{- end }}
{{- if eq .Values.global.bucket.provider "gcs" }}
{{- printf "gs://%s" .Values.global.bucket.name -}}
{{- trimSuffix "/" (printf "gs://%s" .Values.global.bucket.name) -}}
{{- end }}
{{- if eq .Values.global.bucket.provider "s3" }}
{{- if and .Values.global.bucket.accessKey .Values.global.bucket.secretKey}}
{{- printf "s3://%s:%s@%s" .Values.global.bucket.accessKey .Values.global.bucket.secretKey .Values.global.bucket.name -}}
{{- trimSuffix "/" (printf "s3://%s:%s@%s/%s" .Values.global.bucket.accessKey .Values.global.bucket.secretKey .Values.global.bucket.name .Values.global.bucket.path) -}}
{{- else }}
{{- printf "s3://%s" .Values.global.bucket.name -}}
{{- trimSuffix "/" (printf "s3://%s/%s" .Values.global.bucket.name .Values.global.bucket.path) -}}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 3a05f1f

Please sign in to comment.