Skip to content

CRD type definitions for the Service object (#412) - #577

Merged
vaikas merged 9 commits into
knative:masterfrom
mikehelmick:master
Apr 3, 2018
Merged

vaikas merged 9 commits into
knative:masterfrom
mikehelmick:master

Conversation

@mikehelmick

Copy link
Copy Markdown
Contributor

Proposed Changes

@google-prow-robot google-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Apr 3, 2018
@mikehelmick

Copy link
Copy Markdown
Contributor Author

/assign @evankanderson

@vaikas vaikas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just some nits on typos, lgtm otherwise. I'll let @evankanderson approve in case he has something else.

Comment thread pkg/apis/ela/v1alpha1/service_types.go Outdated
}

// ServiceSpec represents the configuration for the Service object.
// Exeactly one of its members (other than Generation) must be specified.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit Exactly

Comment thread pkg/apis/ela/v1alpha1/service_types.go Outdated
// ObjectMeta.Generation instead.
Generation int64 `json:"generation,omitempty"`

// RunLatest defines a simple Service. It will autometically

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit automatically

Comment thread pkg/apis/ela/v1alpha1/service_types.go Outdated
Generation int64 `json:"generation,omitempty"`

// RunLatest defines a simple Service. It will autometically
// configurate a route that keeps the latest ready revision

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configurate? configure?

Comment thread pkg/apis/ela/v1alpha1/service_types.go Outdated
// Pins this service to a specific revision name. The revision must
// be owned by the configuration provided.
// +optional
Pinned *PinnedType `json:"pined,omitempty"`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json:"pinned,omitempty"

Comment thread pkg/apis/ela/v1alpha1/service_types.go Outdated

type PinnedType struct {
// The revision name to pin this service to until changed
// to a differnt service type.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

different

@mikehelmick

Copy link
Copy Markdown
Contributor Author

Thanks, addressed spelling mistakes.

@evankanderson evankanderson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to get this addressed in a follow on PR if you're ok with that?

@vaikas

vaikas commented Apr 3, 2018

Copy link
Copy Markdown
Contributor

/lgtm

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 3, 2018
@google-prow-robot

Copy link
Copy Markdown

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-prow-robot google-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 3, 2018
@vaikas
vaikas merged commit f265fff into knative:master Apr 3, 2018
maschmid pushed a commit to maschmid/serving that referenced this pull request Apr 7, 2021
* Backport knative/pkg#1842

Backport knative/pkg#1842

* go get -u knative.dev/[email protected]

* ./hack/update-deps.sh

* Revert the change in ObjectNameForTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants