mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 13:31:52 +00:00
storage e2e: update hostpath and mock images
This commit is contained in:
parent
ee5eca2a49
commit
2bd7f4f8e0
@ -62,6 +62,10 @@ func LoadFromManifests(files ...string) ([]interface{}, error) {
|
|||||||
if err := runtime.DecodeInto(scheme.Codecs.UniversalDecoder(), data, &what); err != nil {
|
if err := runtime.DecodeInto(scheme.Codecs.UniversalDecoder(), data, &what); err != nil {
|
||||||
return fmt.Errorf("decode TypeMeta: %w", err)
|
return fmt.Errorf("decode TypeMeta: %w", err)
|
||||||
}
|
}
|
||||||
|
// Ignore empty documents.
|
||||||
|
if what.Kind == "" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
factory := factories[what]
|
factory := factories[what]
|
||||||
if factory == nil {
|
if factory == nil {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Do not edit, downloaded from https://github.com/kubernetes-csi/external-attacher/raw/v3.4.0/deploy/kubernetes//rbac.yaml
|
# Do not edit, downloaded from https://github.com/kubernetes-csi/external-attacher/raw/v4.5.0/deploy/kubernetes//rbac.yaml
|
||||||
# for csi-driver-host-path v1.8.0
|
# for csi-driver-host-path release-1.13
|
||||||
# by ./update-hostpath.sh
|
# by ./update-hostpath.sh
|
||||||
#
|
#
|
||||||
# This YAML file contains all RBAC objects that are necessary to run external
|
# This YAML file contains all RBAC objects that are necessary to run external
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Do not edit, downloaded from https://github.com/kubernetes-csi/external-health-monitor/raw/v0.4.0/deploy/kubernetes/external-health-monitor-controller/rbac.yaml
|
# Do not edit, downloaded from https://github.com/kubernetes-csi/external-health-monitor/raw/v0.11.0/deploy/kubernetes/external-health-monitor-controller/rbac.yaml
|
||||||
# for csi-driver-host-path v1.8.0
|
# for csi-driver-host-path release-1.13
|
||||||
# by ./update-hostpath.sh
|
# by ./update-hostpath.sh
|
||||||
#
|
#
|
||||||
# This YAML file contains all RBAC objects that are necessary to run external
|
# This YAML file contains all RBAC objects that are necessary to run external
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Do not edit, downloaded from https://github.com/kubernetes-csi/external-provisioner/raw/v3.1.0/deploy/kubernetes//rbac.yaml
|
# Do not edit, downloaded from https://github.com/kubernetes-csi/external-provisioner/raw/v4.0.0/deploy/kubernetes//rbac.yaml
|
||||||
# for csi-driver-host-path v1.8.0
|
# for csi-driver-host-path release-1.13
|
||||||
# by ./update-hostpath.sh
|
# by ./update-hostpath.sh
|
||||||
#
|
#
|
||||||
# This YAML file contains all RBAC objects that are necessary to run external
|
# This YAML file contains all RBAC objects that are necessary to run external
|
||||||
@ -61,6 +61,13 @@ rules:
|
|||||||
- apiGroups: ["storage.k8s.io"]
|
- apiGroups: ["storage.k8s.io"]
|
||||||
resources: ["volumeattachments"]
|
resources: ["volumeattachments"]
|
||||||
verbs: ["get", "list", "watch"]
|
verbs: ["get", "list", "watch"]
|
||||||
|
# (Alpha) Access to referencegrants is only needed when the CSI driver
|
||||||
|
# has the CrossNamespaceVolumeDataSource controller capability.
|
||||||
|
# In that case, external-provisioner requires "get", "list", "watch"
|
||||||
|
# permissions for "referencegrants" on "gateway.networking.k8s.io".
|
||||||
|
#- apiGroups: ["gateway.networking.k8s.io"]
|
||||||
|
# resources: ["referencegrants"]
|
||||||
|
# verbs: ["get", "list", "watch"]
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
@ -89,9 +96,6 @@ metadata:
|
|||||||
rules:
|
rules:
|
||||||
# Only one of the following rules for endpoints or leases is required based on
|
# Only one of the following rules for endpoints or leases is required based on
|
||||||
# what is set for `--leader-election-type`. Endpoints are deprecated in favor of Leases.
|
# what is set for `--leader-election-type`. Endpoints are deprecated in favor of Leases.
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["endpoints"]
|
|
||||||
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
|
||||||
- apiGroups: ["coordination.k8s.io"]
|
- apiGroups: ["coordination.k8s.io"]
|
||||||
resources: ["leases"]
|
resources: ["leases"]
|
||||||
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Do not edit, downloaded from https://github.com/kubernetes-csi/external-resizer/raw/v1.4.0/deploy/kubernetes//rbac.yaml
|
# Do not edit, downloaded from https://github.com/kubernetes-csi/external-resizer/raw/v1.10.0/deploy/kubernetes//rbac.yaml
|
||||||
# for csi-driver-host-path v1.8.0
|
# for csi-driver-host-path release-1.13
|
||||||
# by ./update-hostpath.sh
|
# by ./update-hostpath.sh
|
||||||
#
|
#
|
||||||
# This YAML file contains all RBAC objects that are necessary to run external
|
# This YAML file contains all RBAC objects that are necessary to run external
|
||||||
@ -46,6 +46,10 @@ rules:
|
|||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["events"]
|
resources: ["events"]
|
||||||
verbs: ["list", "watch", "create", "update", "patch"]
|
verbs: ["list", "watch", "create", "update", "patch"]
|
||||||
|
# only required if enabling the alpha volume modify feature
|
||||||
|
- apiGroups: ["storage.k8s.io"]
|
||||||
|
resources: ["volumeattributesclasses"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
@ -63,7 +67,7 @@ roleRef:
|
|||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
|
||||||
---
|
---
|
||||||
# Resizer must be able to work with end point in current namespace
|
# Resizer must be able to work with `leases` in current namespace
|
||||||
# if (and only if) leadership election is enabled
|
# if (and only if) leadership election is enabled
|
||||||
kind: Role
|
kind: Role
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Do not edit, downloaded from https://github.com/kubernetes-csi/external-snapshotter/raw/v5.0.1/deploy/kubernetes/csi-snapshotter/rbac-csi-snapshotter.yaml
|
# Do not edit, downloaded from https://github.com/kubernetes-csi/external-snapshotter/raw/v7.0.1/deploy/kubernetes/csi-snapshotter/rbac-csi-snapshotter.yaml
|
||||||
# for csi-driver-host-path v1.8.0
|
# for csi-driver-host-path release-1.13
|
||||||
# by ./update-hostpath.sh
|
# by ./update-hostpath.sh
|
||||||
#
|
#
|
||||||
# Together with the RBAC file for external-provisioner, this YAML file
|
# Together with the RBAC file for external-provisioner, this YAML file
|
||||||
@ -12,6 +12,7 @@
|
|||||||
# - optionally rename the non-namespaced ClusterRole if there
|
# - optionally rename the non-namespaced ClusterRole if there
|
||||||
# are conflicts with other deployments
|
# are conflicts with other deployments
|
||||||
|
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
@ -37,13 +38,24 @@ rules:
|
|||||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
resources: ["volumesnapshotclasses"]
|
resources: ["volumesnapshotclasses"]
|
||||||
verbs: ["get", "list", "watch"]
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
|
resources: ["volumesnapshots"]
|
||||||
|
verbs: ["get", "list", "watch", "update", "patch", "create"]
|
||||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
resources: ["volumesnapshotcontents"]
|
resources: ["volumesnapshotcontents"]
|
||||||
verbs: ["create", "get", "list", "watch", "update", "delete", "patch"]
|
verbs: ["get", "list", "watch", "update", "patch", "create"]
|
||||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
resources: ["volumesnapshotcontents/status"]
|
resources: ["volumesnapshotcontents/status"]
|
||||||
verbs: ["update", "patch"]
|
verbs: ["update", "patch"]
|
||||||
|
- apiGroups: ["groupsnapshot.storage.k8s.io"]
|
||||||
|
resources: ["volumegroupsnapshotclasses"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: ["groupsnapshot.storage.k8s.io"]
|
||||||
|
resources: ["volumegroupsnapshotcontents"]
|
||||||
|
verbs: ["get", "list", "watch", "update", "patch"]
|
||||||
|
- apiGroups: ["groupsnapshot.storage.k8s.io"]
|
||||||
|
resources: ["volumegroupsnapshotcontents/status"]
|
||||||
|
verbs: ["update", "patch"]
|
||||||
---
|
---
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
The files in this directory are exact copies of "kubernetes-latest" in
|
The files in this directory are exact copies of "kubernetes-latest" in
|
||||||
https://github.com/kubernetes-csi/csi-driver-host-path/tree/v1.8.0/deploy/
|
https://github.com/kubernetes-csi/csi-driver-host-path/tree/release-1.13/deploy/
|
||||||
|
|
||||||
Do not edit manually. Run ./update-hostpath.sh to refresh the content.
|
Do not edit manually. Run ./update-hostpath.sh to refresh the content.
|
||||||
|
@ -15,3 +15,6 @@ spec:
|
|||||||
# To determine at runtime which mode a volume uses, pod info and its
|
# To determine at runtime which mode a volume uses, pod info and its
|
||||||
# "csi.storage.k8s.io/ephemeral" entry are needed.
|
# "csi.storage.k8s.io/ephemeral" entry are needed.
|
||||||
podInfoOnMount: true
|
podInfoOnMount: true
|
||||||
|
# Kubernetes may use fsGroup to change permissions and ownership
|
||||||
|
# of the volume to match user requested fsGroup in the pod's SecurityPolicy
|
||||||
|
fsGroupPolicy: File
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# All of the individual sidecar RBAC roles get bound
|
# All of the individual sidecar RBAC roles get bound
|
||||||
# to this account.
|
# to this account.
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
@ -190,6 +190,7 @@ kind: StatefulSet
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: csi-hostpathplugin
|
name: csi-hostpathplugin
|
||||||
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/instance: hostpath.csi.k8s.io
|
app.kubernetes.io/instance: hostpath.csi.k8s.io
|
||||||
app.kubernetes.io/part-of: csi-driver-host-path
|
app.kubernetes.io/part-of: csi-driver-host-path
|
||||||
@ -218,7 +219,7 @@ spec:
|
|||||||
serviceAccountName: csi-hostpathplugin-sa
|
serviceAccountName: csi-hostpathplugin-sa
|
||||||
containers:
|
containers:
|
||||||
- name: hostpath
|
- name: hostpath
|
||||||
image: registry.k8s.io/sig-storage/hostpathplugin:v1.11.0
|
image: registry.k8s.io/sig-storage/hostpathplugin:v1.13.0
|
||||||
args:
|
args:
|
||||||
- "--drivername=hostpath.csi.k8s.io"
|
- "--drivername=hostpath.csi.k8s.io"
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
@ -261,7 +262,7 @@ spec:
|
|||||||
name: dev-dir
|
name: dev-dir
|
||||||
|
|
||||||
- name: csi-external-health-monitor-controller
|
- name: csi-external-health-monitor-controller
|
||||||
image: registry.k8s.io/sig-storage/csi-external-health-monitor-controller:v0.7.0
|
image: registry.k8s.io/sig-storage/csi-external-health-monitor-controller:v0.11.0
|
||||||
args:
|
args:
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
@ -275,7 +276,7 @@ spec:
|
|||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
|
|
||||||
- name: node-driver-registrar
|
- name: node-driver-registrar
|
||||||
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1
|
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.10.0
|
||||||
args:
|
args:
|
||||||
- --v=5
|
- --v=5
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
@ -303,13 +304,13 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /csi
|
- mountPath: /csi
|
||||||
name: socket-dir
|
name: socket-dir
|
||||||
image: registry.k8s.io/sig-storage/livenessprobe:v2.7.0
|
image: registry.k8s.io/sig-storage/livenessprobe:v2.12.0
|
||||||
args:
|
args:
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
- --health-port=9898
|
- --health-port=9898
|
||||||
|
|
||||||
- name: csi-attacher
|
- name: csi-attacher
|
||||||
image: registry.k8s.io/sig-storage/csi-attacher:v4.0.0
|
image: registry.k8s.io/sig-storage/csi-attacher:v4.5.0
|
||||||
args:
|
args:
|
||||||
- --v=5
|
- --v=5
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
@ -323,11 +324,12 @@ spec:
|
|||||||
name: socket-dir
|
name: socket-dir
|
||||||
|
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: registry.k8s.io/sig-storage/csi-provisioner:v3.4.0
|
image: registry.k8s.io/sig-storage/csi-provisioner:v4.0.0
|
||||||
args:
|
args:
|
||||||
- -v=5
|
- -v=5
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
- --feature-gates=Topology=true
|
- --feature-gates=Topology=true
|
||||||
|
# end csi-provisioner args
|
||||||
securityContext:
|
securityContext:
|
||||||
# This is necessary only for systems with SELinux, where
|
# This is necessary only for systems with SELinux, where
|
||||||
# non-privileged sidecar containers cannot access unix domain socket
|
# non-privileged sidecar containers cannot access unix domain socket
|
||||||
@ -338,7 +340,7 @@ spec:
|
|||||||
name: socket-dir
|
name: socket-dir
|
||||||
|
|
||||||
- name: csi-resizer
|
- name: csi-resizer
|
||||||
image: registry.k8s.io/sig-storage/csi-resizer:v1.6.0
|
image: registry.k8s.io/sig-storage/csi-resizer:v1.10.0
|
||||||
args:
|
args:
|
||||||
- -v=5
|
- -v=5
|
||||||
- -csi-address=/csi/csi.sock
|
- -csi-address=/csi/csi.sock
|
||||||
@ -352,7 +354,7 @@ spec:
|
|||||||
name: socket-dir
|
name: socket-dir
|
||||||
|
|
||||||
- name: csi-snapshotter
|
- name: csi-snapshotter
|
||||||
image: registry.k8s.io/sig-storage/csi-snapshotter:v6.1.0
|
image: registry.k8s.io/sig-storage/csi-snapshotter:v7.0.1
|
||||||
args:
|
args:
|
||||||
- -v=5
|
- -v=5
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
|
@ -0,0 +1,87 @@
|
|||||||
|
# WARNING: this is only for testing purposes. Do not install in a production
|
||||||
|
# cluster.
|
||||||
|
#
|
||||||
|
# This exposes the hostpath's Unix domain csi.sock as a TCP port to the
|
||||||
|
# outside world. The mapping from Unix domain socket to TCP is done
|
||||||
|
# by socat.
|
||||||
|
#
|
||||||
|
# This is useful for testing with csi-sanity or csc.
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: hostpath-service
|
||||||
|
namespace: default
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/instance: hostpath.csi.k8s.io
|
||||||
|
app.kubernetes.io/part-of: csi-driver-host-path
|
||||||
|
app.kubernetes.io/name: csi-hostpath-socat
|
||||||
|
app.kubernetes.io/component: socat
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/instance: hostpath.csi.k8s.io
|
||||||
|
app.kubernetes.io/part-of: csi-driver-host-path
|
||||||
|
app.kubernetes.io/name: csi-hostpath-socat
|
||||||
|
app.kubernetes.io/component: socat
|
||||||
|
ports:
|
||||||
|
- port: 10000 # fixed port inside the pod, dynamically allocated port outside
|
||||||
|
---
|
||||||
|
kind: StatefulSet
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
name: csi-hostpath-socat
|
||||||
|
namespace: default
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/instance: hostpath.csi.k8s.io
|
||||||
|
app.kubernetes.io/part-of: csi-driver-host-path
|
||||||
|
app.kubernetes.io/name: csi-hostpath-socat
|
||||||
|
app.kubernetes.io/component: socat
|
||||||
|
spec:
|
||||||
|
serviceName: "csi-hostpath-socat"
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/instance: hostpath.csi.k8s.io
|
||||||
|
app.kubernetes.io/part-of: csi-driver-host-path
|
||||||
|
app.kubernetes.io/name: csi-hostpath-socat
|
||||||
|
app.kubernetes.io/component: socat
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/instance: hostpath.csi.k8s.io
|
||||||
|
app.kubernetes.io/part-of: csi-driver-host-path
|
||||||
|
app.kubernetes.io/name: csi-hostpath-socat
|
||||||
|
app.kubernetes.io/component: socat
|
||||||
|
spec:
|
||||||
|
affinity:
|
||||||
|
podAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- labelSelector:
|
||||||
|
matchExpressions:
|
||||||
|
- key: app.kubernetes.io/instance
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- hostpath.csi.k8s.io
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
containers:
|
||||||
|
- name: socat
|
||||||
|
image: registry.k8s.io/sig-storage/hostpathplugin:v1.13.0
|
||||||
|
command:
|
||||||
|
- socat
|
||||||
|
args:
|
||||||
|
- tcp-listen:10000,fork,reuseaddr
|
||||||
|
- unix-connect:/csi/csi.sock
|
||||||
|
securityContext:
|
||||||
|
# This is necessary only for systems with SELinux, where
|
||||||
|
# non-privileged sidecar containers cannot access unix domain socket
|
||||||
|
# created by privileged CSI driver container.
|
||||||
|
privileged: true
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /csi
|
||||||
|
name: socket-dir
|
||||||
|
volumes:
|
||||||
|
- hostPath:
|
||||||
|
path: /var/lib/kubelet/plugins/csi-hostpath
|
||||||
|
type: DirectoryOrCreate
|
||||||
|
name: socket-dir
|
@ -15,7 +15,7 @@ spec:
|
|||||||
serviceAccountName: csi-mock
|
serviceAccountName: csi-mock
|
||||||
containers:
|
containers:
|
||||||
- name: csi-attacher
|
- name: csi-attacher
|
||||||
image: registry.k8s.io/sig-storage/csi-attacher:v4.0.0
|
image: registry.k8s.io/sig-storage/csi-attacher:v4.5.0
|
||||||
args:
|
args:
|
||||||
- --v=5
|
- --v=5
|
||||||
- --csi-address=$(ADDRESS)
|
- --csi-address=$(ADDRESS)
|
||||||
|
@ -15,7 +15,7 @@ spec:
|
|||||||
serviceAccountName: csi-mock
|
serviceAccountName: csi-mock
|
||||||
containers:
|
containers:
|
||||||
- name: csi-resizer
|
- name: csi-resizer
|
||||||
image: registry.k8s.io/sig-storage/csi-resizer:v1.6.0
|
image: registry.k8s.io/sig-storage/csi-resizer:v1.10.0
|
||||||
args:
|
args:
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
|
@ -15,7 +15,7 @@ spec:
|
|||||||
serviceAccountName: csi-mock
|
serviceAccountName: csi-mock
|
||||||
containers:
|
containers:
|
||||||
- name: csi-snapshotter
|
- name: csi-snapshotter
|
||||||
image: registry.k8s.io/sig-storage/csi-snapshotter:v6.1.0
|
image: registry.k8s.io/sig-storage/csi-snapshotter:v7.0.1
|
||||||
args:
|
args:
|
||||||
- "--v=5"
|
- "--v=5"
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
|
@ -15,7 +15,7 @@ spec:
|
|||||||
serviceAccountName: csi-mock
|
serviceAccountName: csi-mock
|
||||||
containers:
|
containers:
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: registry.k8s.io/sig-storage/csi-provisioner:v3.4.0
|
image: registry.k8s.io/sig-storage/csi-provisioner:v4.0.0
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
# Topology support is needed for the pod rescheduling test
|
# Topology support is needed for the pod rescheduling test
|
||||||
@ -34,7 +34,7 @@ spec:
|
|||||||
- mountPath: /csi
|
- mountPath: /csi
|
||||||
name: socket-dir
|
name: socket-dir
|
||||||
- name: driver-registrar
|
- name: driver-registrar
|
||||||
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1
|
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.10.0
|
||||||
args:
|
args:
|
||||||
- --v=5
|
- --v=5
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
@ -53,7 +53,7 @@ spec:
|
|||||||
- mountPath: /registration
|
- mountPath: /registration
|
||||||
name: registration-dir
|
name: registration-dir
|
||||||
- name: mock
|
- name: mock
|
||||||
image: registry.k8s.io/sig-storage/hostpathplugin:v1.9.0
|
image: registry.k8s.io/sig-storage/hostpathplugin:v1.13.0
|
||||||
args:
|
args:
|
||||||
- "--drivername=mock.storage.k8s.io"
|
- "--drivername=mock.storage.k8s.io"
|
||||||
- "--nodeid=$(KUBE_NODE_NAME)"
|
- "--nodeid=$(KUBE_NODE_NAME)"
|
||||||
|
@ -15,7 +15,7 @@ spec:
|
|||||||
serviceAccountName: csi-mock
|
serviceAccountName: csi-mock
|
||||||
containers:
|
containers:
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: registry.k8s.io/sig-storage/csi-provisioner:v3.4.0
|
image: registry.k8s.io/sig-storage/csi-provisioner:v4.0.0
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
# Topology support is needed for the pod rescheduling test
|
# Topology support is needed for the pod rescheduling test
|
||||||
@ -35,7 +35,7 @@ spec:
|
|||||||
- mountPath: /csi
|
- mountPath: /csi
|
||||||
name: socket-dir
|
name: socket-dir
|
||||||
- name: driver-registrar
|
- name: driver-registrar
|
||||||
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1
|
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.10.0
|
||||||
args:
|
args:
|
||||||
- --v=5
|
- --v=5
|
||||||
- --csi-address=/csi/csi.sock
|
- --csi-address=/csi/csi.sock
|
||||||
@ -53,7 +53,7 @@ spec:
|
|||||||
- mountPath: /registration
|
- mountPath: /registration
|
||||||
name: registration-dir
|
name: registration-dir
|
||||||
- name: mock
|
- name: mock
|
||||||
image: registry.k8s.io/sig-storage/hostpathplugin:v1.9.0
|
image: registry.k8s.io/sig-storage/hostpathplugin:v1.13.0
|
||||||
args:
|
args:
|
||||||
- -v=5
|
- -v=5
|
||||||
- -nodeid=$(KUBE_NODE_NAME)
|
- -nodeid=$(KUBE_NODE_NAME)
|
||||||
|
@ -137,5 +137,5 @@ done
|
|||||||
grep -r image: hostpath/hostpath/csi-hostpath-plugin.yaml | while read -r image; do
|
grep -r image: hostpath/hostpath/csi-hostpath-plugin.yaml | while read -r image; do
|
||||||
version=$(echo "$image" | sed -e 's/.*:\(.*\)/\1/')
|
version=$(echo "$image" | sed -e 's/.*:\(.*\)/\1/')
|
||||||
image=$(echo "$image" | sed -e 's/.*image: \([^:]*\).*/\1/')
|
image=$(echo "$image" | sed -e 's/.*image: \([^:]*\).*/\1/')
|
||||||
sed -i -e "s;$image:.*;$image:$version;" mock/*.yaml
|
sed -i '' -e "s;$image:.*;$image:$version;" mock/*.yaml
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user