From e9056f6ae4835d6f0571d07df40b87d7a8c4284e Mon Sep 17 00:00:00 2001 From: Guzman Date: Sat, 25 Jan 2025 16:51:14 +0100 Subject: [PATCH] sample-app: Add serviceName to postgresql statefulset manifest 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: