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
dc0167bd
Commit
dc0167bd
authored
Nov 06, 2017
by
Janet Kuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add conditions to DaemonSet API
parent
fdeeed10
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
102 additions
and
0 deletions
+102
-0
types.go
pkg/apis/extensions/types.go
+21
-0
types.go
staging/src/k8s.io/api/apps/v1/types.go
+27
-0
types.go
staging/src/k8s.io/api/apps/v1beta2/types.go
+27
-0
types.go
staging/src/k8s.io/api/extensions/v1beta1/types.go
+27
-0
No files found.
pkg/apis/extensions/types.go
View file @
dc0167bd
...
@@ -469,6 +469,27 @@ type DaemonSetStatus struct {
...
@@ -469,6 +469,27 @@ type DaemonSetStatus struct {
// create the name for the newest ControllerRevision.
// create the name for the newest ControllerRevision.
// +optional
// +optional
CollisionCount
*
int32
CollisionCount
*
int32
// Represents the latest available observations of a DaemonSet's current state.
Conditions
[]
DaemonSetCondition
}
type
DaemonSetConditionType
string
// TODO: Add valid condition types of a DaemonSet.
// DaemonSetCondition describes the state of a DaemonSet at a certain point.
type
DaemonSetCondition
struct
{
// Type of DaemonSet condition.
Type
DaemonSetConditionType
// Status of the condition, one of True, False, Unknown.
Status
api
.
ConditionStatus
// Last time the condition transitioned from one status to another.
LastTransitionTime
metav1
.
Time
// The reason for the condition's last transition.
Reason
string
// A human readable message indicating details about the transition.
Message
string
}
}
// +genclient
// +genclient
...
...
staging/src/k8s.io/api/apps/v1/types.go
View file @
dc0167bd
...
@@ -553,6 +553,33 @@ type DaemonSetStatus struct {
...
@@ -553,6 +553,33 @@ type DaemonSetStatus struct {
// create the name for the newest ControllerRevision.
// create the name for the newest ControllerRevision.
// +optional
// +optional
CollisionCount
*
int32
`json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"`
CollisionCount
*
int32
`json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"`
// Represents the latest available observations of a DaemonSet's current state.
// +optional
// +patchMergeKey=type
// +patchStrategy=merge
Conditions
[]
DaemonSetCondition
`json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
type
DaemonSetConditionType
string
// TODO: Add valid condition types of a DaemonSet.
// DaemonSetCondition describes the state of a DaemonSet at a certain point.
type
DaemonSetCondition
struct
{
// Type of DaemonSet condition.
Type
DaemonSetConditionType
`json:"type"`
// Status of the condition, one of True, False, Unknown.
Status
v1
.
ConditionStatus
`json:"status"`
// Last time the condition transitioned from one status to another.
// +optional
LastTransitionTime
metav1
.
Time
`json:"lastTransitionTime,omitempty"`
// The reason for the condition's last transition.
// +optional
Reason
string
`json:"reason,omitempty"`
// A human readable message indicating details about the transition.
// +optional
Message
string
`json:"message,omitempty"`
}
}
// +genclient
// +genclient
...
...
staging/src/k8s.io/api/apps/v1beta2/types.go
View file @
dc0167bd
...
@@ -601,6 +601,33 @@ type DaemonSetStatus struct {
...
@@ -601,6 +601,33 @@ type DaemonSetStatus struct {
// create the name for the newest ControllerRevision.
// create the name for the newest ControllerRevision.
// +optional
// +optional
CollisionCount
*
int32
`json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"`
CollisionCount
*
int32
`json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"`
// Represents the latest available observations of a DaemonSet's current state.
// +optional
// +patchMergeKey=type
// +patchStrategy=merge
Conditions
[]
DaemonSetCondition
`json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
type
DaemonSetConditionType
string
// TODO: Add valid condition types of a DaemonSet.
// DaemonSetCondition describes the state of a DaemonSet at a certain point.
type
DaemonSetCondition
struct
{
// Type of DaemonSet condition.
Type
DaemonSetConditionType
`json:"type"`
// Status of the condition, one of True, False, Unknown.
Status
v1
.
ConditionStatus
`json:"status"`
// Last time the condition transitioned from one status to another.
// +optional
LastTransitionTime
metav1
.
Time
`json:"lastTransitionTime,omitempty"`
// The reason for the condition's last transition.
// +optional
Reason
string
`json:"reason,omitempty"`
// A human readable message indicating details about the transition.
// +optional
Message
string
`json:"message,omitempty"`
}
}
// +genclient
// +genclient
...
...
staging/src/k8s.io/api/extensions/v1beta1/types.go
View file @
dc0167bd
...
@@ -475,6 +475,33 @@ type DaemonSetStatus struct {
...
@@ -475,6 +475,33 @@ type DaemonSetStatus struct {
// create the name for the newest ControllerRevision.
// create the name for the newest ControllerRevision.
// +optional
// +optional
CollisionCount
*
int32
`json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"`
CollisionCount
*
int32
`json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"`
// Represents the latest available observations of a DaemonSet's current state.
// +optional
// +patchMergeKey=type
// +patchStrategy=merge
Conditions
[]
DaemonSetCondition
`json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
type
DaemonSetConditionType
string
// TODO: Add valid condition types of a DaemonSet.
// DaemonSetCondition describes the state of a DaemonSet at a certain point.
type
DaemonSetCondition
struct
{
// Type of DaemonSet condition.
Type
DaemonSetConditionType
`json:"type"`
// Status of the condition, one of True, False, Unknown.
Status
v1
.
ConditionStatus
`json:"status"`
// Last time the condition transitioned from one status to another.
// +optional
LastTransitionTime
metav1
.
Time
`json:"lastTransitionTime,omitempty"`
// The reason for the condition's last transition.
// +optional
Reason
string
`json:"reason,omitempty"`
// A human readable message indicating details about the transition.
// +optional
Message
string
`json:"message,omitempty"`
}
}
// +genclient
// +genclient
...
...
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