Skip to content

Commit 847fe6f

Browse files
committed
Have monitoring exporter use configured container security
1 parent ef6e1bc commit 847fe6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator/src/main/java/oracle/kubernetes/operator/helpers/PodStepContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ private V1Container createMonitoringExporterContainer() {
16681668
.image(getDomain().getMonitoringExporterImage())
16691669
.imagePullPolicy(getDomain().getMonitoringExporterImagePullPolicy())
16701670
.resources(getDomain().getMonitoringExporterResources())
1671-
.securityContext(PodSecurityHelper.getDefaultContainerSecurityContext())
1671+
.securityContext(getServerSpec().getContainerSecurityContext())
16721672
.addEnvItem(new V1EnvVar().name("JAVA_OPTS").value(createJavaOptions()))
16731673
.addPortsItem(new V1ContainerPort()
16741674
.name("metrics").protocol("TCP").containerPort(getPort()));

0 commit comments

Comments
 (0)