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
d338a7ea
Commit
d338a7ea
authored
May 27, 2015
by
markturansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rebased and added 'omitempty' to new volumes
parent
e15fd2b0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
types.go
pkg/api/types.go
+8
-8
types.go
pkg/api/v1/types.go
+2
-2
types.go
pkg/api/v1beta1/types.go
+2
-2
types.go
pkg/api/v1beta2/types.go
+2
-2
types.go
pkg/api/v1beta3/types.go
+2
-2
No files found.
pkg/api/types.go
View file @
d338a7ea
...
@@ -197,7 +197,7 @@ type VolumeSource struct {
...
@@ -197,7 +197,7 @@ type VolumeSource struct {
// Secret represents a secret that should populate this volume.
// Secret represents a secret that should populate this volume.
Secret
*
SecretVolumeSource
`json:"secret,omitempty"`
Secret
*
SecretVolumeSource
`json:"secret,omitempty"`
// NFS represents an NFS mount on the host that shares a pod's lifetime
// NFS represents an NFS mount on the host that shares a pod's lifetime
NFS
*
NFSVolumeSource
`json:"nfs"`
NFS
*
NFSVolumeSource
`json:"nfs
,omitempty
"`
// ISCSIVolumeSource represents an ISCSI Disk resource that is attached to a
// ISCSIVolumeSource represents an ISCSI Disk resource that is attached to a
// kubelet's host machine and then exposed to the pod.
// kubelet's host machine and then exposed to the pod.
ISCSI
*
ISCSIVolumeSource
`json:"iscsi,omitempty"`
ISCSI
*
ISCSIVolumeSource
`json:"iscsi,omitempty"`
...
@@ -214,23 +214,23 @@ type VolumeSource struct {
...
@@ -214,23 +214,23 @@ type VolumeSource struct {
type
PersistentVolumeSource
struct
{
type
PersistentVolumeSource
struct
{
// GCEPersistentDisk represents a GCE Disk resource that is attached to a
// GCEPersistentDisk represents a GCE Disk resource that is attached to a
// kubelet's host machine and then exposed to the pod.
// kubelet's host machine and then exposed to the pod.
GCEPersistentDisk
*
GCEPersistentDiskVolumeSource
`json:"gcePersistentDisk"`
GCEPersistentDisk
*
GCEPersistentDiskVolumeSource
`json:"gcePersistentDisk
,omitempty
"`
// AWSElasticBlockStore represents an AWS EBS disk that is attached to a
// AWSElasticBlockStore represents an AWS EBS disk that is attached to a
// kubelet's host machine and then exposed to the pod.
// kubelet's host machine and then exposed to the pod.
AWSElasticBlockStore
*
AWSElasticBlockStoreVolumeSource
`json:"awsElasticBlockStore"`
AWSElasticBlockStore
*
AWSElasticBlockStoreVolumeSource
`json:"awsElasticBlockStore
,omitempty
"`
// HostPath represents a directory on the host.
// HostPath represents a directory on the host.
// This is useful for development and testing only.
// This is useful for development and testing only.
// on-host storage is not supported in any way
// on-host storage is not supported in any way
HostPath
*
HostPathVolumeSource
`json:"hostPath"`
HostPath
*
HostPathVolumeSource
`json:"hostPath
,omitempty
"`
// Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod
// Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod
Glusterfs
*
GlusterfsVolumeSource
`json:"glusterfs"`
Glusterfs
*
GlusterfsVolumeSource
`json:"glusterfs
,omitempty
"`
// NFS represents an NFS mount on the host that shares a pod's lifetime
// NFS represents an NFS mount on the host that shares a pod's lifetime
NFS
*
NFSVolumeSource
`json:"nfs"`
NFS
*
NFSVolumeSource
`json:"nfs
,omitempty
"`
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime
RBD
*
RBDVolumeSource
`json:"rbd"`
RBD
*
RBDVolumeSource
`json:"rbd
,omitempty
"`
// ISCSIVolumeSource represents an ISCSI resource that is attached to a
// ISCSIVolumeSource represents an ISCSI resource that is attached to a
// kubelet's host machine and then exposed to the pod.
// kubelet's host machine and then exposed to the pod.
ISCSI
*
ISCSIVolumeSource
`json:"iscsi"`
ISCSI
*
ISCSIVolumeSource
`json:"iscsi
,omitempty
"`
}
}
type
PersistentVolumeClaimVolumeSource
struct
{
type
PersistentVolumeClaimVolumeSource
struct
{
...
...
pkg/api/v1/types.go
View file @
d338a7ea
...
@@ -252,10 +252,10 @@ type PersistentVolumeSource struct {
...
@@ -252,10 +252,10 @@ type PersistentVolumeSource struct {
// NFS represents an NFS mount on the host
// NFS represents an NFS mount on the host
NFS
*
NFSVolumeSource
`json:"nfs,omitempty" description:"NFS volume resource provisioned by an admin"`
NFS
*
NFSVolumeSource
`json:"nfs,omitempty" description:"NFS volume resource provisioned by an admin"`
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime
RBD
*
RBDVolumeSource
`json:"rbd" description:"rados block volume that will be mounted on the host machine"`
RBD
*
RBDVolumeSource
`json:"rbd
,omitempty
" description:"rados block volume that will be mounted on the host machine"`
// ISCSI represents an ISCSI Disk resource that is attached to a
// ISCSI represents an ISCSI Disk resource that is attached to a
// kubelet's host machine and then exposed to the pod.
// kubelet's host machine and then exposed to the pod.
ISCSI
*
ISCSIVolumeSource
`json:"iscsi" description:"an iSCSI disk resource provisioned by an admin"`
ISCSI
*
ISCSIVolumeSource
`json:"iscsi
,omitempty
" description:"an iSCSI disk resource provisioned by an admin"`
}
}
type
PersistentVolume
struct
{
type
PersistentVolume
struct
{
...
...
pkg/api/v1beta1/types.go
View file @
d338a7ea
...
@@ -155,10 +155,10 @@ type PersistentVolumeSource struct {
...
@@ -155,10 +155,10 @@ type PersistentVolumeSource struct {
// NFS represents an NFS mount on the host
// NFS represents an NFS mount on the host
NFS
*
NFSVolumeSource
`json:"nfs,omitempty" description:"NFS volume resource provisioned by an admin"`
NFS
*
NFSVolumeSource
`json:"nfs,omitempty" description:"NFS volume resource provisioned by an admin"`
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime
RBD
*
RBDVolumeSource
`json:"rbd" description:"rados block volume that will be mounted on the host machine"`
RBD
*
RBDVolumeSource
`json:"rbd
,omitempty
" description:"rados block volume that will be mounted on the host machine"`
// ISCSI represents an ISCSI Disk resource that is attached to a
// ISCSI represents an ISCSI Disk resource that is attached to a
// kubelet's host machine and then exposed to the pod.
// kubelet's host machine and then exposed to the pod.
ISCSI
*
ISCSIVolumeSource
`json:"iscsi" description:"an iSCSI disk resource provisioned by an admin"`
ISCSI
*
ISCSIVolumeSource
`json:"iscsi
,omitempty
" description:"an iSCSI disk resource provisioned by an admin"`
}
}
type
PersistentVolumeClaimVolumeSource
struct
{
type
PersistentVolumeClaimVolumeSource
struct
{
...
...
pkg/api/v1beta2/types.go
View file @
d338a7ea
...
@@ -110,10 +110,10 @@ type PersistentVolumeSource struct {
...
@@ -110,10 +110,10 @@ type PersistentVolumeSource struct {
// NFS represents an NFS mount on the host
// NFS represents an NFS mount on the host
NFS
*
NFSVolumeSource
`json:"nfs,omitempty" description:"NFS volume resource provisioned by an admin"`
NFS
*
NFSVolumeSource
`json:"nfs,omitempty" description:"NFS volume resource provisioned by an admin"`
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime
RBD
*
RBDVolumeSource
`json:"rbd" description:"rados block volume that will be mounted on the host machine"`
RBD
*
RBDVolumeSource
`json:"rbd
,omitempty
" description:"rados block volume that will be mounted on the host machine"`
// ISCSI represents an ISCSI Disk resource that is attached to a
// ISCSI represents an ISCSI Disk resource that is attached to a
// kubelet's host machine and then exposed to the pod.
// kubelet's host machine and then exposed to the pod.
ISCSI
*
ISCSIVolumeSource
`json:"iscsi" description:"an iSCSI disk resource provisioned by an admin"`
ISCSI
*
ISCSIVolumeSource
`json:"iscsi
,omitempty
" description:"an iSCSI disk resource provisioned by an admin"`
}
}
type
PersistentVolumeClaimVolumeSource
struct
{
type
PersistentVolumeClaimVolumeSource
struct
{
...
...
pkg/api/v1beta3/types.go
View file @
d338a7ea
...
@@ -252,10 +252,10 @@ type PersistentVolumeSource struct {
...
@@ -252,10 +252,10 @@ type PersistentVolumeSource struct {
// NFS represents an NFS mount on the host
// NFS represents an NFS mount on the host
NFS
*
NFSVolumeSource
`json:"nfs,omitempty" description:"NFS volume resource provisioned by an admin"`
NFS
*
NFSVolumeSource
`json:"nfs,omitempty" description:"NFS volume resource provisioned by an admin"`
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime
RBD
*
RBDVolumeSource
`json:"rbd" description:"rados block volume that will be mounted on the host machine"`
RBD
*
RBDVolumeSource
`json:"rbd
,omitempty
" description:"rados block volume that will be mounted on the host machine"`
// ISCSI represents an ISCSI Disk resource that is attached to a
// ISCSI represents an ISCSI Disk resource that is attached to a
// kubelet's host machine and then exposed to the pod.
// kubelet's host machine and then exposed to the pod.
ISCSI
*
ISCSIVolumeSource
`json:"iscsi" description:"an iSCSI disk resource provisioned by an admin"`
ISCSI
*
ISCSIVolumeSource
`json:"iscsi
,omitempty
" description:"an iSCSI disk resource provisioned by an admin"`
}
}
type
PersistentVolume
struct
{
type
PersistentVolume
struct
{
...
...
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