From 64fc93b049499aebb97c8d5c76df0f6f95a5be18 Mon Sep 17 00:00:00 2001 From: Guzman <12824264+guzalv@users.noreply.github.com> Date: Mon, 10 Feb 2025 21:54:50 +0100 Subject: [PATCH] sample-app: Add serviceName to postgresql statefulset manifest (#6205) Without this, applying the manifest yields: error: error validating "db-service/200-create-postgre.yaml": error validating data: ValidationError(StatefulSet.spec): missing required field "serviceName" in io.k8s.api.apps.v1.StatefulSetSpec; if you choose to ignore these errors, turn validation off with --validate=false Signed-off-by: Guzman --- .../solution/db-service/200-create-postgre.yaml | 1 + .../start/db-service/200-create-postgre.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/code-samples/eventing/bookstore-sample-app/solution/db-service/200-create-postgre.yaml b/code-samples/eventing/bookstore-sample-app/solution/db-service/200-create-postgre.yaml index 8384d2ed943..c14933e5d4f 100644 --- a/code-samples/eventing/bookstore-sample-app/solution/db-service/200-create-postgre.yaml +++ b/code-samples/eventing/bookstore-sample-app/solution/db-service/200-create-postgre.yaml @@ -7,6 +7,7 @@ spec: selector: matchLabels: app: postgresql + serviceName: postgresql template: metadata: labels: diff --git a/code-samples/eventing/bookstore-sample-app/start/db-service/200-create-postgre.yaml b/code-samples/eventing/bookstore-sample-app/start/db-service/200-create-postgre.yaml index 8384d2ed943..c14933e5d4f 100644 --- a/code-samples/eventing/bookstore-sample-app/start/db-service/200-create-postgre.yaml +++ b/code-samples/eventing/bookstore-sample-app/start/db-service/200-create-postgre.yaml @@ -7,6 +7,7 @@ spec: selector: matchLabels: app: postgresql + serviceName: postgresql template: metadata: labels: