Skip to content

Commit cacce1d

Browse files
Adding app label to spec.selector (#437)
* Ensure controller Deployment selector includes app label to avoid other operator logs matches * fix: using correct name for the label * fix: adding missing label to the template of the manager.yaml
1 parent 47ad318 commit cacce1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/manager/manager.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ spec:
1616
selector:
1717
matchLabels:
1818
control-plane: controller-manager
19+
app.kubernetes.io/name: netbox-operator
1920
replicas: 1
2021
template:
2122
metadata:
2223
annotations:
2324
kubectl.kubernetes.io/default-container: manager
2425
labels:
2526
control-plane: controller-manager
27+
app.kubernetes.io/name: netbox-operator
2628
app.kubernetes.io/part-of: netbox-operator
2729
spec:
2830
# TODO(user): Uncomment the following code to configure the nodeAffinity expression

0 commit comments

Comments
 (0)