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
22352d28
Commit
22352d28
authored
Oct 17, 2016
by
Zach Loafman
Committed by
GitHub
Oct 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Add e2e tests for storageclass"
parent
1448b87d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
17 deletions
+0
-17
gce.go
pkg/cloudprovider/providers/gce/gce.go
+0
-17
volume_provisioning.go
test/e2e/volume_provisioning.go
+0
-0
No files found.
pkg/cloudprovider/providers/gce/gce.go
View file @
22352d28
...
...
@@ -2562,21 +2562,6 @@ func (gce *GCECloud) GetAutoLabelsForPD(name string, zone string) (map[string]st
return
labels
,
nil
}
// TestDisk checks that a disk has given type. It should be used only for
// testing!
func
(
gce
*
GCECloud
)
TestDisk
(
diskName
,
volumeType
string
)
error
{
disk
,
err
:=
gce
.
getDiskByNameUnknownZone
(
diskName
)
if
err
!=
nil
{
return
err
}
if
strings
.
HasSuffix
(
disk
.
Type
,
volumeType
)
{
return
nil
}
return
fmt
.
Errorf
(
"unexpected disk type %q, expected suffix %q"
,
disk
.
Type
,
volumeType
)
}
func
(
gce
*
GCECloud
)
AttachDisk
(
diskName
string
,
nodeName
types
.
NodeName
,
readOnly
bool
)
error
{
instanceName
:=
mapNodeNameToInstanceName
(
nodeName
)
instance
,
err
:=
gce
.
getInstanceByName
(
instanceName
)
...
...
@@ -2660,7 +2645,6 @@ func (gce *GCECloud) findDiskByName(diskName string, zone string) (*gceDisk, err
Zone
:
lastComponent
(
disk
.
Zone
),
Name
:
disk
.
Name
,
Kind
:
disk
.
Kind
,
Type
:
disk
.
Type
,
}
return
d
,
nil
}
...
...
@@ -2781,7 +2765,6 @@ type gceDisk struct {
Zone
string
Name
string
Kind
string
Type
string
}
// Gets the named instances, returning cloudprovider.InstanceNotFound if any instance is not found
...
...
test/e2e/volume_provisioning.go
View file @
22352d28
This diff is collapsed.
Click to expand it.
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