Skip to content

Commit

Permalink
Fix controller manager label
Browse files Browse the repository at this point in the history
In all the openstack-operators, openstack.org/operator-name label is
used. The same needs to be used in watcher-operator. Otherwise During
log collection, ci-framework env_op_images role fails while querying
all controller manager pods.

This pr adds openstack.org/operator-name: watcher label to the operator.

Signed-off-by: Chandan Kumar <[email protected]>
  • Loading branch information
raukadah committed Nov 25, 2024
1 parent d9ad573 commit ac57d33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Namespace
metadata:
labels:
control-plane: controller-manager
app.kubernetes.io/name: watcher-operator
app.kubernetes.io/managed-by: kustomize
name: system
---
Expand All @@ -14,19 +13,20 @@ metadata:
namespace: system
labels:
control-plane: controller-manager
app.kubernetes.io/name: watcher-operator
openstack.org/operator-name: watcher
app.kubernetes.io/managed-by: kustomize
spec:
selector:
matchLabels:
control-plane: controller-manager
openstack.org/operator-name: watcher
replicas: 1
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: manager
labels:
control-plane: controller-manager
openstack.org/operator-name: watcher
spec:
# TODO(user): Uncomment the following code to configure the nodeAffinity expression
# according to the platforms which are supported by your solution.
Expand Down
3 changes: 1 addition & 2 deletions config/prometheus/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ kind: ServiceMonitor
metadata:
labels:
control-plane: controller-manager
app.kubernetes.io/name: watcher-operator
app.kubernetes.io/managed-by: kustomize
name: controller-manager-metrics-monitor
namespace: system
Expand All @@ -18,4 +17,4 @@ spec:
insecureSkipVerify: true
selector:
matchLabels:
control-plane: controller-manager
openstack.org/operator-name: watcher
3 changes: 1 addition & 2 deletions config/rbac/auth_proxy_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Service
metadata:
labels:
control-plane: controller-manager
app.kubernetes.io/name: watcher-operator
app.kubernetes.io/managed-by: kustomize
name: controller-manager-metrics-service
namespace: system
Expand All @@ -14,4 +13,4 @@ spec:
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
openstack.org/operator-name: watcher

0 comments on commit ac57d33

Please sign in to comment.