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
2e4f6eca
Commit
2e4f6eca
authored
Aug 27, 2018
by
Xing Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify comments for DataSource
parent
46fdfeb4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
types.go
pkg/apis/core/types.go
+3
-1
types.go
staging/src/k8s.io/api/core/v1/types.go
+3
-1
No files found.
pkg/apis/core/types.go
View file @
2e4f6eca
...
@@ -415,7 +415,9 @@ type PersistentVolumeClaimSpec struct {
...
@@ -415,7 +415,9 @@ type PersistentVolumeClaimSpec struct {
VolumeMode
*
PersistentVolumeMode
VolumeMode
*
PersistentVolumeMode
// If specified, volume will be prepopulated with data from the specified data source.
// If specified, volume will be prepopulated with data from the specified data source.
// This depends on the provisioner for this volume being able to use the specified source.
// This depends on the provisioner for this volume being able to use the specified source.
// If the provisioner does not support it, it will create an empty volume.
// If the provisioner failed to populate the volume with the source, it will return an
// error and fail the create volume operation. If the provisioner does not support the
// data source, it will also return an error and fail the create volume operation.
// It requires the VolumeSnapshotDataSource alpha feature gate to be enabled and
// It requires the VolumeSnapshotDataSource alpha feature gate to be enabled and
// currently VolumeSnapshot is the only supported data source.
// currently VolumeSnapshot is the only supported data source.
// In the future, we will allow more data source types when new feature is ready.
// In the future, we will allow more data source types when new feature is ready.
...
...
staging/src/k8s.io/api/core/v1/types.go
View file @
2e4f6eca
...
@@ -460,7 +460,9 @@ type PersistentVolumeClaimSpec struct {
...
@@ -460,7 +460,9 @@ type PersistentVolumeClaimSpec struct {
VolumeMode
*
PersistentVolumeMode
`json:"volumeMode,omitempty" protobuf:"bytes,6,opt,name=volumeMode,casttype=PersistentVolumeMode"`
VolumeMode
*
PersistentVolumeMode
`json:"volumeMode,omitempty" protobuf:"bytes,6,opt,name=volumeMode,casttype=PersistentVolumeMode"`
// If specified, volume will be prepopulated with data from the specified data source.
// If specified, volume will be prepopulated with data from the specified data source.
// This depends on the provisioner for this volume being able to use the specified source.
// This depends on the provisioner for this volume being able to use the specified source.
// If the provisioner does not support it, it will create an empty volume.
// If the provisioner failed to populate the volume with the source, it will return an
// error and fail the create volume operation. If the provisioner does not support the
// data source, it will also return an error and fail the create volume operation.
// It requires the VolumeSnapshotDataSource alpha feature gate to be enabled and
// It requires the VolumeSnapshotDataSource alpha feature gate to be enabled and
// currently VolumeSnapshot is the only supported data source.
// currently VolumeSnapshot is the only supported data source.
// In the future, we will allow more data source types when new feature is ready.
// In the future, we will allow more data source types when new feature is ready.
...
...
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