Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: rename event templates to 'cloudevents' #584

Merged

Conversation

lance
Copy link
Member

@lance lance commented Oct 13, 2021

Changes

🧹 This commit renames the templates for cloudevents to be named "cloudevents".

BREAKING CHANGE

/kind enhancement

Fixes: #578

Release Note

action required
When creating new function projects using the built in templates, you must now specify "cloudevents" instead of "events" to create an event based project.

This commit renames the templates for cloudevents to be named "cloudevents".

BREAKING CHANGE

Signed-off-by: Lance Ball <lball@redhat.com>
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 13, 2021
@knative-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lance

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 added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 13, 2021
Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Lance Ball <lball@redhat.com>
Makefile Show resolved Hide resolved
@matejvasek
Copy link
Contributor

// test/_e2e/trigger_events_test.go:61
func DefaultFunctionEventsTest(t *testing.T, knFunc *TestShellCmdRunner, project FunctionTestProject) {
	if project.Template == "events" && project.IsDeployed {

@matejvasek
Copy link
Contributor

@lance is seems that there are still some occurrences of event ^^^

Signed-off-by: Lance Ball <lball@redhat.com>
@lance
Copy link
Member Author

lance commented Oct 13, 2021

@lance is seems that there are still some occurrences of event ^^^

@matejvasek good catch - ty. I've added a failure in DefaultFunctionEventsTest() in the event that the if condition there fails again for some reason in the future.

@matejvasek
Copy link
Contributor

and there is .../events/.. also in .gitignore.

Signed-off-by: Lance Ball <lball@redhat.com>
@matejvasek
Copy link
Contributor

In Makefile recipe for pkged.go: there is also occurrence of /events/
https://github.com/lance/func/blob/lance/578-rename-events-template/Makefile#L66-L77

Signed-off-by: Lance Ball <lball@redhat.com>
@matejvasek
Copy link
Contributor

/hold
until CI pass

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 13, 2021
@matejvasek
Copy link
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 13, 2021
@lance
Copy link
Member Author

lance commented Oct 13, 2021

/unhold

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 13, 2021
@knative-prow-robot knative-prow-robot merged commit 68b0904 into knative:main Oct 13, 2021
lkingland pushed a commit to lkingland/func that referenced this pull request Oct 20, 2021
* feat!: rename event templates to 'cloudevents'

This commit renames the templates for cloudevents to be named "cloudevents".

BREAKING CHANGE

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: update commands.md doc

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: fix make test-templates

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: missed an e2e test change

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: gitignore and pkged.go

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: adjust Makefile recipe for pkged.go

Signed-off-by: Lance Ball <lball@redhat.com>
@github-actions github-actions bot mentioned this pull request Nov 3, 2021
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. kind/enhancement lgtm Indicates that a PR is ready to be merged. 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.

Rename template "events" to "cloudevents"
3 participants