Add TypedLocalObjectReference and DataSource

This PR adds TypedLocalObjectReference in the core API and adds
DataSource in PersistentVolumeClaimSpec.
This commit is contained in:
xing-yang
2018-08-04 13:44:58 -07:00
committed by Xing Yang
parent d46d67159f
commit e4c82b3d7b
2 changed files with 29 additions and 0 deletions

View File

@@ -413,6 +413,9 @@ 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 DataSource.
// +optional
DataSource *TypedLocalObjectReference
}
type PersistentVolumeClaimConditionType string
@@ -3960,6 +3963,16 @@ type LocalObjectReference struct {
Name string
}
// TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
type TypedLocalObjectReference struct {
// Name of the referent.
// +optional
Name string
// Kind of the referent.
// +optional
Kind string
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type SerializedReference struct {