-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path024-cdi-controller-change-bash-utils-to-binary.patch
More file actions
36 lines (36 loc) · 1.6 KB
/
024-cdi-controller-change-bash-utils-to-binary.patch
File metadata and controls
36 lines (36 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/pkg/controller/clone/prep-claim.go b/pkg/controller/clone/prep-claim.go
index 68a249b77..3c7e96959 100644
--- a/pkg/controller/clone/prep-claim.go
+++ b/pkg/controller/clone/prep-claim.go
@@ -162,8 +162,7 @@ func (p *PrepClaimPhase) createPod(ctx context.Context, name string, pvc *corev1
Name: "dummy",
Image: p.Image,
ImagePullPolicy: p.PullPolicy,
- Command: []string{"/bin/bash"},
- Args: []string{"-c", "echo", "'hello cdi'"},
+ Command: []string{"/bin/hello"},
},
},
ImagePullSecrets: imagePullSecrets,
diff --git a/pkg/operator/resources/namespaced/controller.go b/pkg/operator/resources/namespaced/controller.go
index 665a4517b..36054391c 100644
--- a/pkg/operator/resources/namespaced/controller.go
+++ b/pkg/operator/resources/namespaced/controller.go
@@ -190,7 +190,7 @@ func createControllerDeployment(controllerImage, importerImage, clonerImage, ovi
},
}
labels := util.MergeLabels(deployment.Spec.Template.GetLabels(), map[string]string{common.PrometheusLabelKey: common.PrometheusLabelValue})
- //Add label for pod affinity
+ // Add label for pod affinity
deployment.SetLabels(labels)
deployment.Spec.Template.SetLabels(labels)
container.Env = []corev1.EnvVar{
@@ -240,7 +240,7 @@ func createControllerDeployment(controllerImage, importerImage, clonerImage, ovi
container.ReadinessProbe = &corev1.Probe{
ProbeHandler: corev1.ProbeHandler{
Exec: &corev1.ExecAction{
- Command: []string{"cat", "/tmp/ready"},
+ Command: []string{"printFile", "/tmp/ready"},
},
},
InitialDelaySeconds: 2,