Skip to content

Commit b896e15

Browse files
committed
deploy: remove differences between 1.18 and 1.20 deployment
The manual editing as part of 03204df caused the two deployments to diverge (different label selectors, service defined with old "app" label in 1.20). Now "diff -r deploy/kubernetes-1.18 deploy/kubernetes-1.20" shows only intentional changes around the snapshotter beta API.
1 parent a236e29 commit b896e15

7 files changed

+10
-53
lines changed

deploy/kubernetes-1.18/hostpath/csi-hostpath-attacher.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ spec:
2929
requiredDuringSchedulingIgnoredDuringExecution:
3030
- labelSelector:
3131
matchExpressions:
32-
- key: app.kubernetes.io/name
32+
- key: app.kubernetes.io/instance
3333
operator: In
3434
values:
35-
- csi-hostpathplugin
35+
- hostpath.csi.k8s.io
3636
topologyKey: kubernetes.io/hostname
3737
serviceAccountName: csi-attacher
3838
containers:

deploy/kubernetes-1.18/hostpath/csi-hostpath-plugin.yaml

-23
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
# Service defined here, plus serviceName below in StatefulSet,
2-
# are needed only because of condition explained in
3-
# https://github.com/kubernetes/kubernetes/issues/69608
4-
5-
kind: Service
6-
apiVersion: v1
7-
metadata:
8-
name: csi-hostpathplugin
9-
labels:
10-
app.kubernetes.io/instance: hostpath.csi.k8s.io
11-
app.kubernetes.io/part-of: csi-driver-host-path
12-
app.kubernetes.io/name: csi-hostpathplugin
13-
app.kubernetes.io/component: plugin
14-
spec:
15-
selector:
16-
app.kubernetes.io/instance: hostpath.csi.k8s.io
17-
app.kubernetes.io/part-of: csi-driver-host-path
18-
app.kubernetes.io/name: csi-hostpathplugin
19-
app.kubernetes.io/component: plugin
20-
ports:
21-
- name: dummy
22-
port: 12345
23-
---
241
kind: StatefulSet
252
apiVersion: apps/v1
263
metadata:

deploy/kubernetes-1.18/hostpath/csi-hostpath-provisioner.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ spec:
2929
requiredDuringSchedulingIgnoredDuringExecution:
3030
- labelSelector:
3131
matchExpressions:
32-
- key: app.kubernetes.io/name
32+
- key: app.kubernetes.io/instance
3333
operator: In
3434
values:
35-
- csi-hostpathplugin
35+
- hostpath.csi.k8s.io
3636
topologyKey: kubernetes.io/hostname
3737
serviceAccountName: csi-provisioner
3838
containers:

deploy/kubernetes-1.18/hostpath/csi-hostpath-resizer.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ spec:
2929
requiredDuringSchedulingIgnoredDuringExecution:
3030
- labelSelector:
3131
matchExpressions:
32-
- key: app.kubernetes.io/name
32+
- key: app.kubernetes.io/instance
3333
operator: In
3434
values:
35-
- csi-hostpathplugin
35+
- hostpath.csi.k8s.io
3636
topologyKey: kubernetes.io/hostname
3737
serviceAccountName: csi-resizer
3838
containers:

deploy/kubernetes-1.18/hostpath/csi-hostpath-snapshotter.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ spec:
2929
requiredDuringSchedulingIgnoredDuringExecution:
3030
- labelSelector:
3131
matchExpressions:
32-
- key: app.kubernetes.io/name
32+
- key: app.kubernetes.io/instance
3333
operator: In
3434
values:
35-
- csi-hostpathplugin
35+
- hostpath.csi.k8s.io
3636
topologyKey: kubernetes.io/hostname
3737
serviceAccountName: csi-snapshotter
3838
containers:

deploy/kubernetes-1.18/hostpath/csi-hostpath-testing.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ spec:
5757
requiredDuringSchedulingIgnoredDuringExecution:
5858
- labelSelector:
5959
matchExpressions:
60-
- key: app.kubernetes.io/name
60+
- key: app.kubernetes.io/instance
6161
operator: In
6262
values:
63-
- csi-hostpathplugin
63+
- hostpath.csi.k8s.io
6464
topologyKey: kubernetes.io/hostname
6565
containers:
6666
- name: socat

deploy/kubernetes-1.20/hostpath/csi-hostpath-plugin.yaml

-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,3 @@
1-
# Service defined here, plus serviceName below in StatefulSet,
2-
# are needed only because of condition explained in
3-
# https://github.com/kubernetes/kubernetes/issues/69608
4-
5-
kind: Service
6-
apiVersion: v1
7-
metadata:
8-
name: csi-hostpathplugin
9-
labels:
10-
app.kubernetes.io/instance: hostpath.csi.k8s.io
11-
app.kubernetes.io/part-of: csi-driver-host-path
12-
app.kubernetes.io/name: csi-hostpathplugin
13-
app.kubernetes.io/component: plugin
14-
spec:
15-
selector:
16-
app: csi-hostpathplugin
17-
ports:
18-
- name: dummy
19-
port: 12345
20-
---
211
kind: StatefulSet
222
apiVersion: apps/v1
233
metadata:

0 commit comments

Comments
 (0)