Skip to content

Commit db5024e

Browse files
authored
Merge pull request IBM#52 from IBM/ashima
remove seccomp
2 parents 6a35d4b + 09dd939 commit db5024e

File tree

5 files changed

+9
-20
lines changed

5 files changed

+9
-20
lines changed

config/crd/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resources:
66
- bases/objectdriver.csi.ibm.com_recoverstalevolumes.yaml
77
#+kubebuilder:scaffold:crdkustomizeresource
88

9-
patchesStrategicMerge:
9+
patches:
1010
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
1111
# patches here are for enabling the conversion webhook for each CRD
1212
#- patches/webhook_in_ibmobjectcsis.yaml

config/default/kustomization.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ namespace: ibm-object-csi-operator
88
# field above.
99
namePrefix: ibm-object-csi-operator-
1010

11-
# Labels to add to all resources and selectors.
12-
#commonLabels:
13-
# someName: someValue
14-
15-
bases:
11+
resources:
1612
- ../crd
1713
- ../rbac
1814
- ../manager
@@ -24,11 +20,11 @@ bases:
2420
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
2521
#- ../prometheus
2622

27-
patchesStrategicMerge:
23+
patches:
2824
# Protect the /metrics endpoint by putting it behind auth.
2925
# If you want your controller-manager to expose the /metrics
3026
# endpoint w/o any authn/z, please comment the following line.
31-
- manager_auth_proxy_patch.yaml
27+
- path: manager_auth_proxy_patch.yaml
3228

3329

3430

config/samples/csi_v1alpha1_ibmobjectcsi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ spec:
1212
# and csi-provisioner, csi-attacher, csi-snapshotter and livenessprobe sidecars.
1313
controller:
1414
repository: icr.io/ibm/ibm-object-csi-driver
15-
tag: "v0.1.8"
15+
tag: "v0.1.14"
1616
imagePullPolicy: IfNotPresent
1717
resources:
1818
limits:
@@ -55,7 +55,7 @@ spec:
5555
# and csi-node-driver-registrar and livenessprobe sidecars.
5656
node:
5757
repository: icr.io/ibm/ibm-object-csi-driver
58-
tag: "v0.1.8"
58+
tag: "v0.1.14"
5959
imagePullPolicy: Always
6060

6161
sidecars:

controllers/syncer/csi_controller.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,12 @@ func (s *csiControllerSyncer) ensureContainersSpec() []corev1.Container {
160160
func (s *csiControllerSyncer) ensureContainer(name, image string, args []string) corev1.Container {
161161
sc := &corev1.SecurityContext{
162162
AllowPrivilegeEscalation: util.False(),
163-
SeccompProfile: &corev1.SeccompProfile{
164-
Type: corev1.SeccompProfileTypeRuntimeDefault,
165-
},
166163
}
167164
fillSecurityContextCapabilities(sc)
168165
return corev1.Container{
169-
Name: name,
170-
Image: image,
171-
Args: args,
172-
//EnvFrom: s.getEnvSourcesFor(name),
166+
Name: name,
167+
Image: image,
168+
Args: args,
173169
Env: s.getEnvFor(name),
174170
VolumeMounts: s.getVolumeMountsFor(name),
175171
SecurityContext: sc,

controllers/syncer/csi_node.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,6 @@ func (s *csiNodeSyncer) ensureContainersSpec() []corev1.Container {
157157
registrar.SecurityContext = &corev1.SecurityContext{RunAsNonRoot: util.False(),
158158
RunAsUser: func(uid int64) *int64 { return &uid }(0),
159159
Privileged: util.False(),
160-
SeccompProfile: &corev1.SeccompProfile{
161-
Type: corev1.SeccompProfileTypeRuntimeDefault,
162-
},
163160
}
164161
fillSecurityContextCapabilities(registrar.SecurityContext)
165162
registrar.ImagePullPolicy = s.getCSINodeDriverRegistrarPullPolicy()

0 commit comments

Comments
 (0)