Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
503f654d
Commit
503f654d
authored
Nov 14, 2018
by
saad-ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update CSI tests to point to 1.0.0 external bits.
parent
09d3dce3
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
47 additions
and
50 deletions
+47
-50
csi.go
test/e2e/storage/drivers/csi.go
+2
-2
volumemode.go
test/e2e/storage/testsuites/volumemode.go
+1
-1
rbac.yaml
.../testing-manifests/storage-csi/driver-registrar/rbac.yaml
+2
-2
controller_ss.yaml
...e/testing-manifests/storage-csi/gce-pd/controller_ss.yaml
+13
-16
csi-controller-rbac.yaml
...ing-manifests/storage-csi/gce-pd/csi-controller-rbac.yaml
+7
-7
node_ds.yaml
test/e2e/testing-manifests/storage-csi/gce-pd/node_ds.yaml
+16
-16
csi-hostpath-attacher.yaml
.../storage-csi/hostpath/hostpath/csi-hostpath-attacher.yaml
+1
-1
csi-hostpath-provisioner.yaml
...orage-csi/hostpath/hostpath/csi-hostpath-provisioner.yaml
+1
-1
csi-hostpathplugin.yaml
...sts/storage-csi/hostpath/hostpath/csi-hostpathplugin.yaml
+3
-3
e2e-test-rbac.yaml
...anifests/storage-csi/hostpath/hostpath/e2e-test-rbac.yaml
+1
-1
No files found.
test/e2e/storage/drivers/csi.go
View file @
503f654d
...
...
@@ -147,7 +147,7 @@ var _ DynamicPVTestDriver = &gcePDCSIDriver{}
func
InitGcePDCSIDriver
()
TestDriver
{
return
&
gcePDCSIDriver
{
driverInfo
:
DriverInfo
{
Name
:
"
com.google.csi.gcepd
"
,
Name
:
"
pd.csi.storage.gke.io
"
,
FeatureTag
:
"[Serial]"
,
MaxFileSize
:
testpatterns
.
FileSizeMedium
,
SupportedFsType
:
sets
.
NewString
(
...
...
@@ -237,7 +237,7 @@ var _ DynamicPVTestDriver = &gcePDExternalCSIDriver{}
func
InitGcePDExternalCSIDriver
()
TestDriver
{
return
&
gcePDExternalCSIDriver
{
driverInfo
:
DriverInfo
{
Name
:
"
com.google.csi.gcepd
"
,
Name
:
"
pd.csi.storage.gke.io
"
,
// TODO(#70258): this is temporary until we can figure out how to make e2e tests a library
FeatureTag
:
"[Feature: gcePD-external]"
,
MaxFileSize
:
testpatterns
.
FileSizeMedium
,
...
...
test/e2e/storage/testsuites/volumemode.go
View file @
503f654d
...
...
@@ -342,7 +342,7 @@ func testVolumeModeSuccessForDynamicPV(input *volumeModeTestInput) {
var
err
error
// TODO: This skip should be removed once #70760 is fixed
skipTestUntilBugfix
(
"70760"
,
input
.
driverName
,
[]
string
{
"
com.google.csi.gcepd
"
})
skipTestUntilBugfix
(
"70760"
,
input
.
driverName
,
[]
string
{
"
pd.csi.storage.gke.io
"
})
By
(
"Creating sc"
)
input
.
sc
,
err
=
cs
.
StorageV1
()
.
StorageClasses
()
.
Create
(
input
.
sc
)
...
...
test/e2e/testing-manifests/storage-csi/driver-registrar/rbac.yaml
View file @
503f654d
...
...
@@ -11,7 +11,7 @@
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
csi-
driver-registrar
name
:
csi-
node-sa
# replace with non-default namespace name
namespace
:
default
...
...
@@ -42,7 +42,7 @@ metadata:
name
:
csi-driver-registrar-role
subjects
:
-
kind
:
ServiceAccount
name
:
csi-
driver-registrar
name
:
csi-
node-sa
# replace with non-default namespace name
namespace
:
default
roleRef
:
...
...
test/e2e/testing-manifests/storage-csi/gce-pd/controller_ss.yaml
View file @
503f654d
kind
:
StatefulSet
apiVersion
:
apps/v1
metadata
:
name
:
csi-gce-controller
name
:
csi-gce-
pd-
controller
spec
:
serviceName
:
"
csi-gce-pd"
replicas
:
1
selector
:
matchLabels
:
app
:
csi-gce-pd
-driver
app
:
gcp-compute-persistent-disk-csi
-driver
template
:
metadata
:
labels
:
app
:
csi-gce-pd
-driver
app
:
gcp-compute-persistent-disk-csi
-driver
spec
:
serviceAccountName
:
csi-controller
serviceAccountName
:
csi-controller
-sa
containers
:
-
name
:
csi-external-provisioner
imagePullPolicy
:
Always
image
:
gcr.io/gke-release/csi-provisioner:v0.4.1-gke.0
-
name
:
csi-provisioner
image
:
gcr.io/gke-release/csi-provisioner:v1.0.0-gke.0
args
:
-
"
--v=5"
-
"
--provisioner=
com.google.csi.gcepd
"
-
"
--provisioner=
pd.csi.storage.gke.io
"
-
"
--csi-address=/csi/csi.sock"
volumeMounts
:
-
name
:
socket-dir
mountPath
:
/csi
-
name
:
csi-attacher
imagePullPolicy
:
Always
image
:
gcr.io/gke-release/csi-attacher:v0.4.1-gke.0
image
:
gcr.io/gke-release/csi-attacher:v1.0.0-gke.0
args
:
-
"
--v=5"
-
"
--csi-address=/csi/csi.sock"
volumeMounts
:
-
name
:
socket-dir
mountPath
:
/csi
-
name
:
gce-driver
imagePullPolicy
:
Always
image
:
gcr.io/gke-release/gcp-compute-persistent-disk-csi-driver:v0.2.0-gke.0
-
name
:
gce-pd-driver
image
:
gcr.io/gke-release/gcp-compute-persistent-disk-csi-driver:v0.3.0-gke.0
args
:
-
"
--v=5"
-
"
--endpoint=unix:/
//
csi/csi.sock"
-
"
--endpoint=unix:/csi/csi.sock"
env
:
-
name
:
GOOGLE_APPLICATION_CREDENTIALS
value
:
"
/etc/
service-account
/cloud-sa.json"
value
:
"
/etc/
cloud-sa
/cloud-sa.json"
volumeMounts
:
-
name
:
socket-dir
mountPath
:
/csi
-
name
:
cloud-sa-volume
readOnly
:
true
mountPath
:
"
/etc/
service-account
"
mountPath
:
"
/etc/
cloud-sa
"
volumes
:
-
name
:
socket-dir
emptyDir
:
{}
...
...
test/e2e/testing-manifests/storage-csi/gce-pd/csi-controller-rbac.yaml
View file @
503f654d
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
csi-controller
name
:
csi-controller
-sa
---
kind
:
ClusterRoleBinding
...
...
@@ -10,7 +10,7 @@ metadata:
name
:
csi-controller-attacher-role
subjects
:
-
kind
:
ServiceAccount
name
:
csi-controller
name
:
csi-controller
-sa
namespace
:
default
roleRef
:
kind
:
ClusterRole
...
...
@@ -25,7 +25,7 @@ metadata:
namespace
:
default
subjects
:
-
kind
:
ServiceAccount
name
:
csi-controller
name
:
csi-controller
-sa
namespace
:
default
roleRef
:
kind
:
Role
...
...
@@ -38,7 +38,7 @@ metadata:
name
:
csi-controller-provisioner-role
subjects
:
-
kind
:
ServiceAccount
name
:
csi-controller
name
:
csi-controller
-sa
namespace
:
default
roleRef
:
kind
:
ClusterRole
...
...
@@ -53,7 +53,7 @@ metadata:
namespace
:
default
subjects
:
-
kind
:
ServiceAccount
name
:
csi-controller
name
:
csi-controller
-sa
namespace
:
default
roleRef
:
kind
:
Role
...
...
@@ -67,10 +67,10 @@ metadata:
name
:
psp-csi-controller-driver-registrar-role
subjects
:
-
kind
:
ServiceAccount
name
:
csi-controller
name
:
csi-controller
-sa
namespace
:
default
-
kind
:
ServiceAccount
name
:
csi-
driver-registrar
name
:
csi-
node-sa
namespace
:
default
roleRef
:
kind
:
ClusterRole
...
...
test/e2e/testing-manifests/storage-csi/gce-pd/node_ds.yaml
View file @
503f654d
kind
:
DaemonSet
apiVersion
:
apps/v1
metadata
:
name
:
csi-gce-node
name
:
csi-gce-
pd-
node
spec
:
selector
:
matchLabels
:
app
:
csi-gce-driver
serviceName
:
csi-gce
app
:
gcp-compute-persistent-disk-csi-driver
template
:
metadata
:
labels
:
app
:
csi-gce
-driver
app
:
gcp-compute-persistent-disk-csi
-driver
spec
:
serviceAccountName
:
csi-
driver-registrar
serviceAccountName
:
csi-
node-sa
containers
:
-
name
:
csi-driver-registrar
imagePullPolicy
:
Always
image
:
gcr.io/gke-release/csi-driver-registrar:v0.4.1-gke.0
image
:
gcr.io/gke-release/csi-driver-registrar:v1.0.0-gke.0
args
:
-
"
--v=5"
-
"
--csi-address=/csi/csi.sock"
-
"
--kubelet-registration-path=/var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock"
-
"
--csi-address=/var/lib/kubelet/plugins/pd.csi.storage.gke.io/csi.sock"
-
"
--kubelet-registration-path=/var/lib/kubelet/plugins/pd.csi.storage.gke.io/csi.sock"
lifecycle
:
preStop
:
exec
:
command
:
[
"
/bin/sh"
,
"
-c"
,
"
rm
-rf
/registration/pd.csi.storage.gke.io
/registration/pd.csi.storage.gke.io-reg.sock"
]
env
:
-
name
:
KUBE_NODE_NAME
valueFrom
:
...
...
@@ -28,17 +30,16 @@ spec:
fieldPath
:
spec.nodeName
volumeMounts
:
-
name
:
plugin-dir
mountPath
:
/
csi
mountPath
:
/
var/lib/kubelet/plugins/pd.csi.storage.gke.io/
-
name
:
registration-dir
mountPath
:
/registration
-
name
:
gce-driver
-
name
:
gce-
pd-
driver
securityContext
:
privileged
:
true
imagePullPolicy
:
Always
image
:
gcr.io/gke-release/gcp-compute-persistent-disk-csi-driver:v0.2.0-gke.0
image
:
gcr.io/gke-release/gcp-compute-persistent-disk-csi-driver:v0.3.0-gke.0
args
:
-
"
--v=5"
-
"
--endpoint=unix:/
//
csi/csi.sock"
-
"
--endpoint=unix:/csi/csi.sock"
volumeMounts
:
-
name
:
kubelet-dir
mountPath
:
/var/lib/kubelet
...
...
@@ -67,7 +68,7 @@ spec:
type
:
Directory
-
name
:
plugin-dir
hostPath
:
path
:
/var/lib/kubelet/plugins/
com.google.csi.gcepd
/
path
:
/var/lib/kubelet/plugins/
pd.csi.storage.gke.io
/
type
:
DirectoryOrCreate
-
name
:
device-dir
hostPath
:
...
...
@@ -90,4 +91,3 @@ spec:
hostPath
:
path
:
/sys
type
:
Directory
test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-attacher.yaml
View file @
503f654d
...
...
@@ -30,7 +30,7 @@ spec:
serviceAccountName
:
csi-attacher
containers
:
-
name
:
csi-attacher
image
:
quay.io/k8scsi/csi-attacher:v0.4.1
image
:
gcr.io/gke-release/csi-attacher:v1.0.0-gke.0
args
:
-
--v=5
-
--csi-address=$(ADDRESS)
...
...
test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-provisioner.yaml
View file @
503f654d
...
...
@@ -30,7 +30,7 @@ spec:
serviceAccountName
:
csi-provisioner
containers
:
-
name
:
csi-provisioner
image
:
quay.io/k8scsi/csi-provisioner:v0.4.1
image
:
gcr.io/gke-release/csi-provisioner:v1.0.0-gke.0
args
:
-
"
--provisioner=csi-hostpath"
-
"
--csi-address=$(ADDRESS)"
...
...
test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpathplugin.yaml
View file @
503f654d
...
...
@@ -11,11 +11,11 @@ spec:
labels
:
app
:
csi-hostpathplugin
spec
:
serviceAccountName
:
csi-
driver-registrar
serviceAccountName
:
csi-
node-sa
hostNetwork
:
true
containers
:
-
name
:
driver-registrar
image
:
quay.io/k8scsi/driver-registrar:v0.4.1
image
:
gcr.io/gke-release/csi-driver-registrar:v1.0.0-gke.0
args
:
-
--v=5
-
--csi-address=/csi/csi.sock
...
...
@@ -33,7 +33,7 @@ spec:
-
mountPath
:
/registration
name
:
registration-dir
-
name
:
hostpath
image
:
quay.io/k8scsi/hostpathplugin:v
0.4.1
image
:
quay.io/k8scsi/hostpathplugin:v
1.0.0
args
:
-
"
--v=5"
-
"
--endpoint=$(CSI_ENDPOINT)"
...
...
test/e2e/testing-manifests/storage-csi/hostpath/hostpath/e2e-test-rbac.yaml
View file @
503f654d
...
...
@@ -8,7 +8,7 @@ subjects:
name
:
csi-attacher
namespace
:
default
-
kind
:
ServiceAccount
name
:
csi-
driver-registrar
name
:
csi-
node-sa
namespace
:
default
-
kind
:
ServiceAccount
name
:
csi-provisioner
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment