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
63a6ce3a
Commit
63a6ce3a
authored
Sep 29, 2016
by
Michail Kargakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extensions: add Conditions in replica sets
parent
07012329
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
0 deletions
+58
-0
types.go
pkg/apis/extensions/types.go
+29
-0
types.go
pkg/apis/extensions/v1beta1/types.go
+29
-0
No files found.
pkg/apis/extensions/types.go
View file @
63a6ce3a
...
...
@@ -642,6 +642,35 @@ type ReplicaSetStatus struct {
// ObservedGeneration is the most recent generation observed by the controller.
ObservedGeneration
int64
`json:"observedGeneration,omitempty"`
// Represents the latest available observations of a replica set's current state.
Conditions
[]
ReplicaSetCondition
`json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
type
ReplicaSetConditionType
string
// These are valid conditions of a replica set.
const
(
// ReplicaSetReplicaFailure is added in a replica set when one of its pods fails to be created
// due to insufficient quota, limit ranges, pod security policy, node selectors, etc. or deleted
// due to kubelet being down or finalizers are failing.
ReplicaSetReplicaFailure
ReplicaSetConditionType
=
"ReplicaFailure"
)
// ReplicaSetCondition describes the state of a replica set at a certain point.
type
ReplicaSetCondition
struct
{
// Type of replica set condition.
Type
ReplicaSetConditionType
`json:"type"`
// Status of the condition, one of True, False, Unknown.
Status
api
.
ConditionStatus
`json:"status"`
// Last time we probed the condition.
LastProbeTime
unversioned
.
Time
`json:"lastProbeTime,omitempty"`
// The last time the condition transitioned from one status to another.
LastTransitionTime
unversioned
.
Time
`json:"lastTransitionTime,omitempty"`
// The reason for the condition's last transition.
Reason
string
`json:"reason,omitempty"`
// A human readable message indicating details about the transition.
Message
string
`json:"message,omitempty"`
}
// +genclient=true
...
...
pkg/apis/extensions/v1beta1/types.go
View file @
63a6ce3a
...
...
@@ -901,6 +901,35 @@ type ReplicaSetStatus struct {
// ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
ObservedGeneration
int64
`json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"`
// Represents the latest available observations of a replica set's current state.
Conditions
[]
ReplicaSetCondition
`json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
type
ReplicaSetConditionType
string
// These are valid conditions of a replica set.
const
(
// ReplicaSetReplicaFailure is added in a replica set when one of its pods fails to be created
// due to insufficient quota, limit ranges, pod security policy, node selectors, etc. or deleted
// due to kubelet being down or finalizers are failing.
ReplicaSetReplicaFailure
ReplicaSetConditionType
=
"ReplicaFailure"
)
// ReplicaSetCondition describes the state of a replica set at a certain point.
type
ReplicaSetCondition
struct
{
// Type of replica set condition.
Type
ReplicaSetConditionType
`json:"type"`
// Status of the condition, one of True, False, Unknown.
Status
v1
.
ConditionStatus
`json:"status"`
// Last time we probed the condition.
LastProbeTime
unversioned
.
Time
`json:"lastProbeTime,omitempty"`
// The last time the condition transitioned from one status to another.
LastTransitionTime
unversioned
.
Time
`json:"lastTransitionTime,omitempty"`
// The reason for the condition's last transition.
Reason
string
`json:"reason,omitempty"`
// A human readable message indicating details about the transition.
Message
string
`json:"message,omitempty"`
}
// +genclient=true
...
...
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