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
edd30fdd
Commit
edd30fdd
authored
Jun 22, 2017
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run fix-casttype.sh
parent
cde47729
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
types.go
staging/src/k8s.io/api/apps/v1beta1/types.go
+1
-1
types.go
staging/src/k8s.io/api/batch/v1/types.go
+1
-1
types.go
staging/src/k8s.io/api/extensions/v1beta1/types.go
+6
-6
types.go
staging/src/k8s.io/api/networking/v1/types.go
+1
-1
types.go
...ing/src/k8s.io/metrics/pkg/apis/metrics/v1alpha1/types.go
+2
-2
No files found.
staging/src/k8s.io/api/apps/v1beta1/types.go
View file @
edd30fdd
...
@@ -456,7 +456,7 @@ type DeploymentCondition struct {
...
@@ -456,7 +456,7 @@ type DeploymentCondition struct {
// Type of deployment condition.
// Type of deployment condition.
Type
DeploymentConditionType
`json:"type" protobuf:"bytes,1,opt,name=type,casttype=DeploymentConditionType"`
Type
DeploymentConditionType
`json:"type" protobuf:"bytes,1,opt,name=type,casttype=DeploymentConditionType"`
// Status of the condition, one of True, False, Unknown.
// Status of the condition, one of True, False, Unknown.
Status
v1
.
ConditionStatus
`json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/
kubernetes/pkg/api
/v1.ConditionStatus"`
Status
v1
.
ConditionStatus
`json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/
api/core
/v1.ConditionStatus"`
// The last time this condition was updated.
// The last time this condition was updated.
LastUpdateTime
metav1
.
Time
`json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"`
LastUpdateTime
metav1
.
Time
`json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"`
// Last time the condition transitioned from one status to another.
// Last time the condition transitioned from one status to another.
...
...
staging/src/k8s.io/api/batch/v1/types.go
View file @
edd30fdd
...
@@ -152,7 +152,7 @@ type JobCondition struct {
...
@@ -152,7 +152,7 @@ type JobCondition struct {
// Type of job condition, Complete or Failed.
// Type of job condition, Complete or Failed.
Type
JobConditionType
`json:"type" protobuf:"bytes,1,opt,name=type,casttype=JobConditionType"`
Type
JobConditionType
`json:"type" protobuf:"bytes,1,opt,name=type,casttype=JobConditionType"`
// Status of the condition, one of True, False, Unknown.
// Status of the condition, one of True, False, Unknown.
Status
v1
.
ConditionStatus
`json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/
kubernetes/pkg/api
/v1.ConditionStatus"`
Status
v1
.
ConditionStatus
`json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/
api/core
/v1.ConditionStatus"`
// Last time the condition was checked.
// Last time the condition was checked.
// +optional
// +optional
LastProbeTime
metav1
.
Time
`json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"`
LastProbeTime
metav1
.
Time
`json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"`
...
...
staging/src/k8s.io/api/extensions/v1beta1/types.go
View file @
edd30fdd
...
@@ -356,7 +356,7 @@ type DeploymentCondition struct {
...
@@ -356,7 +356,7 @@ type DeploymentCondition struct {
// Type of deployment condition.
// Type of deployment condition.
Type
DeploymentConditionType
`json:"type" protobuf:"bytes,1,opt,name=type,casttype=DeploymentConditionType"`
Type
DeploymentConditionType
`json:"type" protobuf:"bytes,1,opt,name=type,casttype=DeploymentConditionType"`
// Status of the condition, one of True, False, Unknown.
// Status of the condition, one of True, False, Unknown.
Status
v1
.
ConditionStatus
`json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/
kubernetes/pkg/api
/v1.ConditionStatus"`
Status
v1
.
ConditionStatus
`json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/
api/core
/v1.ConditionStatus"`
// The last time this condition was updated.
// The last time this condition was updated.
LastUpdateTime
metav1
.
Time
`json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"`
LastUpdateTime
metav1
.
Time
`json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"`
// Last time the condition transitioned from one status to another.
// Last time the condition transitioned from one status to another.
...
@@ -850,7 +850,7 @@ type ReplicaSetCondition struct {
...
@@ -850,7 +850,7 @@ type ReplicaSetCondition struct {
// Type of replica set condition.
// Type of replica set condition.
Type
ReplicaSetConditionType
`json:"type" protobuf:"bytes,1,opt,name=type,casttype=ReplicaSetConditionType"`
Type
ReplicaSetConditionType
`json:"type" protobuf:"bytes,1,opt,name=type,casttype=ReplicaSetConditionType"`
// Status of the condition, one of True, False, Unknown.
// Status of the condition, one of True, False, Unknown.
Status
v1
.
ConditionStatus
`json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/
kubernetes/pkg/api
/v1.ConditionStatus"`
Status
v1
.
ConditionStatus
`json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/
api/core
/v1.ConditionStatus"`
// The last time the condition transitioned from one status to another.
// The last time the condition transitioned from one status to another.
// +optional
// +optional
LastTransitionTime
metav1
.
Time
`json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"`
LastTransitionTime
metav1
.
Time
`json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"`
...
@@ -888,16 +888,16 @@ type PodSecurityPolicySpec struct {
...
@@ -888,16 +888,16 @@ type PodSecurityPolicySpec struct {
// unless the pod spec specifically drops the capability. You may not list a capabiility in both
// unless the pod spec specifically drops the capability. You may not list a capabiility in both
// DefaultAddCapabilities and RequiredDropCapabilities.
// DefaultAddCapabilities and RequiredDropCapabilities.
// +optional
// +optional
DefaultAddCapabilities
[]
v1
.
Capability
`json:"defaultAddCapabilities,omitempty" protobuf:"bytes,2,rep,name=defaultAddCapabilities,casttype=k8s.io/
kubernetes/pkg/api
/v1.Capability"`
DefaultAddCapabilities
[]
v1
.
Capability
`json:"defaultAddCapabilities,omitempty" protobuf:"bytes,2,rep,name=defaultAddCapabilities,casttype=k8s.io/
api/core
/v1.Capability"`
// RequiredDropCapabilities are the capabilities that will be dropped from the container. These
// RequiredDropCapabilities are the capabilities that will be dropped from the container. These
// are required to be dropped and cannot be added.
// are required to be dropped and cannot be added.
// +optional
// +optional
RequiredDropCapabilities
[]
v1
.
Capability
`json:"requiredDropCapabilities,omitempty" protobuf:"bytes,3,rep,name=requiredDropCapabilities,casttype=k8s.io/
kubernetes/pkg/api
/v1.Capability"`
RequiredDropCapabilities
[]
v1
.
Capability
`json:"requiredDropCapabilities,omitempty" protobuf:"bytes,3,rep,name=requiredDropCapabilities,casttype=k8s.io/
api/core
/v1.Capability"`
// AllowedCapabilities is a list of capabilities that can be requested to add to the container.
// AllowedCapabilities is a list of capabilities that can be requested to add to the container.
// Capabilities in this field may be added at the pod author's discretion.
// Capabilities in this field may be added at the pod author's discretion.
// You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities.
// You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities.
// +optional
// +optional
AllowedCapabilities
[]
v1
.
Capability
`json:"allowedCapabilities,omitempty" protobuf:"bytes,4,rep,name=allowedCapabilities,casttype=k8s.io/
kubernetes/pkg/api
/v1.Capability"`
AllowedCapabilities
[]
v1
.
Capability
`json:"allowedCapabilities,omitempty" protobuf:"bytes,4,rep,name=allowedCapabilities,casttype=k8s.io/
api/core
/v1.Capability"`
// volumes is a white list of allowed volume plugins. Empty indicates that all plugins
// volumes is a white list of allowed volume plugins. Empty indicates that all plugins
// may be used.
// may be used.
// +optional
// +optional
...
@@ -1130,7 +1130,7 @@ type NetworkPolicyPort struct {
...
@@ -1130,7 +1130,7 @@ type NetworkPolicyPort struct {
// Optional. The protocol (TCP or UDP) which traffic must match.
// Optional. The protocol (TCP or UDP) which traffic must match.
// If not specified, this field defaults to TCP.
// If not specified, this field defaults to TCP.
// +optional
// +optional
Protocol
*
v1
.
Protocol
`json:"protocol,omitempty" protobuf:"bytes,1,opt,name=protocol,casttype=k8s.io/
kubernetes/pkg/api
/v1.Protocol"`
Protocol
*
v1
.
Protocol
`json:"protocol,omitempty" protobuf:"bytes,1,opt,name=protocol,casttype=k8s.io/
api/core
/v1.Protocol"`
// If specified, the port on the given protocol. This can
// If specified, the port on the given protocol. This can
// either be a numerical or named port on a pod. If this field is not provided,
// either be a numerical or named port on a pod. If this field is not provided,
...
...
staging/src/k8s.io/api/networking/v1/types.go
View file @
edd30fdd
...
@@ -83,7 +83,7 @@ type NetworkPolicyPort struct {
...
@@ -83,7 +83,7 @@ type NetworkPolicyPort struct {
// The protocol (TCP or UDP) which traffic must match. If not specified, this
// The protocol (TCP or UDP) which traffic must match. If not specified, this
// field defaults to TCP.
// field defaults to TCP.
// +optional
// +optional
Protocol
*
v1
.
Protocol
`json:"protocol,omitempty" protobuf:"bytes,1,opt,name=protocol,casttype=k8s.io/
kubernetes/pkg/api
/v1.Protocol"`
Protocol
*
v1
.
Protocol
`json:"protocol,omitempty" protobuf:"bytes,1,opt,name=protocol,casttype=k8s.io/
api/core
/v1.Protocol"`
// The port on the given protocol. This can either be a numerical or named port on
// The port on the given protocol. This can either be a numerical or named port on
// a pod. If this field is not provided, this matches all port names and numbers.
// a pod. If this field is not provided, this matches all port names and numbers.
...
...
staging/src/k8s.io/metrics/pkg/apis/metrics/v1alpha1/types.go
View file @
edd30fdd
...
@@ -37,7 +37,7 @@ type NodeMetrics struct {
...
@@ -37,7 +37,7 @@ type NodeMetrics struct {
Window
metav1
.
Duration
`json:"window" protobuf:"bytes,3,opt,name=window"`
Window
metav1
.
Duration
`json:"window" protobuf:"bytes,3,opt,name=window"`
// The memory usage is the memory working set.
// The memory usage is the memory working set.
Usage
v1
.
ResourceList
`json:"usage" protobuf:"bytes,4,rep,name=usage,casttype=k8s.io/
client-go/pkg/api/v1.ResourceList,castkey=k8s.io/client-go/pkg/api
/v1.ResourceName,castvalue=k8s.io/apimachinery/pkg/api/resource.Quantity"`
Usage
v1
.
ResourceList
`json:"usage" protobuf:"bytes,4,rep,name=usage,casttype=k8s.io/
api/core/v1.ResourceList,castkey=k8s.io/api/core
/v1.ResourceName,castvalue=k8s.io/apimachinery/pkg/api/resource.Quantity"`
}
}
// NodeMetricsList is a list of NodeMetrics.
// NodeMetricsList is a list of NodeMetrics.
...
@@ -85,5 +85,5 @@ type ContainerMetrics struct {
...
@@ -85,5 +85,5 @@ type ContainerMetrics struct {
// Container name corresponding to the one from pod.spec.containers.
// Container name corresponding to the one from pod.spec.containers.
Name
string
`json:"name" protobuf:"bytes,1,opt,name=name"`
Name
string
`json:"name" protobuf:"bytes,1,opt,name=name"`
// The memory usage is the memory working set.
// The memory usage is the memory working set.
Usage
v1
.
ResourceList
`json:"usage" protobuf:"bytes,2,rep,name=usage,casttype=k8s.io/
client-go/pkg/api/v1.ResourceList,castkey=k8s.io/client-go/pkg/api
/v1.ResourceName,castvalue=k8s.io/apimachinery/pkg/api/resource.Quantity"`
Usage
v1
.
ResourceList
`json:"usage" protobuf:"bytes,2,rep,name=usage,casttype=k8s.io/
api/core/v1.ResourceList,castkey=k8s.io/api/core
/v1.ResourceName,castvalue=k8s.io/apimachinery/pkg/api/resource.Quantity"`
}
}
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