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
42fe6010
Commit
42fe6010
authored
Mar 06, 2017
by
Klaus Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated auto generated codes.
parent
3a1db2f7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
28 deletions
+28
-28
types.go
pkg/api/v1/types.go
+9
-9
types.go
pkg/apis/storage/v1/types.go
+5
-5
types.go
staging/src/k8s.io/client-go/pkg/api/v1/types.go
+9
-9
types.go
staging/src/k8s.io/client-go/pkg/apis/storage/v1/types.go
+5
-5
No files found.
pkg/api/v1/types.go
View file @
42fe6010
...
@@ -327,7 +327,7 @@ type VolumeSource struct {
...
@@ -327,7 +327,7 @@ type VolumeSource struct {
// PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
// PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
PhotonPersistentDisk
*
PhotonPersistentDiskVolumeSource
`json:"photonPersistentDisk,omitempty" protobuf:"bytes,23,opt,name=photonPersistentDisk"`
PhotonPersistentDisk
*
PhotonPersistentDiskVolumeSource
`json:"photonPersistentDisk,omitempty" protobuf:"bytes,23,opt,name=photonPersistentDisk"`
// Items for all in one resources secrets, configmaps, and downward API
// Items for all in one resources secrets, configmaps, and downward API
Projected
*
ProjectedVolumeSource
`json:"projected,omitempty"`
Projected
*
ProjectedVolumeSource
`json:"projected,omitempty"
protobuf:"bytes,26,opt,name=projected"
`
// PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
// PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
// +optional
// +optional
PortworxVolume
*
PortworxVolumeSource
`json:"portworxVolume,omitempty" protobuf:"bytes,24,opt,name=portworxVolume"`
PortworxVolume
*
PortworxVolumeSource
`json:"portworxVolume,omitempty" protobuf:"bytes,24,opt,name=portworxVolume"`
...
@@ -492,7 +492,7 @@ type PersistentVolumeSpec struct {
...
@@ -492,7 +492,7 @@ type PersistentVolumeSpec struct {
// Name of StorageClass to which this persistent volume belongs. Empty value
// Name of StorageClass to which this persistent volume belongs. Empty value
// means that this volume does not belong to any StorageClass.
// means that this volume does not belong to any StorageClass.
// +optional
// +optional
StorageClassName
string
`json:"storageClassName,omitempty"`
StorageClassName
string
`json:"storageClassName,omitempty"
protobuf:"bytes,6,opt,name=storageClassName"
`
}
}
// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes.
// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes.
...
@@ -591,7 +591,7 @@ type PersistentVolumeClaimSpec struct {
...
@@ -591,7 +591,7 @@ type PersistentVolumeClaimSpec struct {
// Name of the StorageClass required by the claim.
// Name of the StorageClass required by the claim.
// More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1
// More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1
// +optional
// +optional
StorageClassName
*
string
`json:"storageClassName,omitempty"`
StorageClassName
*
string
`json:"storageClassName,omitempty"
protobuf:"bytes,5,opt,name=storageClassName"
`
}
}
// PersistentVolumeClaimStatus is the current status of a persistent volume claim.
// PersistentVolumeClaimStatus is the current status of a persistent volume claim.
...
@@ -1238,14 +1238,14 @@ type ConfigMapProjection struct {
...
@@ -1238,14 +1238,14 @@ type ConfigMapProjection struct {
// Represents a projected volume source
// Represents a projected volume source
type
ProjectedVolumeSource
struct
{
type
ProjectedVolumeSource
struct
{
// list of volume projections
// list of volume projections
Sources
[]
VolumeProjection
`json:"sources"`
Sources
[]
VolumeProjection
`json:"sources"
protobuf:"bytes,1,rep,name=sources"
`
// Mode bits to use on created files by default. Must be a value between
// Mode bits to use on created files by default. Must be a value between
// 0 and 0777.
// 0 and 0777.
// Directories within the path are not affected by this setting.
// Directories within the path are not affected by this setting.
// This might be in conflict with other options that affect the file
// This might be in conflict with other options that affect the file
// mode, like fsGroup, and the result can be other mode bits set.
// mode, like fsGroup, and the result can be other mode bits set.
// +optional
// +optional
DefaultMode
*
int32
`json:"defaultMode,omitempty"`
DefaultMode
*
int32
`json:"defaultMode,omitempty"
protobuf:"varint,2,opt,name=defaultMode"
`
}
}
// Projection that may be projected along with other supported volume types
// Projection that may be projected along with other supported volume types
...
@@ -1253,11 +1253,11 @@ type VolumeProjection struct {
...
@@ -1253,11 +1253,11 @@ type VolumeProjection struct {
// all types below are the supported types for projection into the same volume
// all types below are the supported types for projection into the same volume
// information about the secret data to project
// information about the secret data to project
Secret
*
SecretProjection
`json:"secret,omitempty"`
Secret
*
SecretProjection
`json:"secret,omitempty"
protobuf:"bytes,1,opt,name=secret"
`
// information about the downwardAPI data to project
// information about the downwardAPI data to project
DownwardAPI
*
DownwardAPIProjection
`json:"downwardAPI,omitempty"`
DownwardAPI
*
DownwardAPIProjection
`json:"downwardAPI,omitempty"
protobuf:"bytes,2,opt,name=downwardAPI"
`
// information about the configMap data to project
// information about the configMap data to project
ConfigMap
*
ConfigMapProjection
`json:"configMap,omitempty"`
ConfigMap
*
ConfigMapProjection
`json:"configMap,omitempty"
protobuf:"bytes,3,opt,name=configMap"
`
}
}
const
(
const
(
...
@@ -3533,7 +3533,7 @@ type DeleteOptions struct {
...
@@ -3533,7 +3533,7 @@ type DeleteOptions struct {
// Defaults to Default.
// Defaults to Default.
// Either this field or OrphanDependents may be set, but not both.
// Either this field or OrphanDependents may be set, but not both.
// +optional
// +optional
PropagationPolicy
*
DeletionPropagation
PropagationPolicy
*
DeletionPropagation
`protobuf:"bytes,4,opt,name=propagationPolicy,casttype=DeletionPropagation"`
}
}
// ListOptions is the query options to a standard REST list call.
// ListOptions is the query options to a standard REST list call.
...
...
pkg/apis/storage/v1/types.go
View file @
42fe6010
...
@@ -33,15 +33,15 @@ type StorageClass struct {
...
@@ -33,15 +33,15 @@ type StorageClass struct {
// Standard object's metadata.
// Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional
// +optional
metav1
.
ObjectMeta
`json:"metadata,omitempty"`
metav1
.
ObjectMeta
`json:"metadata,omitempty"
protobuf:"bytes,1,opt,name=metadata"
`
// Provisioner indicates the type of the provisioner.
// Provisioner indicates the type of the provisioner.
Provisioner
string
`json:"provisioner"`
Provisioner
string
`json:"provisioner"
protobuf:"bytes,2,opt,name=provisioner"
`
// Parameters holds the parameters for the provisioner that should
// Parameters holds the parameters for the provisioner that should
// create volumes of this storage class.
// create volumes of this storage class.
// +optional
// +optional
Parameters
map
[
string
]
string
`json:"parameters,omitempty"`
Parameters
map
[
string
]
string
`json:"parameters,omitempty"
protobuf:"bytes,3,rep,name=parameters"
`
}
}
// StorageClassList is a collection of storage classes.
// StorageClassList is a collection of storage classes.
...
@@ -50,8 +50,8 @@ type StorageClassList struct {
...
@@ -50,8 +50,8 @@ type StorageClassList struct {
// Standard list metadata
// Standard list metadata
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional
// +optional
metav1
.
ListMeta
`json:"metadata,omitempty"`
metav1
.
ListMeta
`json:"metadata,omitempty"
protobuf:"bytes,1,opt,name=metadata"
`
// Items is the list of StorageClasses
// Items is the list of StorageClasses
Items
[]
StorageClass
`json:"items"`
Items
[]
StorageClass
`json:"items"
protobuf:"bytes,2,rep,name=items"
`
}
}
staging/src/k8s.io/client-go/pkg/api/v1/types.go
View file @
42fe6010
...
@@ -327,7 +327,7 @@ type VolumeSource struct {
...
@@ -327,7 +327,7 @@ type VolumeSource struct {
// PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
// PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
PhotonPersistentDisk
*
PhotonPersistentDiskVolumeSource
`json:"photonPersistentDisk,omitempty" protobuf:"bytes,23,opt,name=photonPersistentDisk"`
PhotonPersistentDisk
*
PhotonPersistentDiskVolumeSource
`json:"photonPersistentDisk,omitempty" protobuf:"bytes,23,opt,name=photonPersistentDisk"`
// Items for all in one resources secrets, configmaps, and downward API
// Items for all in one resources secrets, configmaps, and downward API
Projected
*
ProjectedVolumeSource
`json:"projected,omitempty"`
Projected
*
ProjectedVolumeSource
`json:"projected,omitempty"
protobuf:"bytes,26,opt,name=projected"
`
// PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
// PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
// +optional
// +optional
PortworxVolume
*
PortworxVolumeSource
`json:"portworxVolume,omitempty" protobuf:"bytes,24,opt,name=portworxVolume"`
PortworxVolume
*
PortworxVolumeSource
`json:"portworxVolume,omitempty" protobuf:"bytes,24,opt,name=portworxVolume"`
...
@@ -492,7 +492,7 @@ type PersistentVolumeSpec struct {
...
@@ -492,7 +492,7 @@ type PersistentVolumeSpec struct {
// Name of StorageClass to which this persistent volume belongs. Empty value
// Name of StorageClass to which this persistent volume belongs. Empty value
// means that this volume does not belong to any StorageClass.
// means that this volume does not belong to any StorageClass.
// +optional
// +optional
StorageClassName
string
`json:"storageClassName,omitempty"`
StorageClassName
string
`json:"storageClassName,omitempty"
protobuf:"bytes,6,opt,name=storageClassName"
`
}
}
// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes.
// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes.
...
@@ -591,7 +591,7 @@ type PersistentVolumeClaimSpec struct {
...
@@ -591,7 +591,7 @@ type PersistentVolumeClaimSpec struct {
// Name of the StorageClass required by the claim.
// Name of the StorageClass required by the claim.
// More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1
// More info: http://kubernetes.io/docs/user-guide/persistent-volumes#class-1
// +optional
// +optional
StorageClassName
*
string
`json:"storageClassName,omitempty"`
StorageClassName
*
string
`json:"storageClassName,omitempty"
protobuf:"bytes,5,opt,name=storageClassName"
`
}
}
// PersistentVolumeClaimStatus is the current status of a persistent volume claim.
// PersistentVolumeClaimStatus is the current status of a persistent volume claim.
...
@@ -1238,14 +1238,14 @@ type ConfigMapProjection struct {
...
@@ -1238,14 +1238,14 @@ type ConfigMapProjection struct {
// Represents a projected volume source
// Represents a projected volume source
type
ProjectedVolumeSource
struct
{
type
ProjectedVolumeSource
struct
{
// list of volume projections
// list of volume projections
Sources
[]
VolumeProjection
`json:"sources"`
Sources
[]
VolumeProjection
`json:"sources"
protobuf:"bytes,1,rep,name=sources"
`
// Mode bits to use on created files by default. Must be a value between
// Mode bits to use on created files by default. Must be a value between
// 0 and 0777.
// 0 and 0777.
// Directories within the path are not affected by this setting.
// Directories within the path are not affected by this setting.
// This might be in conflict with other options that affect the file
// This might be in conflict with other options that affect the file
// mode, like fsGroup, and the result can be other mode bits set.
// mode, like fsGroup, and the result can be other mode bits set.
// +optional
// +optional
DefaultMode
*
int32
`json:"defaultMode,omitempty"`
DefaultMode
*
int32
`json:"defaultMode,omitempty"
protobuf:"varint,2,opt,name=defaultMode"
`
}
}
// Projection that may be projected along with other supported volume types
// Projection that may be projected along with other supported volume types
...
@@ -1253,11 +1253,11 @@ type VolumeProjection struct {
...
@@ -1253,11 +1253,11 @@ type VolumeProjection struct {
// all types below are the supported types for projection into the same volume
// all types below are the supported types for projection into the same volume
// information about the secret data to project
// information about the secret data to project
Secret
*
SecretProjection
`json:"secret,omitempty"`
Secret
*
SecretProjection
`json:"secret,omitempty"
protobuf:"bytes,1,opt,name=secret"
`
// information about the downwardAPI data to project
// information about the downwardAPI data to project
DownwardAPI
*
DownwardAPIProjection
`json:"downwardAPI,omitempty"`
DownwardAPI
*
DownwardAPIProjection
`json:"downwardAPI,omitempty"
protobuf:"bytes,2,opt,name=downwardAPI"
`
// information about the configMap data to project
// information about the configMap data to project
ConfigMap
*
ConfigMapProjection
`json:"configMap,omitempty"`
ConfigMap
*
ConfigMapProjection
`json:"configMap,omitempty"
protobuf:"bytes,3,opt,name=configMap"
`
}
}
const
(
const
(
...
@@ -3533,7 +3533,7 @@ type DeleteOptions struct {
...
@@ -3533,7 +3533,7 @@ type DeleteOptions struct {
// Defaults to Default.
// Defaults to Default.
// Either this field or OrphanDependents may be set, but not both.
// Either this field or OrphanDependents may be set, but not both.
// +optional
// +optional
PropagationPolicy
*
DeletionPropagation
PropagationPolicy
*
DeletionPropagation
`protobuf:"bytes,4,opt,name=propagationPolicy,casttype=DeletionPropagation"`
}
}
// ListOptions is the query options to a standard REST list call.
// ListOptions is the query options to a standard REST list call.
...
...
staging/src/k8s.io/client-go/pkg/apis/storage/v1/types.go
View file @
42fe6010
...
@@ -33,15 +33,15 @@ type StorageClass struct {
...
@@ -33,15 +33,15 @@ type StorageClass struct {
// Standard object's metadata.
// Standard object's metadata.
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional
// +optional
metav1
.
ObjectMeta
`json:"metadata,omitempty"`
metav1
.
ObjectMeta
`json:"metadata,omitempty"
protobuf:"bytes,1,opt,name=metadata"
`
// Provisioner indicates the type of the provisioner.
// Provisioner indicates the type of the provisioner.
Provisioner
string
`json:"provisioner"`
Provisioner
string
`json:"provisioner"
protobuf:"bytes,2,opt,name=provisioner"
`
// Parameters holds the parameters for the provisioner that should
// Parameters holds the parameters for the provisioner that should
// create volumes of this storage class.
// create volumes of this storage class.
// +optional
// +optional
Parameters
map
[
string
]
string
`json:"parameters,omitempty"`
Parameters
map
[
string
]
string
`json:"parameters,omitempty"
protobuf:"bytes,3,rep,name=parameters"
`
}
}
// StorageClassList is a collection of storage classes.
// StorageClassList is a collection of storage classes.
...
@@ -50,8 +50,8 @@ type StorageClassList struct {
...
@@ -50,8 +50,8 @@ type StorageClassList struct {
// Standard list metadata
// Standard list metadata
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
// +optional
// +optional
metav1
.
ListMeta
`json:"metadata,omitempty"`
metav1
.
ListMeta
`json:"metadata,omitempty"
protobuf:"bytes,1,opt,name=metadata"
`
// Items is the list of StorageClasses
// Items is the list of StorageClasses
Items
[]
StorageClass
`json:"items"`
Items
[]
StorageClass
`json:"items"
protobuf:"bytes,2,rep,name=items"
`
}
}
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