Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ostempel committed Dec 13, 2024
1 parent 3cb4dcb commit 2a03945
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/controller/csi-driver-lvm/actuator.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (
oldNamespace string = "csi-lvm"
oldProvisioner string = "metal-stack.io/csi-lvm"

pullPolicy string = "IfNotPresent"
pullPolicy corev1.PullPolicy = corev1.PullIfNotPresent
)

// NewActuator returns an actuator responsible for Extension resources.
Expand Down Expand Up @@ -301,7 +301,7 @@ func (a *actuator) controllerObjects() ([]client.Object, error) {
{
Name: "csi-attacher",
Image: csiAttacherImage.String(),
ImagePullPolicy: "pullPolicy",
ImagePullPolicy: pullPolicy,
Args: []string{"--v=5", "--csi-address=/csi/csi.sock"},
SecurityContext: &corev1.SecurityContext{
ReadOnlyRootFilesystem: pointer.Pointer(true),
Expand All @@ -314,7 +314,7 @@ func (a *actuator) controllerObjects() ([]client.Object, error) {
{
Name: "csi-provisioner",
Image: csiProvisionerImage.String(),
ImagePullPolicy: "pullPolicy",
ImagePullPolicy: pullPolicy,
Args: []string{"--v=5", "--csi-address=/csi/csi.sock", "--feature-gates=Topology=true"},
SecurityContext: &corev1.SecurityContext{
ReadOnlyRootFilesystem: pointer.Pointer(true),
Expand All @@ -327,7 +327,7 @@ func (a *actuator) controllerObjects() ([]client.Object, error) {
{
Name: "csi-resizer",
Image: csiResizerImage.String(),
ImagePullPolicy: "pullPolicy",
ImagePullPolicy: pullPolicy,
Args: []string{"--v=5", "--csi-address=/csi/csi.sock"},
SecurityContext: &corev1.SecurityContext{
ReadOnlyRootFilesystem: pointer.Pointer(true),
Expand Down Expand Up @@ -547,7 +547,7 @@ func (a *actuator) pluginObjects(csidriverlvmConfig *v1alpha1.CsiDriverLvmConfig
{
Name: "csi-node-driver-registrar",
Image: csiNodeDriverRegistrarImage.String(),
ImagePullPolicy: "pullPolicy",
ImagePullPolicy: pullPolicy,
Args: []string{"--v=5", "--csi-address=/csi/csi.sock", "--kubelet-registration-path=/var/lib/kubelet/plugins/csi-driver-lvm/csi.sock"},
SecurityContext: &corev1.SecurityContext{
ReadOnlyRootFilesystem: pointer.Pointer(false),
Expand Down Expand Up @@ -575,7 +575,7 @@ func (a *actuator) pluginObjects(csidriverlvmConfig *v1alpha1.CsiDriverLvmConfig
{
Name: "csi-driver-lvm-plugin",
Image: csiDriverLvmImage.String(),
ImagePullPolicy: "pullPolicy",
ImagePullPolicy: pullPolicy,
Args: []string{
"--drivername=lvm.csi.metal-stack.io",
"--endpoint=unix:///csi/csi.sock",
Expand Down Expand Up @@ -638,7 +638,7 @@ func (a *actuator) pluginObjects(csidriverlvmConfig *v1alpha1.CsiDriverLvmConfig
{
Name: "livenessprobe",
Image: livenessprobeImage.String(),
ImagePullPolicy: "pullPolicy",
ImagePullPolicy: pullPolicy,
Args: []string{
"--csi-address=/csi/csi.sock",
"--health-port=9898",
Expand Down

0 comments on commit 2a03945

Please sign in to comment.