File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ RUN go env
17
17
RUN CGO_ENABLED=0 go build -buildvcs=false -o /output/chaos-operator -v ./main.go
18
18
19
19
# Packaging stage
20
- # Image source: https://github.com/litmuschaos/test-tools/blob/master/custom/hardened-alpine/infra/Dockerfile
21
- # The base image is non-root (have litmus user) with default litmus directory.
22
- FROM litmuschaos/infra-alpine
20
+ FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4
23
21
24
22
LABEL maintainer="LitmusChaos"
25
23
26
24
ENV OPERATOR=/usr/local/bin/chaos-operator
25
+
27
26
COPY --from=builder /output/chaos-operator ${OPERATOR}
27
+ RUN chown 65534:0 ${OPERATOR} && chmod 755 ${OPERATOR}
28
+
29
+ USER 65534
28
30
29
31
ENTRYPOINT ["/usr/local/bin/chaos-operator" ]
Original file line number Diff line number Diff line change @@ -1621,7 +1621,7 @@ func TestReconcileForCreationAndRunning(t *testing.T) {
1621
1621
1622
1622
func CreateFakeClient (t * testing.T ) * ChaosEngineReconciler {
1623
1623
1624
- fakeClient := litmusFakeClientset .NewFakeClient ()
1624
+ fakeClient := litmusFakeClientset .NewClientBuilder (). WithRuntimeObjects (). Build ()
1625
1625
if fakeClient == nil {
1626
1626
fmt .Println ("litmusClient is not created" )
1627
1627
}
Original file line number Diff line number Diff line change @@ -6,11 +6,6 @@ import (
6
6
corev1 "k8s.io/api/core/v1"
7
7
)
8
8
9
- var (
10
- // hostpathTypeFile represents the hostpath type
11
- hostpathTypeFile = corev1 .HostPathFile
12
- )
13
-
14
9
// CreateVolumeBuilders build Volume needed in execution of experiments
15
10
func CreateVolumeBuilders (configMaps []v1alpha1.ConfigMap , secrets []v1alpha1.Secret ) []* volume.Builder {
16
11
volumeBuilderList := []* volume.Builder {}
You can’t perform that action at this time.
0 commit comments