Skip to content

Conversation

twoGiants
Copy link
Contributor

@twoGiants twoGiants commented Oct 7, 2025

The latest func cli generates a different Python function template than shown in the tutorial. There is no setup.py anymore and the project uses a toml file for configuration. The entire section was updated and code was corrected.

The required func cli version v0.46.0 was added to the tutorial with a link to the GitHub func repository tags page.

The solution-create-bad-word-filter-service.md was removed because it was identical to the create-bad-word-filter-service.md. All references to it were removed.

Fixes #6420.

Proposed Changes

Update 3 Create Bad Word Service.

  • Add corrected function template.
  • Fix paths.
  • Fix sample code.
  • Fix configuration step.
  • Add mandatory func cli version.
  • Add link to func GitHub tags page.
  • Remove solution-create-bad-word-filter-service.md and references to it.
  • Update "Sentiment Analysis Service" page "Next Step" section.

The latest func cli generates a different Python function template than
shown in the tutorial. There is no setup.py anymore and the project
uses a toml file for configuration. The entire section was updated and
code was corrected.

The required func cli version `v0.46.0` was added to the tutorial with a
link to the GitHub func repository tags page.

The `solution-create-bad-word-filter-service.md` was removed because it
was identical to the `create-bad-word-filter-service.md`. All references
to it were removed.

Issue knative#6420.

Signed-off-by: Stanislav Jakuschevskij <[email protected]>
Copy link

netlify bot commented Oct 7, 2025

Deploy Preview for knative ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 4cb38ca
🔍 Latest deploy log https://app.netlify.com/projects/knative/deploys/68e62e5860305200084b4133
😎 Deploy Preview https://deploy-preview-6425--knative.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@knative-prow knative-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 7, 2025
Knative Function enables you to easily create, build, and deploy stateless, event-driven functions as [Knative Services](https://knative.dev/docs/serving/services/#:~:text=Knative%20Services%20are%20used%20to,the%20Service%20to%20be%20configured){:target="_blank"} by using the func CLI.

In order to do so, you need to install the func CLI. You can follow the [official documentation](https://knative.dev/docs/getting-started/install-func/){:target="_blank"} to install the func CLI.
In order to do so, you need to install the func CLI `v0.46.0`. You can follow the [official documentation](https://knative.dev/docs/getting-started/install-func/){:target="_blank"} to install the func CLI with the appropriate version. If the latest version is above `v0.46.0` use the [GitHub func repository tag](https://github.com/knative/func/tags) page to get the correct version.
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should mention the func version. This is the go module version and not the user facing version v1.19.3

Plus I wouldn't want to have to bump this documentation with every release

cc @lkingland can we get func to show the user facing version?

Copy link
Contributor Author

@twoGiants twoGiants Oct 8, 2025

Choose a reason for hiding this comment

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

No problem, I will remove mentioning the version number.

I did not know that about the "user facing version", thanks for clarifying.

When I worked through the e2e tutorial it didn't work in step 2, 3 and 7 because the latest version of the used CLIs like func and kamel changed. For example func was generating a different function template.

Maybe we could add a "Prerequisites" section in the e2e Overview where we mention the needed version numbers to make sure it works? Otherwise a new user will face the same issues I did next year. Or how would you go about it?

P.S.: I also mention in my fix of step 7 the Camel K version because the kamel CLI does not support installation anymore. I will remove it there too (=> done).

@Leo6Leo
Copy link
Member

Leo6Leo commented Oct 8, 2025

@dprotaso Since I am not aware of the latest changes that func has, and haven't touched the code for a while; given the short time period before releasing, I think the folks from function team would be the best reviewer for this PR

Signed-off-by: Stanislav Jakuschevskij <[email protected]>
@dprotaso
Copy link
Member

dprotaso commented Oct 8, 2025

/lgtm
/approve

I'll merge this now and run through it myself.

cc @lkingland @matejvasek in the meantime for an async review

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Oct 8, 2025
Copy link

knative-prow bot commented Oct 8, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso, twoGiants

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 knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 8, 2025
@knative-prow knative-prow bot merged commit 6087691 into knative:main Oct 8, 2025
19 checks passed
@dprotaso
Copy link
Member

dprotaso commented Oct 8, 2025

/cherry-pick release-1.19

@knative-prow-robot
Copy link
Contributor

@dprotaso: new pull request created: #6432

In response to this:

/cherry-pick release-1.19

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-sigs/prow repository.

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. 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.

e2e tutorial "Step 3 - Create Bad Word Service" fails with latest func cli version.
4 participants