Skip to content

Commit

Permalink
Add correct labels
Browse files Browse the repository at this point in the history
This patch ensures that resources related to the test-operator are
created with the `openstack.org/operator-name: test-operator` label.
This fixes the webhook issue as the service created for the webhook
was matching all the operators with
the `control-plane: controller-manager` label.
  • Loading branch information
lpiwowar committed Jun 18, 2024
1 parent 9dff1ce commit 6e469ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Namespace
metadata:
labels:
control-plane: controller-manager
openstack.org/operator-name: test-operator
app.kubernetes.io/name: namespace
app.kubernetes.io/instance: system
app.kubernetes.io/component: manager
Expand All @@ -18,6 +19,7 @@ metadata:
namespace: system
labels:
control-plane: controller-manager
openstack.org/operator-name: test-operator
app.kubernetes.io/name: deployment
app.kubernetes.io/instance: controller-manager
app.kubernetes.io/component: manager
Expand All @@ -27,7 +29,7 @@ metadata:
spec:
selector:
matchLabels:
control-plane: controller-manager
openstack.org/operator-name: test-operator
replicas: 1
template:
metadata:
Expand Down
2 changes: 1 addition & 1 deletion config/prometheus/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ spec:
insecureSkipVerify: true
selector:
matchLabels:
control-plane: controller-manager
openstack.org/operator-name: test-operator
2 changes: 1 addition & 1 deletion config/rbac/auth_proxy_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ spec:
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
openstack.org/operator-name: test-operator
2 changes: 1 addition & 1 deletion config/webhook/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ spec:
protocol: TCP
targetPort: 9443
selector:
control-plane: controller-manager
openstack.org/operator-name: test-operator

0 comments on commit 6e469ab

Please sign in to comment.