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
3090b634
Commit
3090b634
authored
Feb 07, 2019
by
adisky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CSI Migration feature flags for Cinder In tree Driver
parent
f5574bf6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
kube_features.go
pkg/features/kube_features.go
+7
-0
cinder.go
pkg/volume/cinder/cinder.go
+2
-1
No files found.
pkg/features/kube_features.go
View file @
3090b634
...
...
@@ -412,6 +412,12 @@ const (
//
// Enables GMSA support for Windows workloads.
WindowsGMSA
utilfeature
.
Feature
=
"WindowsGMSA"
// owner: @adisky
// alpha: v1.14
//
// Enables the OpenStack Cinder in-tree driver to OpenStack Cinder CSI Driver migration feature.
CSIMigrationOpenStack
utilfeature
.
Feature
=
"CSIMigrationOpenStack"
)
func
init
()
{
...
...
@@ -468,6 +474,7 @@ var defaultKubernetesFeatureGates = map[utilfeature.Feature]utilfeature.FeatureS
CSIMigrationGCE
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alpha
},
CSIMigrationAWS
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alpha
},
RunAsGroup
:
{
Default
:
true
,
PreRelease
:
utilfeature
.
Beta
},
CSIMigrationOpenStack
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alpha
},
VolumeSubpath
:
{
Default
:
true
,
PreRelease
:
utilfeature
.
GA
},
BalanceAttachedNodeVolumes
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alpha
},
PodReadinessGates
:
{
Default
:
true
,
PreRelease
:
utilfeature
.
Beta
},
...
...
pkg/volume/cinder/cinder.go
View file @
3090b634
...
...
@@ -109,7 +109,8 @@ func (plugin *cinderPlugin) CanSupport(spec *volume.Spec) bool {
}
func
(
plugin
*
cinderPlugin
)
IsMigratedToCSI
()
bool
{
return
false
return
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
CSIMigration
)
&&
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
CSIMigrationOpenStack
)
}
func
(
plugin
*
cinderPlugin
)
RequiresRemount
()
bool
{
...
...
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