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
caa09afc
Commit
caa09afc
authored
Jun 10, 2016
by
Jan Safranek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update PVC.Selector docs: it's ignored when VolumeName is set
parent
1f18eee3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
types.go
pkg/api/types.go
+6
-2
No files found.
pkg/api/types.go
View file @
caa09afc
...
@@ -306,6 +306,8 @@ type PersistentVolumeSpec struct {
...
@@ -306,6 +306,8 @@ type PersistentVolumeSpec struct {
// ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
// ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
// ClaimRef is expected to be non-nil when bound.
// ClaimRef is expected to be non-nil when bound.
// claim.VolumeName is the authoritative bind between PV and PVC.
// claim.VolumeName is the authoritative bind between PV and PVC.
// When set to non-nil value, PVC.Spec.Selector of the referenced PVC is
// ignored, i.e. labels of this PV do not need to match PVC selector.
ClaimRef
*
ObjectReference
`json:"claimRef,omitempty"`
ClaimRef
*
ObjectReference
`json:"claimRef,omitempty"`
// Optional: what happens to a persistent volume when released from its claim.
// Optional: what happens to a persistent volume when released from its claim.
PersistentVolumeReclaimPolicy
PersistentVolumeReclaimPolicy
`json:"persistentVolumeReclaimPolicy,omitempty"`
PersistentVolumeReclaimPolicy
PersistentVolumeReclaimPolicy
`json:"persistentVolumeReclaimPolicy,omitempty"`
...
@@ -366,11 +368,13 @@ type PersistentVolumeClaimList struct {
...
@@ -366,11 +368,13 @@ type PersistentVolumeClaimList struct {
type
PersistentVolumeClaimSpec
struct
{
type
PersistentVolumeClaimSpec
struct
{
// Contains the types of access modes required
// Contains the types of access modes required
AccessModes
[]
PersistentVolumeAccessMode
`json:"accessModes,omitempty"`
AccessModes
[]
PersistentVolumeAccessMode
`json:"accessModes,omitempty"`
// A label query over volumes to consider for binding
// A label query over volumes to consider for binding. This selector is
// ignored when VolumeName is set
Selector
*
unversioned
.
LabelSelector
`json:"selector,omitempty"`
Selector
*
unversioned
.
LabelSelector
`json:"selector,omitempty"`
// Resources represents the minimum resources required
// Resources represents the minimum resources required
Resources
ResourceRequirements
`json:"resources,omitempty"`
Resources
ResourceRequirements
`json:"resources,omitempty"`
// VolumeName is the binding reference to the PersistentVolume backing this claim
// VolumeName is the binding reference to the PersistentVolume backing this
// claim. When set to non-empty value Selector is not evaluated
VolumeName
string
`json:"volumeName,omitempty"`
VolumeName
string
`json:"volumeName,omitempty"`
}
}
...
...
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