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
0331545c
Commit
0331545c
authored
Jun 26, 2018
by
Krunal Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes defaulting of CSI fsType to ext4
Fixing comments in types.go
parent
f7ef7a26
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
11 deletions
+8
-11
types.go
pkg/apis/core/types.go
+1
-1
csi_attacher.go
pkg/volume/csi/csi_attacher.go
+0
-4
csi_mounter.go
pkg/volume/csi/csi_mounter.go
+0
-5
csi_mounter_test.go
pkg/volume/csi/csi_mounter_test.go
+6
-0
types.go
staging/src/k8s.io/api/core/v1/types.go
+1
-1
No files found.
pkg/apis/core/types.go
View file @
0331545c
...
...
@@ -1631,7 +1631,7 @@ type CSIPersistentVolumeSource struct {
// Filesystem type to mount.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs".
Implicitly inferred to be "ext4" if unspecified.
// Ex. "ext4", "xfs", "ntfs".
// +optional
FSType
string
...
...
pkg/volume/csi/csi_attacher.go
View file @
0331545c
...
...
@@ -331,10 +331,6 @@ func (c *csiAttacher) MountDevice(spec *volume.Spec, devicePath string, deviceMo
}
fsType
:=
csiSource
.
FSType
if
len
(
fsType
)
==
0
{
fsType
=
defaultFSType
}
err
=
csi
.
NodeStageVolume
(
ctx
,
csiSource
.
VolumeHandle
,
publishVolumeInfo
,
...
...
pkg/volume/csi/csi_mounter.go
View file @
0331545c
...
...
@@ -34,8 +34,6 @@ import (
"k8s.io/kubernetes/pkg/volume/util"
)
const
defaultFSType
=
"ext4"
//TODO (vladimirvivien) move this in a central loc later
var
(
volDataKey
=
struct
{
...
...
@@ -177,9 +175,6 @@ func (c *csiMountMgr) SetUpAt(dir string, fsGroup *int64) error {
}
fsType
:=
csiSource
.
FSType
if
len
(
fsType
)
==
0
{
fsType
=
defaultFSType
}
err
=
csi
.
NodePublishVolume
(
ctx
,
c
.
volumeID
,
...
...
pkg/volume/csi/csi_mounter_test.go
View file @
0331545c
...
...
@@ -144,6 +144,12 @@ func TestMounterSetUp(t *testing.T) {
if
err
:=
csiMounter
.
SetUp
(
&
fsGroup
);
err
!=
nil
{
t
.
Fatalf
(
"mounter.Setup failed: %v"
,
err
)
}
//Test the default value of file system type is not overridden
if
len
(
csiMounter
.
spec
.
PersistentVolume
.
Spec
.
CSI
.
FSType
)
!=
0
{
t
.
Errorf
(
"default value of file system type was overridden by type %s"
,
csiMounter
.
spec
.
PersistentVolume
.
Spec
.
CSI
.
FSType
)
}
path
:=
csiMounter
.
GetPath
()
if
_
,
err
:=
os
.
Stat
(
path
);
err
!=
nil
{
if
os
.
IsNotExist
(
err
)
{
...
...
staging/src/k8s.io/api/core/v1/types.go
View file @
0331545c
...
...
@@ -1746,7 +1746,7 @@ type CSIPersistentVolumeSource struct {
// Filesystem type to mount.
// Must be a filesystem type supported by the host operating system.
// Ex. "ext4", "xfs", "ntfs".
Implicitly inferred to be "ext4" if unspecified.
// Ex. "ext4", "xfs", "ntfs".
// +optional
FSType
string
`json:"fsType,omitempty" protobuf:"bytes,4,opt,name=fsType"`
...
...
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