Skip to content

Commit a8845f1

Browse files
Use the same CSI snapshot webhook name for Nutanix (#3764)
Signed-off-by: Artiom Diomin <[email protected]> Co-authored-by: Artiom Diomin <[email protected]>
1 parent 29f0bc8 commit a8845f1

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

pkg/addons/applier.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,8 @@ func csiWebhookCerts(s *state.State, data *templateData, csiMigration bool, kube
266266
webhookNamespace := resources.GenericCSIWebhookNamespace
267267
certNamePrefix := webhookCertsCSI
268268

269-
switch {
270269
// Certs for vsphere-csi-webhook (deployed only if CSIMigration is enabled)
271-
case s.Cluster.CloudProvider.Vsphere != nil:
270+
if s.Cluster.CloudProvider.Vsphere != nil {
272271
if err := webhookCerts(data.Certificates,
273272
webhookCertsCSI,
274273
webhookName,
@@ -287,8 +286,6 @@ func csiWebhookCerts(s *state.State, data *templateData, csiMigration bool, kube
287286
if !csiMigration {
288287
return nil
289288
}
290-
case s.Cluster.CloudProvider.Nutanix != nil:
291-
webhookName = resources.NutanixCSIWebhookName
292289
}
293290

294291
return webhookCerts(

pkg/templates/resources/resources.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ const (
105105
VsphereCSINamespace = "vmware-system-csi"
106106
VsphereCSIWebhookName = "vsphere-webhook-svc"
107107
VsphereCSIWebhookNamespace = "vmware-system-csi"
108-
NutanixCSIWebhookName = "csi-snapshot-webhook"
109108
GenericCSIWebhookName = "snapshot-validation-service"
110109
GenericCSIWebhookNamespace = metav1.NamespaceSystem
111110
)

0 commit comments

Comments
 (0)