Skip to content

Commit 8d68e75

Browse files
authored
chore: [NPM] Updated NPM to Not Share Host's UTS Namespace + Image/Configmap Alignment with Prod (#2589)
* Added a security context for allowPrivilegeEscalation and readOnlyRootFilesystem * Update npm linux to not share the host's UTS namespace and tested locally * Updated image and configmap of npm to match prod/managed * kept EnablePprof on for debugging * Updating k8s version for kind for cyclonus tests * test * test * updated cluster name * Revert "updated cluster name" This reverts commit 7715c91. * update name * Updated k8s version * updated k8s version * changed k8s version to version of local cluster * updated kind node version for control plane * version update * updated kind version * updated worker images for kind
1 parent b26ca5e commit 8d68e75

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/cyclonus-netpol-test.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ jobs:
3535
go-version: '^1.21'
3636

3737
- name: Setup Kind
38-
uses: engineerd/setup-kind@v0.5.0
38+
uses: helm/kind-action@v1
3939
with:
40-
version: "v0.11.1"
40+
version: "v0.22.0"
41+
kubectl_version: "v1.27.7"
4142
config: ./test/kind/kind.yaml
42-
name: npm-kind
43+
cluster_name: npm-kind
4344

4445
- name: Check Kind
4546
run: |

npm/azure-npm.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ spec:
7979
operator: Exists
8080
containers:
8181
- name: azure-npm
82-
image: mcr.microsoft.com/containernetworking/azure-npm:v1.4.29
82+
image: mcr.microsoft.com/containernetworking/azure-npm:v1.4.45.3
8383
resources:
8484
limits:
8585
cpu: 250m
@@ -106,6 +106,7 @@ spec:
106106
- name: azure-npm-config
107107
mountPath: /etc/azure-npm
108108
hostNetwork: true
109+
hostUsers: false
109110
nodeSelector:
110111
kubernetes.io/os: linux
111112
volumes:
@@ -162,7 +163,6 @@ data:
162163
"EnableHTTPDebugAPI": true,
163164
"EnableV2NPM": true,
164165
"PlaceAzureChainFirst": false,
165-
"ApplyIPSetsOnNeed": false,
166166
"ApplyInBackground": true,
167167
"NetPolInBackground": true
168168
}

test/kind/kind.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ kind: Cluster
22
apiVersion: kind.x-k8s.io/v1alpha4
33
nodes:
44
- role: control-plane
5-
image: kindest/node:v1.19.11
5+
image: kindest/node:v1.29.2@sha256:51a1434a5397193442f0be2a297b488b6c919ce8a3931be0ce822606ea5ca245
66
- role: worker
7-
image: kindest/node:v1.19.11
7+
image: kindest/node:v1.29.2@sha256:51a1434a5397193442f0be2a297b488b6c919ce8a3931be0ce822606ea5ca245
88
- role: worker
9-
image: kindest/node:v1.19.11
9+
image: kindest/node:v1.29.2@sha256:51a1434a5397193442f0be2a297b488b6c919ce8a3931be0ce822606ea5ca245
1010
networking:
1111
ipFamily: ipv4
1212
podSubnet: "10.10.0.0/16"

0 commit comments

Comments
 (0)