-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122489 from carlory/fix-120080
storage e2e: update hostpath and mock images
- Loading branch information
Showing
16 changed files
with
152 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/e2e/testing-manifests/storage-csi/external-attacher/rbac.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...anifests/storage-csi/external-health-monitor/external-health-monitor-controller/rbac.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-testing.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.