Skip to content

Commit

Permalink
Rename the JSON for GCEPersistentDisk in internal
Browse files Browse the repository at this point in the history
I know the internal JSO tags are slated for death.  Until then, make them
correct.  Also fix some examples of v1b3 conversions that did not rename the
JSON field.
  • Loading branch information
thockin committed Mar 23, 2015
1 parent df67250 commit 7ce59d9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/gce-pd/v1beta3/testpd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
mountPath: /testpd
volumes:
- name: testpd
persistentDisk:
gcePersistentDisk:
# This GCE PD must already exist.
pdName: %insert_pd_name_here%
fsType: ext4
2 changes: 1 addition & 1 deletion examples/mysql-wordpress-pd/v1beta3/mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
mountPath: /var/lib/mysql
volumes:
- name: mysql-persistent-storage
persistentDisk:
gcePersistentDisk:
# This GCE PD must already exist.
pdName: mysql-disk
fsType: ext4
Expand Down
2 changes: 1 addition & 1 deletion examples/mysql-wordpress-pd/v1beta3/wordpress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
mountPath: /var/www/html
volumes:
- name: wordpress-persistent-storage
persistentDisk:
gcePersistentDisk:
# This GCE PD must already exist.
pdName: wordpress-disk
fsType: ext4
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ type VolumeSource struct {
EmptyDir *EmptyDirVolumeSource `json:"emptyDir"`
// GCEPersistentDisk represents a GCE Disk resource that is attached to a
// kubelet's host machine and then exposed to the pod.
GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"persistentDisk"`
GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk"`
// GitRepo represents a git repository at a particular revision.
GitRepo *GitRepoVolumeSource `json:"gitRepo"`
// Secret represents a secret that should populate this volume.
Expand Down

0 comments on commit 7ce59d9

Please sign in to comment.