mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Remove unused csi-hostpath-testing.yaml
This yaml file uses `docker.io/alpine/socat:1.7.4.3-r0`, either we figure out how to replace the image or just eliminate the yaml itself if it is not being used for testing anything in this repository. Found this when we run `e2e.test --list-images`, the dockerhub image reference above shows up which gives a false impression that we depend on this image for our testing purposes. Also we should NOT depend on a dockerhub image anyways! Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
6cf77098aa
commit
be88a79b6a
@ -1,83 +0,0 @@
|
||||
# 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
|
||||
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
|
||||
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: docker.io/alpine/socat:1.7.4.3-r0
|
||||
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
|
@ -48,7 +48,6 @@ func TestCSIImageConfigs(t *testing.T) {
|
||||
"gcp-compute-persistent-disk-csi-driver",
|
||||
|
||||
// For some hostpath tests.
|
||||
"socat",
|
||||
"busybox",
|
||||
|
||||
// For AnyVolumeDataSource feature tests.
|
||||
|
Loading…
Reference in New Issue
Block a user