Skip to content

CreateK8sService diffs its expected spec against the actual spec and updates the K8s Service appropriately#666

Merged
knative-prow-robot merged 3 commits into
knative:masterfrom
Harwayne:svc-diff
Dec 5, 2018
Merged

CreateK8sService diffs its expected spec against the actual spec and updates the K8s Service appropriately#666
knative-prow-robot merged 3 commits into
knative:masterfrom
Harwayne:svc-diff

Conversation

@Harwayne
Copy link
Copy Markdown
Contributor

@Harwayne Harwayne commented Dec 4, 2018

This is a follow up of sorts on #626, which did this for VirtualServices and the Dispatcher's K8s Service.

Proposed Changes

  • CreateK8sService diffs against any found K8s Service and updates it if the spec is different than expected.

Release Note

When updating the provisioner controllers, you will also need to update the RBAC for their Service Accounts.

@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 4, 2018
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Dec 4, 2018
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 4, 2018
@Harwayne
Copy link
Copy Markdown
Contributor Author

Harwayne commented Dec 4, 2018

/retest

@knative-metrics-robot
Copy link
Copy Markdown

The following is the coverage report on pkg/.
Say /test pull-knative-eventing-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/provisioners/channel_util.go 85.5% 92.8% 7.3
pkg/provisioners/provisioner_util.go 78.8% 75.0% -3.8

@Harwayne Harwayne changed the title [WIP] CreateK8sService diffs its expected spec against the actual spec and updates the K8s Service appropriately CreateK8sService diffs its expected spec against the actual spec and updates the K8s Service appropriately Dec 5, 2018
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 5, 2018
@Harwayne
Copy link
Copy Markdown
Contributor Author

Harwayne commented Dec 5, 2018

/assign @neosab
/assign @grantr

Copy link
Copy Markdown
Contributor

@neosab neosab left a comment

Choose a reason for hiding this comment

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

/lgtm

Nice refactoring!

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 5, 2018
@evankanderson
Copy link
Copy Markdown
Member

/approve

@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: evankanderson, Harwayne

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 5, 2018
@knative-prow-robot knative-prow-robot merged commit 09148fc into knative:master Dec 5, 2018
Harwayne added a commit to Harwayne/knative-eventing that referenced this pull request Dec 5, 2018
@Harwayne Harwayne deleted the svc-diff branch December 5, 2018 21:09
mgencur pushed a commit to mgencur/eventing that referenced this pull request Jun 24, 2020
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. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants