Skip to content

Commit 64074ed

Browse files
karatkeptolusha
andauthored
feat(security): Add securityContext and volumeMounts to the container configuration, add volumes to the deployment configuration (#2113)
* feat(security): Add securityContext and volumeMounts to the container configuration, add volumes to the deployment configuration Signed-off-by: Anatolii Bazko <abazko@redhat.com> Signed-off-by: Piotr Karatkevich <Piotr_Karatkevich@epam.com> Co-authored-by: Anatolii Bazko <abazko@redhat.com>
1 parent 2c0259d commit 64074ed

12 files changed

Lines changed: 89250 additions & 8093 deletions

api/v2/checluster_types.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,10 @@ type Deployment struct {
763763
// The pod tolerations of the component pod limit where the pod can run.
764764
// +optional
765765
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
766+
// List of volumes that can be mounted by containers belonging to the pod.
767+
// Entries are merged by volume name (same semantics as container volumeMounts); unknown names are appended, matching names replace the default volume definition.
768+
// +optional
769+
Volumes []corev1.Volume `json:"volumes,omitempty"`
766770
}
767771

768772
// Container custom settings.
@@ -783,6 +787,12 @@ type Container struct {
783787
// List of environment variables to set in the container.
784788
// +optional
785789
Env []corev1.EnvVar `json:"env,omitempty"`
790+
// Security options the container should run with. When set, fields are merged into the container security context (same semantics as resources).
791+
// +optional
792+
SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"`
793+
// Pod volumes to mount into the container's filesystem. Entries are merged by volume mount name (same semantics as env).
794+
// +optional
795+
VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
786796
}
787797

788798
// Describes the compute resource requirements.

api/v2/zz_generated.deepcopy.go

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle/next/eclipse-che/manifests/che-operator.clusterserviceversion.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ metadata:
8686
categories: Developer Tools
8787
certified: "false"
8888
containerImage: quay.io/eclipse/che-operator:next
89-
createdAt: "2026-04-02T11:48:45Z"
89+
createdAt: "2026-04-07T15:15:43Z"
9090
description: A Kube-native development solution that delivers portable and collaborative
9191
developer workspaces.
9292
features.operators.openshift.io/cnf: "false"
@@ -108,7 +108,7 @@ metadata:
108108
operatorframework.io/arch.amd64: supported
109109
operatorframework.io/arch.arm64: supported
110110
operatorframework.io/os.linux: supported
111-
name: eclipse-che.v7.117.0-958.next
111+
name: eclipse-che.v7.117.0-970.next
112112
namespace: placeholder
113113
spec:
114114
apiservicedefinitions: {}
@@ -1144,7 +1144,7 @@ spec:
11441144
name: gateway-authorization-sidecar-k8s
11451145
- image: quay.io/che-incubator/header-rewrite-proxy:latest
11461146
name: gateway-header-sidecar
1147-
version: 7.117.0-958.next
1147+
version: 7.117.0-970.next
11481148
webhookdefinitions:
11491149
- admissionReviewVersions:
11501150
- v1

bundle/next/eclipse-che/manifests/org.eclipse.che_checlusters.yaml

Lines changed: 12750 additions & 1157 deletions
Large diffs are not rendered by default.

config/crd/bases/org.eclipse.che_checlusters.yaml

Lines changed: 12704 additions & 1155 deletions
Large diffs are not rendered by default.

deploy/deployment/kubernetes/combined.yaml

Lines changed: 12704 additions & 1155 deletions
Large diffs are not rendered by default.

deploy/deployment/kubernetes/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml

Lines changed: 12704 additions & 1155 deletions
Large diffs are not rendered by default.

deploy/deployment/openshift/combined.yaml

Lines changed: 12704 additions & 1155 deletions
Large diffs are not rendered by default.

deploy/deployment/openshift/objects/checlusters.org.eclipse.che.CustomResourceDefinition.yaml

Lines changed: 12704 additions & 1155 deletions
Large diffs are not rendered by default.

helmcharts/next/crds/checlusters.org.eclipse.che.CustomResourceDefinition.yaml

Lines changed: 12704 additions & 1155 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)