Skip to content

Commit

Permalink
Merge pull request #28 from Madhu-1/fix-labels-dw
Browse files Browse the repository at this point in the history
use a unique label for csi-addons resources
  • Loading branch information
openshift-merge-robot authored Feb 28, 2022
2 parents 029c2df + 90746e7 commit 56fb920
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ metadata:
name: controller-manager
namespace: system
labels:
control-plane: controller-manager
app.kubernetes.io/name: csi-addons
spec:
selector:
matchLabels:
control-plane: controller-manager
app.kubernetes.io/name: csi-addons
replicas: 1
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: manager
labels:
control-plane: controller-manager
app.kubernetes.io/name: csi-addons
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
app.kubernetes.io/name: csi-addons
name: controller-manager-metrics-monitor
namespace: system
spec:
Expand All @@ -17,4 +17,4 @@ spec:
insecureSkipVerify: true
selector:
matchLabels:
control-plane: controller-manager
app.kubernetes.io/name: csi-addons
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
app.kubernetes.io/name: csi-addons
name: controller-manager-metrics-service
namespace: system
spec:
Expand All @@ -12,4 +12,4 @@ spec:
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
app.kubernetes.io/name: csi-addons
2 changes: 1 addition & 1 deletion config/rbac/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: controller-manager
app.kubernetes.io/name: csi-addons
name: system
6 changes: 3 additions & 3 deletions deploy/controller/rbac.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
app.kubernetes.io/name: csi-addons
name: csi-addons-system
---
apiVersion: v1
Expand Down Expand Up @@ -271,7 +271,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
control-plane: controller-manager
app.kubernetes.io/name: csi-addons
name: csi-addons-controller-manager-metrics-service
namespace: csi-addons-system
spec:
Expand All @@ -281,4 +281,4 @@ spec:
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
app.kubernetes.io/name: csi-addons
6 changes: 3 additions & 3 deletions deploy/controller/setup-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
control-plane: controller-manager
app.kubernetes.io/name: csi-addons
name: csi-addons-controller-manager
namespace: csi-addons-system
spec:
replicas: 1
selector:
matchLabels:
control-plane: controller-manager
app.kubernetes.io/name: csi-addons
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: manager
labels:
control-plane: controller-manager
app.kubernetes.io/name: csi-addons
spec:
containers:
- args:
Expand Down

0 comments on commit 56fb920

Please sign in to comment.