Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
fix: Nutanix CSI HelmChartProxy name and namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin committed Apr 9, 2024
1 parent 9b92854 commit 45366d3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/handlers/generic/lifecycle/csi/nutanix-csi/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import (
)

const (
defaultStorageHelmReleaseNameTemplate = "nutanix-csi-storage-%s"
defaultStorageHelmReleaseNamespace = "ntnx-system"
defaultStorageHelmReleaseName = "nutanix-csi-storage"
defaultStorageHelmReleaseNamespace = "ntnx-system"

defaultSnapshotHelmReleaseNameTemplate = "nutanix-csi-snapshot-%s"
defaultSnapshotHelmReleaseNamespace = "ntnx-system"
defaultSnapshotHelmReleaseName = "nutanix-csi-snapshot"
defaultSnapshotHelmReleaseNamespace = "ntnx-system"

//nolint:gosec // Does not contain hard coded credentials.
defaultCredentialsSecretName = "nutanix-csi-credentials"
Expand Down Expand Up @@ -168,8 +168,8 @@ func (n *NutanixCSI) handleHelmAddonApply(
ClusterSelector: metav1.LabelSelector{
MatchLabels: map[string]string{clusterv1.ClusterNameLabel: req.Cluster.Name},
},
ReleaseNamespace: req.Cluster.Namespace,
ReleaseName: fmt.Sprintf(defaultStorageHelmReleaseNameTemplate, req.Cluster.Name),
ReleaseNamespace: defaultStorageHelmReleaseNamespace,
ReleaseName: defaultStorageHelmReleaseName,
Version: helmChart.Version,
ValuesTemplate: values,
},
Expand Down Expand Up @@ -206,8 +206,8 @@ func (n *NutanixCSI) handleHelmAddonApply(
ClusterSelector: metav1.LabelSelector{
MatchLabels: map[string]string{clusterv1.ClusterNameLabel: req.Cluster.Name},
},
ReleaseNamespace: req.Cluster.Namespace,
ReleaseName: fmt.Sprintf(defaultSnapshotHelmReleaseNameTemplate, req.Cluster.Name),
ReleaseNamespace: defaultSnapshotHelmReleaseNamespace,
ReleaseName: defaultSnapshotHelmReleaseName,
Version: snapshotHelmChart.Version,
},
}
Expand Down

0 comments on commit 45366d3

Please sign in to comment.