From 2f8079bcd9166ea40a54a1328c28165a9eeb48a3 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Mon, 31 Mar 2025 14:37:58 +0000 Subject: [PATCH 1/3] community-patchers/score-*/unprivileged.tpl Signed-off-by: Mathieu Benoit --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8600529..f6db8a9 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,8 @@ WORKLOAD_NAME = hello-world .score-compose/state.yaml: score-compose init \ - --no-sample + --no-sample \ + --patch-templates https://raw.githubusercontent.com/score-spec/community-patchers/refs/heads/main/score-compose/unprivileged.tpl compose.yaml: score.yaml .score-compose/state.yaml Makefile score-compose generate score.yaml \ @@ -42,7 +43,8 @@ compose-down: .score-k8s/state.yaml: score-k8s init \ - --no-sample + --no-sample \ + --patch-templates https://raw.githubusercontent.com/score-spec/community-patchers/refs/heads/main/score-k8s/unprivileged.tpl manifests.yaml: score.yaml .score-k8s/state.yaml Makefile score-k8s generate score.yaml \ From 33a98a8f335c796f235e536ecf5e69a52a682cd9 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Mon, 31 Mar 2025 14:39:05 +0000 Subject: [PATCH 2/3] updated to latest gateway api Signed-off-by: Mathieu Benoit --- scripts/setup-kind-cluster.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/setup-kind-cluster.sh b/scripts/setup-kind-cluster.sh index 7e9bb72..df9a472 100755 --- a/scripts/setup-kind-cluster.sh +++ b/scripts/setup-kind-cluster.sh @@ -12,8 +12,9 @@ nodes: protocol: TCP EOF +GATEWAY_API_VERSION=$(curl -sL https://api.github.com/repos/kubernetes-sigs/gateway-api/releases/latest | jq -r .tag_name) kubectl apply \ - -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.1.0/standard-install.yaml + -f https://github.com/kubernetes-sigs/gateway-api/releases/download/${GATEWAY_API_VERSION}/standard-install.yaml helm install ngf oci://ghcr.io/nginxinc/charts/nginx-gateway-fabric \ --create-namespace \ From 0a1690dc98ae2841f9abc7e2c8cf25ca91e83f39 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Mon, 31 Mar 2025 16:04:26 +0000 Subject: [PATCH 3/3] Allow shared gateway setup for httproute Signed-off-by: Mathieu Benoit --- Makefile | 1 + scripts/setup-kind-cluster.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index f6db8a9..ddfd0c1 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ compose-down: .score-k8s/state.yaml: score-k8s init \ --no-sample \ + --provisioners https://raw.githubusercontent.com/score-spec/community-provisioners/refs/heads/main/score-k8s/10-shared-gateway-httproute.provisioners.yaml \ --patch-templates https://raw.githubusercontent.com/score-spec/community-patchers/refs/heads/main/score-k8s/unprivileged.tpl manifests.yaml: score.yaml .score-k8s/state.yaml Makefile diff --git a/scripts/setup-kind-cluster.sh b/scripts/setup-kind-cluster.sh index df9a472..5df5af9 100755 --- a/scripts/setup-kind-cluster.sh +++ b/scripts/setup-kind-cluster.sh @@ -33,4 +33,7 @@ spec: - name: http port: 80 protocol: HTTP + allowedRoutes: + namespaces: + from: All EOF \ No newline at end of file