Skip to content

Commit 863072b

Browse files
Use commonLabels
1 parent d3c4876 commit 863072b

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

config/controller/controller.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,14 @@ apiVersion: v1
22
kind: ServiceAccount
33
metadata:
44
name: controller
5-
labels:
6-
app.kubernetes.io/component: controller
75
---
86
apiVersion: apps/v1
97
kind: Deployment
108
metadata:
119
name: controller
12-
labels:
13-
app.kubernetes.io/component: controller
1410
spec:
15-
selector:
16-
matchLabels:
17-
app.kubernetes.io/component: controller
1811
replicas: 1
1912
template:
20-
metadata:
21-
labels:
22-
app.kubernetes.io/component: controller
2313
spec:
2414
containers:
2515
- name: controller
@@ -44,4 +34,4 @@ spec:
4434
timeoutSeconds: 10
4535
terminationGracePeriodSeconds: 10
4636
priorityClassName: system-cluster-critical
47-
serviceAccountName: controller
37+
serviceAccountName: controller

config/controller/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
3+
commonLabels:
4+
app.kubernetes.io/component: controller
35
resources:
46
- controller.yaml
57
patches:

0 commit comments

Comments
 (0)