Skip to content

Commit

Permalink
fix: operator resources should have unique labels. (argoproj-labs#751)
Browse files Browse the repository at this point in the history
* fix: operator labels should be unique

Signed-off-by: iam-veeramalla <[email protected]>

* add changes for 0.5.0
  • Loading branch information
iam-veeramalla authored Aug 9, 2022
1 parent e563469 commit a2e626b
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: Service
metadata:
creationTimestamp: null
labels:
control-plane: controller-manager
control-plane: argocd-operator
name: argocd-operator-controller-manager-metrics-service
spec:
ports:
- name: https
port: 8443
targetPort: https
selector:
control-plane: controller-manager
control-plane: argocd-operator
status:
loadBalancer: {}
4 changes: 2 additions & 2 deletions bundle/manifests/argocd-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1019,12 +1019,12 @@ spec:
replicas: 1
selector:
matchLabels:
control-plane: controller-manager
control-plane: argocd-operator
strategy: {}
template:
metadata:
labels:
control-plane: controller-manager
control-plane: argocd-operator
spec:
containers:
- args:
Expand Down
8 changes: 4 additions & 4 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: controller-manager
control-plane: argocd-operator
name: system
---
apiVersion: apps/v1
Expand All @@ -11,16 +11,16 @@ metadata:
name: controller-manager
namespace: system
labels:
control-plane: controller-manager
control-plane: argocd-operator
spec:
selector:
matchLabels:
control-plane: controller-manager
control-plane: argocd-operator
replicas: 1
template:
metadata:
labels:
control-plane: controller-manager
control-plane: argocd-operator
spec:
securityContext:
runAsNonRoot: true
Expand Down
4 changes: 2 additions & 2 deletions config/prometheus/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
control-plane: controller-manager
control-plane: argocd-operator
name: controller-manager-metrics-monitor
namespace: system
spec:
Expand All @@ -17,4 +17,4 @@ spec:
insecureSkipVerify: true
selector:
matchLabels:
control-plane: controller-manager
control-plane: argocd-operator
4 changes: 2 additions & 2 deletions config/rbac/auth_proxy_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
control-plane: controller-manager
control-plane: argocd-operator
name: controller-manager-metrics-service
namespace: system
spec:
Expand All @@ -11,4 +11,4 @@ spec:
port: 8443
targetPort: https
selector:
control-plane: controller-manager
control-plane: argocd-operator
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ kind: Service
metadata:
creationTimestamp: null
labels:
control-plane: controller-manager
control-plane: argocd-operator
name: argocd-operator-controller-manager-metrics-service
spec:
ports:
- name: https
port: 8443
targetPort: https
selector:
control-plane: controller-manager
control-plane: argocd-operator
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
Expand Up @@ -1019,12 +1019,12 @@ spec:
replicas: 1
selector:
matchLabels:
control-plane: controller-manager
control-plane: argocd-operator
strategy: {}
template:
metadata:
labels:
control-plane: controller-manager
control-plane: argocd-operator
spec:
containers:
- args:
Expand Down

0 comments on commit a2e626b

Please sign in to comment.