Update data-source.md

This commit is contained in:
Jing Xu 2018-08-20 11:06:07 -07:00 committed by GitHub
parent 29c02bc1d6
commit bac19f0b0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ type PersistentVolumeClaimSpec struct {
type PersistentVolumeSpec struct {
// If specified, volume was pre-populated with data from the specified data source.
// +optional
DataSource *ypedLocalObjectReference `json:"dataSourceRef" protobuf:"bytes,2,opt,name=dataSourceRef"`
DataSource *TypedLocalObjectReference `json:"dataSourceRef" protobuf:"bytes,2,opt,name=dataSourceRef"`
}
// TypedLocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
@ -43,7 +43,7 @@ apiVersion: snapshot.storage.k8s.io/v1alpha1
kind: VolumeSnapshot
metadata:
name: snapshot-pd-1
namespace: myns
namespace: mynamespace
spec:
source:
kind: PersistentVolumeClaim
@ -58,7 +58,7 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: snapshot-pvc
Namespace: myns
Namespace: mynamespace
spec:
accessModes:
- ReadWriteOnce
@ -78,7 +78,7 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: clone-pvc
Namespace: myns
Namespace: mynamespace
spec:
accessModes:
- ReadWriteOnce
@ -98,7 +98,7 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: clone-pvc
Namespace: myns
Namespace: mynamespace
spec:
accessModes:
- ReadWriteOnce