Skip to content

refactor: Tidy up Nutanix CSI with consistent apply strategy #733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ spec:
- --helm-addons-configmap={{ .Values.helmAddonsConfigMap }}
- --cni.cilium.helm-addon.default-values-template-configmap-name={{ .Values.hooks.cni.cilium.helmAddonStrategy.defaultValueTemplateConfigMap.name }}
- --nfd.helm-addon.default-values-template-configmap-name={{ .Values.hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.name }}
- --csi.local-path.helm-addon.default-values-template-configmap-name={{ (index .Values.hooks.csi "local-path").helmAddonStrategy.defaultValueTemplateConfigMap.name }}
- --csi.aws-ebs.helm-addon.default-values-template-configmap-name={{ (index .Values.hooks.csi "aws-ebs").helmAddonStrategy.defaultValueTemplateConfigMap.name }}
- --csi.nutanix.helm-addon.default-values-template-configmap-name={{ (index .Values.hooks.csi "nutanix").helmAddonStrategy.defaultValueTemplateConfigMap.name }}
- --csi.local-path.helm-addon.default-values-template-configmap-name={{ (index .Values.hooks.csi "local-path").helmAddonStrategy.defaultValueTemplateConfigMap.name }}
{{- range $key, $value := .Values.extraArgs }}
- --{{ $key }}={{ $value }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ helmCharts:
version: ${NUTANIX_SNAPSHOT_CSI_CHART_VERSION}
includeCRDs: true
skipTests: true
namespace: nutanix-system
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@ helmCharts:
repo: https://nutanix.github.io/helm-releases/
releaseName: nutanix-csi-storage
version: ${NUTANIX_STORAGE_CSI_CHART_VERSION}
valuesFile: helm-values.yaml
includeCRDs: true
skipTests: true
namespace: nutanix-system
2 changes: 1 addition & 1 deletion pkg/handlers/generic/lifecycle/csi/awsebs/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (a *AWSEBS) Apply(
client: a.client,
}
default:
return fmt.Errorf("strategy %s not implemented", strategy)
return fmt.Errorf("strategy %s not implemented", provider.Strategy)
}

if err := strategy.apply(ctx, cluster, a.config.DefaultsNamespace(), log); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/handlers/generic/lifecycle/csi/localpath/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (l *LocalPathProvisionerCSI) Apply(
client: l.client,
}
default:
return fmt.Errorf("strategy %s not implemented", strategy)
return fmt.Errorf("strategy %s not implemented", provider.Strategy)
}

if err := strategy.apply(ctx, cluster, l.config.DefaultsNamespace(), log); err != nil {
Expand Down
235 changes: 0 additions & 235 deletions pkg/handlers/generic/lifecycle/csi/nutanix-csi/handler.go

This file was deleted.

Loading
Loading