Skip to content

Commit

Permalink
Update csi_syncer.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nitishkumar4 committed Feb 8, 2022
1 parent 32afd9c commit dec5301
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions operator/controllers/syncer/csi_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,6 @@ func (s *csiControllerSyncer) ensureSidecarContainersSpec() []corev1.Container {
"--timeout=2m",
"--leader-election",
"--http-endpoint=:8080",
//"--leader-election-lease-duration=15s",
//"--leader-election-renew-deadline=10s",
//"--leader-election-retry-period=5s",
},
)
attacher.Ports = s.driver.GetAttacherContainerPort()
Expand All @@ -225,9 +222,6 @@ func (s *csiControllerSyncer) ensureSidecarContainersSpec() []corev1.Container {
"--v=5",
"--leader-election",
"--http-endpoint=:8082",
//"--leader-election-lease-duration=15s",
//"--leader-election-renew-deadline=10s",
//"--leader-election-retry-period=5s",
},
)
snapshotter.Ports = s.driver.GetSnapshotterContainerPort()
Expand All @@ -244,9 +238,6 @@ func (s *csiControllerSyncer) ensureSidecarContainersSpec() []corev1.Container {
"--workers=10",
"--leader-election",
"--http-endpoint=:8083",
//"--leader-election-lease-duration",
//"--leader-election-renew-deadline",
//"--leader-election-retry-period",
},
)
resizer.Ports = s.driver.GetResizerContainerPort()
Expand All @@ -265,29 +256,12 @@ func (s *csiControllerSyncer) ensureSidecarContainersSpec() []corev1.Container {
"--default-fstype=gpfs",
"--leader-election",
"--http-endpoint=:8081",
//"--leader-election-lease-duration=15s",
//"--leader-election-renew-deadline=10s",
//"--leader-election-retry-period=5s",
},
)
provisioner.Ports = s.driver.GetProvisionerContainerPort()
provisioner.LivenessProbe = s.driver.GetLivenessProbe()
provisioner.ImagePullPolicy = config.CSIProvisionerImagePullPolicy

/*
// liveness probe sidecar
livenessProbe := s.ensureContainer(nodeLivenessProbeContainerName,
s.getSidecarImage(config.LivenessProbe),
[]string{
"--health-port=" + "9821232",
"--csi-address=$(ADDRESS)",
"--v=2",
"--probe-timeout=3s",
},
)
livenessProbe.ImagePullPolicy = config.LivenessProbeImagePullPolicy
*/

return []corev1.Container{
attacher,
snapshotter,
Expand Down

0 comments on commit dec5301

Please sign in to comment.