Skip to content

Commit a4d815a

Browse files
authored
Merge pull request #4437 from wjiec/feat/sel
✨ (kustomize/v2) feat: add app.kubernetes.io/name label to allow more precise configurations
2 parents 3e7c1d2 + 6b8b08f commit a4d815a

File tree

48 files changed

+75
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+75
-0
lines changed

docs/book/src/cronjob-tutorial/testdata/project/config/default/metrics_service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ spec:
1515
targetPort: 8443
1616
selector:
1717
control-plane: controller-manager
18+
app.kubernetes.io/name: project

docs/book/src/cronjob-tutorial/testdata/project/config/manager/manager.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ spec:
2020
selector:
2121
matchLabels:
2222
control-plane: controller-manager
23+
app.kubernetes.io/name: project
2324
replicas: 1
2425
template:
2526
metadata:
2627
annotations:
2728
kubectl.kubernetes.io/default-container: manager
2829
labels:
2930
control-plane: controller-manager
31+
app.kubernetes.io/name: project
3032
spec:
3133
# TODO(user): Uncomment the following code to configure the nodeAffinity expression
3234
# according to the platforms which are supported by your solution.

docs/book/src/cronjob-tutorial/testdata/project/config/network-policy/allow-metrics-traffic.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
podSelector:
1414
matchLabels:
1515
control-plane: controller-manager
16+
app.kubernetes.io/name: project
1617
policyTypes:
1718
- Ingress
1819
ingress:

docs/book/src/cronjob-tutorial/testdata/project/config/network-policy/allow-webhook-traffic.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
podSelector:
1414
matchLabels:
1515
control-plane: controller-manager
16+
app.kubernetes.io/name: project
1617
policyTypes:
1718
- Ingress
1819
ingress:

docs/book/src/cronjob-tutorial/testdata/project/config/prometheus/monitor.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ spec:
2424
selector:
2525
matchLabels:
2626
control-plane: controller-manager
27+
app.kubernetes.io/name: project

docs/book/src/cronjob-tutorial/testdata/project/config/webhook/service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ spec:
1313
targetPort: 9443
1414
selector:
1515
control-plane: controller-manager
16+
app.kubernetes.io/name: project

docs/book/src/cronjob-tutorial/testdata/project/dist/install.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4074,6 +4074,7 @@ spec:
40744074
protocol: TCP
40754075
targetPort: 8443
40764076
selector:
4077+
app.kubernetes.io/name: project
40774078
control-plane: controller-manager
40784079
---
40794080
apiVersion: v1
@@ -4090,6 +4091,7 @@ spec:
40904091
protocol: TCP
40914092
targetPort: 9443
40924093
selector:
4094+
app.kubernetes.io/name: project
40934095
control-plane: controller-manager
40944096
---
40954097
apiVersion: apps/v1
@@ -4105,12 +4107,14 @@ spec:
41054107
replicas: 1
41064108
selector:
41074109
matchLabels:
4110+
app.kubernetes.io/name: project
41084111
control-plane: controller-manager
41094112
template:
41104113
metadata:
41114114
annotations:
41124115
kubectl.kubernetes.io/default-container: manager
41134116
labels:
4117+
app.kubernetes.io/name: project
41144118
control-plane: controller-manager
41154119
spec:
41164120
containers:
@@ -4252,6 +4256,7 @@ spec:
42524256
name: metrics-server-cert
42534257
selector:
42544258
matchLabels:
4259+
app.kubernetes.io/name: project
42554260
control-plane: controller-manager
42564261
---
42574262
apiVersion: admissionregistration.k8s.io/v1

docs/book/src/getting-started/testdata/project/config/default/metrics_service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ spec:
1515
targetPort: 8443
1616
selector:
1717
control-plane: controller-manager
18+
app.kubernetes.io/name: project

docs/book/src/getting-started/testdata/project/config/manager/manager.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ spec:
2020
selector:
2121
matchLabels:
2222
control-plane: controller-manager
23+
app.kubernetes.io/name: project
2324
replicas: 1
2425
template:
2526
metadata:
2627
annotations:
2728
kubectl.kubernetes.io/default-container: manager
2829
labels:
2930
control-plane: controller-manager
31+
app.kubernetes.io/name: project
3032
spec:
3133
# TODO(user): Uncomment the following code to configure the nodeAffinity expression
3234
# according to the platforms which are supported by your solution.

docs/book/src/getting-started/testdata/project/config/network-policy/allow-metrics-traffic.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
podSelector:
1414
matchLabels:
1515
control-plane: controller-manager
16+
app.kubernetes.io/name: project
1617
policyTypes:
1718
- Ingress
1819
ingress:

0 commit comments

Comments
 (0)