Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

diff the dispatcher.Spec and update as necessary #913

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

vaikas
Copy link
Contributor

@vaikas vaikas commented Feb 12, 2020

If you deploy new Kafka controller and an accompanying different Dispatcher (aka, different image), the dispatcher is never updated and the old dispatcher will keep on running and not picking up the new image.

Proposed Changes

  • Diff the spec of the Dispatcher and update if it's different from expected.

Release Note

Update dispatcher deployment if Spec changes. For example, to pick up a new image.

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Feb 12, 2020
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 12, 2020
@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 12, 2020
@knative-metrics-robot
Copy link

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

File Old Coverage New Coverage Delta
kafka/channel/pkg/reconciler/controller/kafkachannel.go 64.0% 64.2% 0.3

Brokers: []string{brokerName},
},
kafkachannelLister: listers.GetKafkaChannelLister(),
// TODO fix
Copy link
Member

Choose a reason for hiding this comment

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

wanna do an issue for that ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lol :) Copy and paste from an existing test, so not sure what the actual TODO fix is :)
But, sure I'll create an issue :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@matzew matzew left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 12, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matzew, vaikas

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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 merged commit 9455648 into knative:master Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.

5 participants