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
cbbcac47
Commit
cbbcac47
authored
Oct 05, 2018
by
Darren Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove VolumeSubpathEnvExpansion
parent
3fe2418b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
18 deletions
+0
-18
kube_features.go
pkg/features/kube_features.go
+0
-8
helpers.go
pkg/kubelet/container/helpers.go
+0
-5
kubelet_pods.go
pkg/kubelet/kubelet_pods.go
+0
-5
No files found.
pkg/features/kube_features.go
View file @
cbbcac47
...
...
@@ -237,13 +237,6 @@ const (
// Support Pod Ready++
PodReadinessGates
utilfeature
.
Feature
=
"PodReadinessGates"
// owner: @kevtaylor
// alpha: v1.11
//
// Allow subpath environment variable substitution
// Only applicable if the VolumeSubpath feature is also enabled
VolumeSubpathEnvExpansion
utilfeature
.
Feature
=
"VolumeSubpathEnvExpansion"
// owner: @vikaschoudhary16
// GA: v1.13
//
...
...
@@ -342,7 +335,6 @@ var defaultKubernetesFeatureGates = map[utilfeature.Feature]utilfeature.FeatureS
RunAsGroup
:
{
Default
:
true
,
PreRelease
:
utilfeature
.
Beta
},
VolumeSubpath
:
{
Default
:
true
,
PreRelease
:
utilfeature
.
GA
},
PodReadinessGates
:
{
Default
:
true
,
PreRelease
:
utilfeature
.
Beta
},
VolumeSubpathEnvExpansion
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alpha
},
KubeletPluginsWatcher
:
{
Default
:
true
,
PreRelease
:
utilfeature
.
GA
},
ResourceQuotaScopeSelectors
:
{
Default
:
true
,
PreRelease
:
utilfeature
.
Beta
},
CSIBlockVolume
:
{
Default
:
false
,
PreRelease
:
utilfeature
.
Alpha
},
...
...
pkg/kubelet/container/helpers.go
View file @
cbbcac47
...
...
@@ -130,11 +130,6 @@ func ExpandContainerCommandOnlyStatic(containerCommand []string, envs []v1.EnvVa
return
command
}
func
ExpandContainerVolumeMounts
(
mount
v1
.
VolumeMount
,
envs
[]
EnvVar
)
(
expandedSubpath
string
)
{
mapping
:=
expansion
.
MappingFuncFor
(
EnvVarsToMap
(
envs
))
return
expansion
.
Expand
(
mount
.
SubPath
,
mapping
)
}
func
ExpandContainerCommandAndArgs
(
container
*
v1
.
Container
,
envs
[]
EnvVar
)
(
command
[]
string
,
args
[]
string
)
{
mapping
:=
expansion
.
MappingFuncFor
(
EnvVarsToMap
(
envs
))
...
...
pkg/kubelet/kubelet_pods.go
View file @
cbbcac47
...
...
@@ -164,11 +164,6 @@ func makeMounts(pod *v1.Pod, podDir string, container *v1.Container, hostName, h
return
nil
,
cleanupAction
,
fmt
.
Errorf
(
"volume subpaths are disabled"
)
}
// Expand subpath variables
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
VolumeSubpathEnvExpansion
)
{
mount
.
SubPath
=
kubecontainer
.
ExpandContainerVolumeMounts
(
mount
,
expandEnvs
)
}
if
filepath
.
IsAbs
(
mount
.
SubPath
)
{
return
nil
,
cleanupAction
,
fmt
.
Errorf
(
"error SubPath `%s` must not be an absolute path"
,
mount
.
SubPath
)
}
...
...
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