Skip to content

WIP: add configmap for flow controller#240

Closed
pmorie wants to merge 1 commit into
knative:masterfrom
pmorie:flow-controller-config
Closed

WIP: add configmap for flow controller#240
pmorie wants to merge 1 commit into
knative:masterfrom
pmorie:flow-controller-config

Conversation

@pmorie
Copy link
Copy Markdown
Contributor

@pmorie pmorie commented Jul 19, 2018

Fixes #209

Proposed Changes

  • Add a configMap to knative-eventing called flow-controller-config
  • Maintain a field in Flow controller holding value of default cluster bus name based on default-cluster-bus key of configmap

Posting early to get some feedback before going too far.

@google-prow-robot google-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 Jul 19, 2018
@google-prow-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: pmorie
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: ultrasaurus

If they are not already assigned, you can assign the PR to them by writing /assign @ultrasaurus in a comment when ready.

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 size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 19, 2018
@google-prow-robot
Copy link
Copy Markdown

@pmorie: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-knative-eventing-build-tests 79030d6 link /test pull-knative-eventing-build-tests
pull-knative-eventing-unit-tests 79030d6 link /test pull-knative-eventing-unit-tests
pull-knative-eventing-integration-tests 79030d6 link /test pull-knative-eventing-integration-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Copy Markdown
Contributor

@vaikas vaikas left a comment

Choose a reason for hiding this comment

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

Cool! Thanks for doing this!

// TODO: Get rid of these, but needed as other controllers use them.
servingclientset "github.com/knative/serving/pkg/client/clientset/versioned"
servinginformers "github.com/knative/serving/pkg/client/informers/externalversions"
servingconfigmaps "github.com/knative/serving/pkg/configmap"
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'm totally fine for using this from the serving stack for now, but we should pull this into a common place so we don't have to take a dependency between repos. Perhaps add a TODO here and file an issue in Serving to move this out to some common repo.

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.

It is now in knative/pkg

})

// TODO: const for knative-system
controller.controllerConfigMapWatcher = servingconfigmaps.NewDefaultWatcher(kubeclientset, "knative-system")
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.

should this be knative-eventing?

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.

also think there's a way to get the eventing namespace... time passes... yeah, pkg/names.go

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.

use system.Namespace for now.

glog.Info("Starting Flow controller")

glog.Info("Watching controller config")
c.controllerConfigMapWatcher.Watch("flow-controller-config", c.receiveControllerConfig)
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.

maybe hoist this into the const?

@n3wscott
Copy link
Copy Markdown
Contributor

n3wscott commented Aug 3, 2018

oh yeah I want this!

@evankanderson
Copy link
Copy Markdown
Member

/assign @n3wscott

@pmorie
Copy link
Copy Markdown
Contributor Author

pmorie commented Aug 6, 2018

Need to reopen this due to now-private fork

@pmorie pmorie closed this Aug 6, 2018
matzew pushed a commit to matzew/eventing that referenced this pull request Aug 12, 2019
🤖 Triggering CI on branch 'release-next' after synching to upstream/master
pierDipi pushed a commit to pierDipi/eventing that referenced this pull request Jul 21, 2023
…#240)

For two reasons:
* some tests might not use environment.Managed(t) so the test namespace
won't be deleted after test
* the REKT framework now doesn't delete a test namespace by default when
the test fails, so when some tests fail this check would be timing out
incorrectly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants