Skip to content

Commit

Permalink
fix(sc): fix sc lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Mar 17, 2024
1 parent b090b8b commit 6a56222
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ maintainers:
name: common
sources: null
type: library
version: 20.2.0
version: 20.2.2
annotations:
artifacthub.io/category: "integration-delivery"
artifacthub.io/license: "BUSL-1.1"
Expand Down
2 changes: 1 addition & 1 deletion library/common/templates/lib/storage/_storageClassName.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ objectData: The object data of the pvc
{{/* On Cobia -> Dragonfish update the ixChartContext should still be there, for existing apps so we can reference it */}}
{{- else if and $rootCtx.Values.global.ixChartContext $rootCtx.Values.global.ixChartContext.storageClassName -}}
{{- $scaleClassFound := false -}}
{{- with (lookup "v1" "StorageClass" "" $rootCtx.Values.global.ixChartContext.storageClassName) -}}
{{- with (lookup "storage.k8s.io/v1" "StorageClass" "" $rootCtx.Values.global.ixChartContext.storageClassName) -}}
{{/* Check if there is an actually valid storageClass found */}}
{{- if .provisioner -}}
{{- $scaleClassFound = true -}}
Expand Down

0 comments on commit 6a56222

Please sign in to comment.