Skip to content

Commit ef1b414

Browse files
authored
fix: make webpage sample work OOTB (#1155)
1 parent dc22976 commit ef1b414

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

sample-operators/webpage/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ page. Otherwise you can change the service to a LoadBalancer (e.g on a public cl
4646
You can also try to change the HTML code in `k8s/webpage.yaml` and do another `kubectl apply -f k8s/webpage.yaml`.
4747
This should update the actual NGINX deployment with the new configuration.
4848

49+
Note that there are multiple reconciler implementations that watch `WebPage` resources differentiated by a label.
50+
When you create a new `WebPage` resource, make sure its label matches the active reconciler's label selector.
51+
4952
If you want the Operator to be running as a deployment in your cluster, follow the below steps.
5053

5154
### Build

sample-operators/webpage/k8s/webpage.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
apiVersion: "sample.javaoperatorsdk/v1"
22
kind: WebPage
33
metadata:
4-
labels:
5-
low-level: "true"
4+
# Use labels to match the resource with different reconciler implementations:
5+
# labels:
6+
# low-level: "true"
67
name: hellows
78
spec:
89
exposed: false

0 commit comments

Comments
 (0)