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

Remove static GCP broker data plane yamls #1170

Merged
merged 3 commits into from
Jun 2, 2020

Conversation

liu-cong
Copy link
Contributor

Fixes #867

Proposed Changes

  • Remove static yamls for GCP broker data plane as now they are created dynamically by brokercell (Create brokercell on demand #1132)
  • Copy the SA, role and rolebinding in the 200-rbac.yaml to existing rbac files

Release Note

Remove static GCP broker data plane yamls

Docs

@liu-cong liu-cong requested a review from yolocs May 29, 2020 17:19
@googlebot googlebot added the cla: yes (override cla status due to multiple authors bug) label May 29, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liu-cong

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

@liu-cong
Copy link
Contributor Author

/hold should merge after #1132 is merged

@liu-cong
Copy link
Contributor Author

This PR removes the config/broker folder as the broker data plane will be dynamically created with brokercell.
@ericlem Let me know if there is anything requried for go mod (I remember you talked about the dummy go file).

cc @nachocano as you are looking at the release yamls

@nachocano
Copy link
Member

This PR removes the config/broker folder as the broker data plane will be dynamically created with brokercell.
@ericlem Let me know if there is anything requried for go mod (I remember you talked about the dummy go file).

cc @nachocano as you are looking at the release yamls

Are you planning on cherry-picking this and other broker stuff to 0.15?

@ericlem
Copy link
Contributor

ericlem commented May 29, 2020

When we merge it into cloudrun-eventing we'll have to remove the entries pointing at the config/broker directories from hack/tools.go (the version in cloudrun-eventing) and the copy_yaml command for it from hack/update-deps.sh (the version in cloudrun-eventing)

@yolocs
Copy link
Member

yolocs commented Jun 1, 2020

It just occurred to me - would it be useful to keep these yamls somewhere for easier testing?

@liu-cong
Copy link
Contributor Author

liu-cong commented Jun 1, 2020

It just occurred to me - would it be useful to keep these yamls somewhere for easier testing?

For consistency I would say no since we don't keep yamls for other dynamically created resources. Is there any specific use case you have in mind?

@yolocs
Copy link
Member

yolocs commented Jun 2, 2020

@liu-cong I was thinking the case where I want to create a broker data plane manually. But never mind, once we move to brokercell the existing yamls won't work anyway.

@yolocs
Copy link
Member

yolocs commented Jun 2, 2020

/lgtm

@liu-cong
Copy link
Contributor Author

liu-cong commented Jun 2, 2020

I was thinking the case where I want to create a broker data plane manually. But never mind, once we move to brokercell the existing yamls won't work anyway.

Yeah I can see sometimes you want to manually deploy the yamls for troubleshooting for example. We could create a example yaml folder to put these yamls. But I am afraid we will forget to keep them up to date... So better just remove them if we won't maintain them.

@liu-cong
Copy link
Contributor Author

liu-cong commented Jun 2, 2020

/unhold

@liu-cong
Copy link
Contributor Author

liu-cong commented Jun 2, 2020

/retest

@yolocs
Copy link
Member

yolocs commented Jun 2, 2020

/hold
It just occurred to me. Will this PR break e2e test?

ko apply --strict -f ${CLOUD_RUN_EVENTS_GCP_BROKER_CONFIG} || return 1

@liu-cong
Copy link
Contributor Author

liu-cong commented Jun 2, 2020

Will this PR break e2e test?

Indeed it will. And this explains the test failures :)

Also removed the yaml from e2e tests. Let's see if the tests will pass.

@yolocs
Copy link
Member

yolocs commented Jun 2, 2020

/lgtm

@liu-cong
Copy link
Contributor Author

liu-cong commented Jun 2, 2020

/unhold

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved cla: yes (override cla status due to multiple authors bug) lgtm size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BrokerCell creation controller
6 participants