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
de00a663
Commit
de00a663
authored
Aug 28, 2018
by
Xing Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify DataSource comments
parent
9c1b29ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
types.go
pkg/apis/core/types.go
+8
-8
types.go
staging/src/k8s.io/api/core/v1/types.go
+8
-8
No files found.
pkg/apis/core/types.go
View file @
de00a663
...
...
@@ -413,14 +413,14 @@ type PersistentVolumeClaimSpec struct {
// This is an alpha feature and may change in the future.
// +optional
VolumeMode
*
PersistentVolumeMode
//
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.
// If the provisioner
failed to create volume from the data source, the behavior will b
e
//
the same as the no data source case. In this failure case, PV will not be created, PVC
//
will be in the pending state, and the controller will keep retrying to create the volume.
//
This requires the VolumeSnapshotDataSource alpha feature gate to be enabled and
//
currently VolumeSnapshot is the only supported data source.
//
In the future, we will allow more data source types when new feature is ready
.
//
This field requires the VolumeSnapshotDataSource alpha feature gate to be
//
enabled and currently VolumeSnapshot is the only supported data
source.
// If the provisioner
can support VolumeSnapshot data source, it will creat
e
//
a new volume and data will be restored to the volume at the same time.
//
If the provisioner does not support VolumeSnapshot data source, volume will
//
not be created and the failure will be reported as an event.
//
In the future, we plan to support more data source types and the behavior
//
of the provisioner may change
.
// +optional
DataSource
*
TypedLocalObjectReference
}
...
...
staging/src/k8s.io/api/core/v1/types.go
View file @
de00a663
...
...
@@ -458,14 +458,14 @@ type PersistentVolumeClaimSpec struct {
// This is an alpha feature and may change in the future.
// +optional
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.
//
This depends on the provisioner for this volume being able to use the specified
source.
// If the provisioner
failed to create volume from the data source, the behavior will b
e
//
the same as the no data source case. In this failure case, PV will not be created, PVC
//
will be in the pending state, and the controller will keep retrying to create the volume.
//
This requires the VolumeSnapshotDataSource alpha feature gate to be enabled and
//
currently VolumeSnapshot is the only supported data source.
//
In the future, we will allow more data source types when new feature is ready
.
//
This field requires the VolumeSnapshotDataSource alpha feature gate to be
//
enabled and currently VolumeSnapshot is the only supported data
source.
// If the provisioner
can support VolumeSnapshot data source, it will creat
e
//
a new volume and data will be restored to the volume at the same time.
//
If the provisioner does not support VolumeSnapshot data source, volume will
//
not be created and the failure will be reported as an event.
//
In the future, we plan to support more data source types and the behavior
//
of the provisioner may change
.
// +optional
DataSource
*
TypedLocalObjectReference
`json:"dataSource" protobuf:"bytes,7,opt,name=dataSource"`
}
...
...
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