Skip to content

Commit 7797cdf

Browse files
Merge pull request #256 from lpiwowar/readOnlyRootFilesystem
Run test pods with readOnlyRootFileSystem: true
2 parents 93395c4 + 046eae0 commit 7797cdf

16 files changed

+153
-52
lines changed

api/bases/test.openstack.org_ansibletests.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ spec:
146146
default: false
147147
description: |-
148148
Use with caution! This parameter specifies whether test-operator should spawn test
149-
pods with allowedPrivilegedEscalation: true and the default capabilities on
150-
top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
151-
This parameter is deemed insecure but it is needed for certain test-operator
152-
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
153-
of tobiko tests).
149+
pods with allowedPrivilegedEscalation: true, readOnlyRootFilesystem: false and the
150+
default capabilities on top of capabilities that are usually needed by the test
151+
pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is needed for
152+
certain test-operator functionalities to work properly (e.g.: extraRPMs in Tempest
153+
CR, or certain set of tobiko tests).
154154
type: boolean
155155
storageClass:
156156
default: local-storage

api/bases/test.openstack.org_horizontests.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ spec:
159159
default: false
160160
description: |-
161161
Use with caution! This parameter specifies whether test-operator should spawn test
162-
pods with allowedPrivilegedEscalation: true and the default capabilities on
163-
top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
164-
This parameter is deemed insecure but it is needed for certain test-operator
165-
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
166-
of tobiko tests).
162+
pods with allowedPrivilegedEscalation: true, readOnlyRootFilesystem: false and the
163+
default capabilities on top of capabilities that are usually needed by the test
164+
pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is needed for
165+
certain test-operator functionalities to work properly (e.g.: extraRPMs in Tempest
166+
CR, or certain set of tobiko tests).
167167
type: boolean
168168
projectName:
169169
default: horizontest

api/bases/test.openstack.org_tempests.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ spec:
153153
default: false
154154
description: |-
155155
Use with caution! This parameter specifies whether test-operator should spawn test
156-
pods with allowedPrivilegedEscalation: true and the default capabilities on
157-
top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
158-
This parameter is deemed insecure but it is needed for certain test-operator
159-
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
160-
of tobiko tests).
156+
pods with allowedPrivilegedEscalation: true, readOnlyRootFilesystem: false and the
157+
default capabilities on top of capabilities that are usually needed by the test
158+
pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is needed for
159+
certain test-operator functionalities to work properly (e.g.: extraRPMs in Tempest
160+
CR, or certain set of tobiko tests).
161161
type: boolean
162162
storageClass:
163163
default: local-storage

api/bases/test.openstack.org_tobikoes.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ spec:
143143
default: false
144144
description: |-
145145
Use with caution! This parameter specifies whether test-operator should spawn test
146-
pods with allowedPrivilegedEscalation: true and the default capabilities on
147-
top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
148-
This parameter is deemed insecure but it is needed for certain test-operator
149-
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
150-
of tobiko tests).
146+
pods with allowedPrivilegedEscalation: true, readOnlyRootFilesystem: false and the
147+
default capabilities on top of capabilities that are usually needed by the test
148+
pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is needed for
149+
certain test-operator functionalities to work properly (e.g.: extraRPMs in Tempest
150+
CR, or certain set of tobiko tests).
151151
type: boolean
152152
publicKey:
153153
default: ""

api/v1beta1/common.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ type CommonOptions struct {
4646
// +kubebuilder:default=false
4747
// +optional
4848
// Use with caution! This parameter specifies whether test-operator should spawn test
49-
// pods with allowedPrivilegedEscalation: true and the default capabilities on
50-
// top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
51-
// This parameter is deemed insecure but it is needed for certain test-operator
52-
// functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
53-
// of tobiko tests).
49+
// pods with allowedPrivilegedEscalation: true, readOnlyRootFilesystem: false and the
50+
// default capabilities on top of capabilities that are usually needed by the test
51+
// pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is needed for
52+
// certain test-operator functionalities to work properly (e.g.: extraRPMs in Tempest
53+
// CR, or certain set of tobiko tests).
5454
Privileged bool `json:"privileged"`
5555

5656
// +operator-sdk:csv:customresourcedefinitions:type=spec

api/v1beta1/common_webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const (
1212
const (
1313
// WarnPrivilegedModeOn
1414
WarnPrivilegedModeOn = "%s.Spec.Privileged is set to true. This means that test pods " +
15-
"are spawned with allowPrivilegedEscalation: true and default " +
16-
"capabilities on top of those required by the test operator " +
15+
"are spawned with allowPrivilegedEscalation: true, readOnlyRootFilesystem: false " +
16+
"and default capabilities on top of those required by the test operator " +
1717
"(NET_ADMIN, NET_RAW)."
1818

1919
// WarnPrivilegedModeOff

config/crd/bases/test.openstack.org_ansibletests.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ spec:
146146
default: false
147147
description: |-
148148
Use with caution! This parameter specifies whether test-operator should spawn test
149-
pods with allowedPrivilegedEscalation: true and the default capabilities on
150-
top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
151-
This parameter is deemed insecure but it is needed for certain test-operator
152-
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
153-
of tobiko tests).
149+
pods with allowedPrivilegedEscalation: true, readOnlyRootFilesystem: false and the
150+
default capabilities on top of capabilities that are usually needed by the test
151+
pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is needed for
152+
certain test-operator functionalities to work properly (e.g.: extraRPMs in Tempest
153+
CR, or certain set of tobiko tests).
154154
type: boolean
155155
storageClass:
156156
default: local-storage

config/crd/bases/test.openstack.org_horizontests.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ spec:
159159
default: false
160160
description: |-
161161
Use with caution! This parameter specifies whether test-operator should spawn test
162-
pods with allowedPrivilegedEscalation: true and the default capabilities on
163-
top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
164-
This parameter is deemed insecure but it is needed for certain test-operator
165-
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
166-
of tobiko tests).
162+
pods with allowedPrivilegedEscalation: true, readOnlyRootFilesystem: false and the
163+
default capabilities on top of capabilities that are usually needed by the test
164+
pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is needed for
165+
certain test-operator functionalities to work properly (e.g.: extraRPMs in Tempest
166+
CR, or certain set of tobiko tests).
167167
type: boolean
168168
projectName:
169169
default: horizontest

config/crd/bases/test.openstack.org_tempests.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ spec:
153153
default: false
154154
description: |-
155155
Use with caution! This parameter specifies whether test-operator should spawn test
156-
pods with allowedPrivilegedEscalation: true and the default capabilities on
157-
top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
158-
This parameter is deemed insecure but it is needed for certain test-operator
159-
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
160-
of tobiko tests).
156+
pods with allowedPrivilegedEscalation: true, readOnlyRootFilesystem: false and the
157+
default capabilities on top of capabilities that are usually needed by the test
158+
pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is needed for
159+
certain test-operator functionalities to work properly (e.g.: extraRPMs in Tempest
160+
CR, or certain set of tobiko tests).
161161
type: boolean
162162
storageClass:
163163
default: local-storage

config/crd/bases/test.openstack.org_tobikoes.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ spec:
143143
default: false
144144
description: |-
145145
Use with caution! This parameter specifies whether test-operator should spawn test
146-
pods with allowedPrivilegedEscalation: true and the default capabilities on
147-
top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
148-
This parameter is deemed insecure but it is needed for certain test-operator
149-
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
150-
of tobiko tests).
146+
pods with allowedPrivilegedEscalation: true, readOnlyRootFilesystem: false and the
147+
default capabilities on top of capabilities that are usually needed by the test
148+
pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is needed for
149+
certain test-operator functionalities to work properly (e.g.: extraRPMs in Tempest
150+
CR, or certain set of tobiko tests).
151151
type: boolean
152152
publicKey:
153153
default: ""

0 commit comments

Comments
 (0)