Repository navigation
CRD type definitions for the Service object (#412) - #577
Conversation
|
/assign @evankanderson |
vaikas
left a comment
There was a problem hiding this comment.
just some nits on typos, lgtm otherwise. I'll let @evankanderson approve in case he has something else.
| } | ||
|
|
||
| // ServiceSpec represents the configuration for the Service object. | ||
| // Exeactly one of its members (other than Generation) must be specified. |
| // ObjectMeta.Generation instead. | ||
| Generation int64 `json:"generation,omitempty"` | ||
|
|
||
| // RunLatest defines a simple Service. It will autometically |
| Generation int64 `json:"generation,omitempty"` | ||
|
|
||
| // RunLatest defines a simple Service. It will autometically | ||
| // configurate a route that keeps the latest ready revision |
| // Pins this service to a specific revision name. The revision must | ||
| // be owned by the configuration provided. | ||
| // +optional | ||
| Pinned *PinnedType `json:"pined,omitempty"` |
|
|
||
| type PinnedType struct { | ||
| // The revision name to pin this service to until changed | ||
| // to a differnt service type. |
|
Thanks, addressed spelling mistakes. |
evankanderson
left a comment
There was a problem hiding this comment.
This LGTM, but we'll need to update docs as well as controller code and examples.
| ServiceConditionReady ServiceConditionType = "Ready" | ||
| // ServiceConditionFailed is set when the service is not configured | ||
| // properly or has no available backends ready to receive traffic. | ||
| ServiceConditionFailed ServiceConditionType = "Failed" |
There was a problem hiding this comment.
#351 suggests that we should probably hoist some of the conditions from Configuration or other objects here.
Do we need to define the terminal failure states in this object right now, or can we omit this condition?
There was a problem hiding this comment.
I'd prefer to get this addressed in a follow on PR if you're ok with that?
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mikehelmick, vaikas-google The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Backport knative/pkg#1842 Backport knative/pkg#1842 * go get -u knative.dev/[email protected] * ./hack/update-deps.sh * Revert the change in ObjectNameForTest
Proposed Changes