-
Notifications
You must be signed in to change notification settings - Fork 39.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replica set conditions API #33905
Merged
k8s-github-robot
merged 3 commits into
kubernetes:master
from
0xmichalis:replica-set-conditions
Oct 12, 2016
Merged
Replica set conditions API #33905
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28176,6 +28176,39 @@ | |
} | ||
} | ||
}, | ||
"v1.ReplicationControllerCondition": { | ||
"description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", | ||
"required": [ | ||
"type", | ||
"status" | ||
], | ||
"properties": { | ||
"lastProbeTime": { | ||
"description": "Last time we probed the condition.", | ||
"$ref": "#/definitions/unversioned.Time" | ||
}, | ||
"lastTransitionTime": { | ||
"description": "The last time the condition transitioned from one status to another.", | ||
"$ref": "#/definitions/unversioned.Time" | ||
}, | ||
"message": { | ||
"description": "A human readable message indicating details about the transition.", | ||
"type": "string" | ||
}, | ||
"reason": { | ||
"description": "The reason for the condition's last transition.", | ||
"type": "string" | ||
}, | ||
"status": { | ||
"description": "Status of the condition, one of True, False, Unknown.", | ||
"type": "string" | ||
}, | ||
"type": { | ||
"description": "Type of replication controller condition.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"v1.ReplicationControllerList": { | ||
"description": "ReplicationControllerList is a collection of replication controllers.", | ||
"required": [ | ||
|
@@ -28232,6 +28265,13 @@ | |
"type": "integer", | ||
"format": "int32" | ||
}, | ||
"conditions": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. call this |
||
"description": "Represents the latest available observations of a replication controller's current state.", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/v1.ReplicationControllerCondition" | ||
} | ||
}, | ||
"fullyLabeledReplicas": { | ||
"description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", | ||
"type": "integer", | ||
|
@@ -30052,6 +30092,39 @@ | |
} | ||
} | ||
}, | ||
"v1beta1.ReplicaSetCondition": { | ||
"description": "ReplicaSetCondition describes the state of a replica set at a certain point.", | ||
"required": [ | ||
"type", | ||
"status" | ||
], | ||
"properties": { | ||
"lastProbeTime": { | ||
"description": "Last time we probed the condition.", | ||
"$ref": "#/definitions/unversioned.Time" | ||
}, | ||
"lastTransitionTime": { | ||
"description": "The last time the condition transitioned from one status to another.", | ||
"$ref": "#/definitions/unversioned.Time" | ||
}, | ||
"message": { | ||
"description": "A human readable message indicating details about the transition.", | ||
"type": "string" | ||
}, | ||
"reason": { | ||
"description": "The reason for the condition's last transition.", | ||
"type": "string" | ||
}, | ||
"status": { | ||
"description": "Status of the condition, one of True, False, Unknown.", | ||
"type": "string" | ||
}, | ||
"type": { | ||
"description": "Type of replica set condition.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"v1beta1.ReplicaSetList": { | ||
"description": "ReplicaSetList is a collection of ReplicaSets.", | ||
"required": [ | ||
|
@@ -30105,6 +30178,13 @@ | |
"type": "integer", | ||
"format": "int32" | ||
}, | ||
"conditions": { | ||
"description": "Represents the latest available observations of a replica set's current state.", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/v1beta1.ReplicaSetCondition" | ||
} | ||
}, | ||
"fullyLabeledReplicas": { | ||
"description": "The number of pods that have labels matching the labels of the pod template of the replicaset.", | ||
"type": "integer", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have been confused about the word
Condition
until i found this PR. I was thinking something like a predicate or cirumstance that led to something. Should we rather call itReplicationControllerState
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, that ship has sailed. The convention is "condition".
"State" is equally ambiguous.