Skip to content

Commit 64fc93b

Browse files
authored
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 <[email protected]>
1 parent 70c7876 commit 64fc93b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

code-samples/eventing/bookstore-sample-app/solution/db-service/200-create-postgre.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ spec:
77
selector:
88
matchLabels:
99
app: postgresql
10+
serviceName: postgresql
1011
template:
1112
metadata:
1213
labels:

code-samples/eventing/bookstore-sample-app/start/db-service/200-create-postgre.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ spec:
77
selector:
88
matchLabels:
99
app: postgresql
10+
serviceName: postgresql
1011
template:
1112
metadata:
1213
labels:

0 commit comments

Comments
 (0)