From 0b846e7783ebc8b32d35d45cb3631b21586ce54b Mon Sep 17 00:00:00 2001 From: gonzalezzfelipe Date: Wed, 6 Nov 2024 12:31:33 -0300 Subject: [PATCH] fix: Remove security context --- src/custom_resource.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/custom_resource.rs b/src/custom_resource.rs index 98fc184..69765fa 100644 --- a/src/custom_resource.rs +++ b/src/custom_resource.rs @@ -2,8 +2,8 @@ use k8s_openapi::api::{ apps::v1::{Deployment, DeploymentSpec}, core::v1::{ ConfigMap, ConfigMapVolumeSource, Container, ContainerPort, EmptyDirVolumeSource, PodSpec, - PodTemplateSpec, SecretVolumeSource, SecurityContext, Service, ServicePort, ServiceSpec, - Volume, VolumeMount, + PodTemplateSpec, SecretVolumeSource, Service, ServicePort, ServiceSpec, Volume, + VolumeMount, }, networking::v1::{ HTTPIngressPath, HTTPIngressRuleValue, Ingress, IngressBackend, IngressRule, @@ -294,11 +294,6 @@ impl HydraDoomNode { "--socket".to_string(), constants.socket_path.clone(), ]), - security_context: Some(SecurityContext { - run_as_user: Some(1000), - run_as_group: Some(1000), - ..Default::default() - }), volume_mounts: Some(vec![VolumeMount { name: "ipc".to_string(), mount_path: constants.socket_dir.clone(),