From e607bc59bde98fe0c326219d0dd49dd863a63fb0 Mon Sep 17 00:00:00 2001 From: Yi Chen Date: Wed, 13 Nov 2024 13:54:54 -0800 Subject: [PATCH] add shareProcessNamespace to pod spec --- src/pod.ts | 11 +++ test/__snapshots__/container.test.ts.snap | 5 ++ test/__snapshots__/cron-job.test.ts.snap | 3 + test/__snapshots__/daemon-set.test.ts.snap | 3 + test/__snapshots__/deployment.test.ts.snap | 23 ++++++ .../horizontal-pod-autoscaler.test.ts.snap | 24 +++++++ test/__snapshots__/job.test.ts.snap | 1 + .../__snapshots__/network-policy.test.ts.snap | 26 +++++++ test/__snapshots__/pod.test.ts.snap | 70 +++++++++++++++++++ test/__snapshots__/service.test.ts.snap | 1 + test/__snapshots__/statefulset.test.ts.snap | 2 + 11 files changed, 169 insertions(+) diff --git a/src/pod.ts b/src/pod.ts index 3ac602bca..14e4dfd23 100644 --- a/src/pod.ts +++ b/src/pod.ts @@ -19,6 +19,7 @@ export abstract class AbstractPod extends base.Resource implements IPodSelector, public readonly dns: PodDns; public readonly dockerRegistryAuth?: secret.ISecret; public readonly automountServiceAccountToken: boolean; + public readonly shareProcessNamespace: boolean; public readonly hostNetwork?: boolean; public readonly terminationGracePeriod?: Duration; @@ -40,6 +41,7 @@ export abstract class AbstractPod extends base.Resource implements IPodSelector, this.dns = new PodDns(props.dns); this.dockerRegistryAuth = props.dockerRegistryAuth; this.automountServiceAccountToken = props.automountServiceAccountToken ?? false; + this.shareProcessNamespace = props.shareProcessNamespace ?? false; this.isolate = props.isolate ?? false; this.hostNetwork = props.hostNetwork ?? false; this.terminationGracePeriod = props.terminationGracePeriod ?? Duration.seconds(30); @@ -249,6 +251,7 @@ export abstract class AbstractPod extends base.Resource implements IPodSelector, setHostnameAsFqdn: dns.hostnameAsFQDN, imagePullSecrets: this.dockerRegistryAuth ? [{ name: this.dockerRegistryAuth.name }] : undefined, automountServiceAccountToken: this.automountServiceAccountToken, + shareProcessNamespace: this.shareProcessNamespace, hostNetwork: this.hostNetwork, terminationGracePeriodSeconds: this.terminationGracePeriod?.toSeconds(), }; @@ -437,6 +440,14 @@ export interface AbstractPodProps extends base.ResourceProps { */ readonly automountServiceAccountToken?: boolean; + /** + * When process namespace sharing is enabled, processes in a container are visible to all other containers in the same pod. + * + * @default false + * @see https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/ + */ + readonly shareProcessNamespace?: boolean; + /** * Isolates the pod. This will prevent any ingress or egress connections to / from this pod. * You can however allow explicit connections post instantiation by using the `.connections` property. diff --git a/test/__snapshots__/container.test.ts.snap b/test/__snapshots__/container.test.ts.snap index c94d50442..ee03dfa19 100644 --- a/test/__snapshots__/container.test.ts.snap +++ b/test/__snapshots__/container.test.ts.snap @@ -68,6 +68,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -129,6 +130,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -179,6 +181,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -250,6 +253,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -306,6 +310,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, "volumes": Array [ Object { diff --git a/test/__snapshots__/cron-job.test.ts.snap b/test/__snapshots__/cron-job.test.ts.snap index e8f2501a1..309c040ff 100644 --- a/test/__snapshots__/cron-job.test.ts.snap +++ b/test/__snapshots__/cron-job.test.ts.snap @@ -52,6 +52,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -138,6 +139,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -205,6 +207,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, diff --git a/test/__snapshots__/daemon-set.test.ts.snap b/test/__snapshots__/daemon-set.test.ts.snap index 3b07d8a59..3ab34b83e 100644 --- a/test/__snapshots__/daemon-set.test.ts.snap +++ b/test/__snapshots__/daemon-set.test.ts.snap @@ -54,6 +54,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -134,6 +135,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -196,6 +198,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, diff --git a/test/__snapshots__/deployment.test.ts.snap b/test/__snapshots__/deployment.test.ts.snap index 4a656e0c1..8979adee1 100644 --- a/test/__snapshots__/deployment.test.ts.snap +++ b/test/__snapshots__/deployment.test.ts.snap @@ -74,6 +74,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -194,6 +195,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -293,6 +295,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -402,6 +405,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -495,6 +499,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -586,6 +591,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -676,6 +682,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -747,6 +754,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -830,6 +838,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -901,6 +910,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -981,6 +991,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1074,6 +1085,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1164,6 +1176,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1235,6 +1248,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1318,6 +1332,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1389,6 +1404,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1469,6 +1485,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1562,6 +1579,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1652,6 +1670,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1740,6 +1759,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1825,6 +1845,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1877,6 +1898,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, "tolerations": Array [ Object { @@ -2000,6 +2022,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, diff --git a/test/__snapshots__/horizontal-pod-autoscaler.test.ts.snap b/test/__snapshots__/horizontal-pod-autoscaler.test.ts.snap index c4a24c104..5381f2a1b 100644 --- a/test/__snapshots__/horizontal-pod-autoscaler.test.ts.snap +++ b/test/__snapshots__/horizontal-pod-autoscaler.test.ts.snap @@ -62,6 +62,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -177,6 +178,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -305,6 +307,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -433,6 +436,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -561,6 +565,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -688,6 +693,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -815,6 +821,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -942,6 +949,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1069,6 +1077,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1196,6 +1205,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1323,6 +1333,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1450,6 +1461,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1578,6 +1590,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1710,6 +1723,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1844,6 +1858,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2012,6 +2027,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2146,6 +2162,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2266,6 +2283,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2394,6 +2412,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2509,6 +2528,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2633,6 +2653,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2754,6 +2775,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2869,6 +2891,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2990,6 +3013,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, "volumes": Array [ Object { diff --git a/test/__snapshots__/job.test.ts.snap b/test/__snapshots__/job.test.ts.snap index 5aca1007e..106074f82 100644 --- a/test/__snapshots__/job.test.ts.snap +++ b/test/__snapshots__/job.test.ts.snap @@ -48,6 +48,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, diff --git a/test/__snapshots__/network-policy.test.ts.snap b/test/__snapshots__/network-policy.test.ts.snap index 514e47f90..470cf8bdd 100644 --- a/test/__snapshots__/network-policy.test.ts.snap +++ b/test/__snapshots__/network-policy.test.ts.snap @@ -136,6 +136,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -181,6 +182,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -267,6 +269,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -331,6 +334,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -419,6 +423,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -502,6 +507,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -584,6 +590,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -671,6 +678,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -766,6 +774,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -857,6 +866,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -962,6 +972,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1048,6 +1059,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1135,6 +1147,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1180,6 +1193,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1266,6 +1280,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1330,6 +1345,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1418,6 +1434,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1501,6 +1518,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1583,6 +1601,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1670,6 +1689,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1765,6 +1785,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1856,6 +1877,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1961,6 +1983,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2047,6 +2070,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2134,6 +2158,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2217,6 +2242,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, diff --git a/test/__snapshots__/pod.test.ts.snap b/test/__snapshots__/pod.test.ts.snap index 137d7e68c..3b1736250 100644 --- a/test/__snapshots__/pod.test.ts.snap +++ b/test/__snapshots__/pod.test.ts.snap @@ -44,6 +44,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -99,6 +100,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -173,6 +175,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -291,6 +294,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -341,6 +345,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -417,6 +422,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -467,6 +473,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -543,6 +550,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -593,6 +601,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -721,6 +730,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -771,6 +781,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -847,6 +858,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -897,6 +909,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -973,6 +986,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1023,6 +1037,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1127,6 +1142,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1206,6 +1222,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1324,6 +1341,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1431,6 +1449,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1481,6 +1500,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1607,6 +1627,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1659,6 +1680,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1828,6 +1850,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1873,6 +1896,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -1923,6 +1947,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2034,6 +2059,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2154,6 +2180,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2204,6 +2231,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2366,6 +2394,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2478,6 +2507,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2582,6 +2612,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2661,6 +2692,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2779,6 +2811,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2896,6 +2929,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -2946,6 +2980,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -3072,6 +3107,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -3124,6 +3160,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -3293,6 +3330,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -3338,6 +3376,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -3388,6 +3427,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -3499,6 +3539,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -3619,6 +3660,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -3669,6 +3711,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -3831,6 +3874,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -3943,6 +3987,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -4011,6 +4056,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -4061,6 +4107,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -4155,6 +4202,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -4257,6 +4305,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -4351,6 +4400,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -4440,6 +4490,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -4490,6 +4541,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -4598,6 +4650,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -4760,6 +4813,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -4811,6 +4865,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -4881,6 +4936,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -4950,6 +5006,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5000,6 +5057,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5062,6 +5120,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5112,6 +5171,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5171,6 +5231,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5238,6 +5299,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5303,6 +5365,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5353,6 +5416,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5415,6 +5479,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5465,6 +5530,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5524,6 +5590,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5591,6 +5658,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5663,6 +5731,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -5713,6 +5782,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, "tolerations": Array [ Object { diff --git a/test/__snapshots__/service.test.ts.snap b/test/__snapshots__/service.test.ts.snap index 51c9d49f0..d27cc7bd5 100644 --- a/test/__snapshots__/service.test.ts.snap +++ b/test/__snapshots__/service.test.ts.snap @@ -95,6 +95,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, diff --git a/test/__snapshots__/statefulset.test.ts.snap b/test/__snapshots__/statefulset.test.ts.snap index 86d6f7b3a..92e3117c7 100644 --- a/test/__snapshots__/statefulset.test.ts.snap +++ b/test/__snapshots__/statefulset.test.ts.snap @@ -76,6 +76,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, }, @@ -197,6 +198,7 @@ Array [ "runAsNonRoot": true, }, "setHostnameAsFQDN": false, + "shareProcessNamespace": false, "terminationGracePeriodSeconds": 30, }, },