-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Expected Behavior
This issue is nearly identical to #6417.
I expect to be able to execute all sub-steps of the e2e tutorial section 3 - Create Bad Word Service.
The generated template using the command func create -l python bad-word-filter
should look like the listing in "Step 1: Create a Knative Function template"
start/bad-word-filter
├── func.yaml
├── .funcignore
├── .gitignore
├── requirements.txt
├── app.sh
├── test_func.py
├── README.md
├── Procfile
└── func.py
I expect to be able to replace the code in bad-word-filter/func.py
with the listing in "Step 2: Replace the generated code..."
I expect to be able to perform:
Actual Behavior
The generated function template which is shown in the docs is outdated and does not deploy when you run func deploy -b=s2i -v
.
func create -l python bad-word-filter
generates this template:
> tree -a -L 2 bad-word-filter
bad-word-filter
├── .funcignore
├── function
│ ├── func.py
│ └── __init__.py
├── func.yaml
├── .gitignore
├── pyproject.toml
├── README.md
└── tests
└── test_func.py
func.py
is in bad-word-filter/function/func.py
.
bad-word-filter/requirements.txt
does not exist, now it is bad-word-filter/pyproject.toml
. The dependencies from the listing in "Step 3: Configure..." are not working with the new template.
func deploy -b=s2i -v
fails with build errors if one uses the listed code and dependencies.
Steps to Reproduce the Problem
- Setup environment as described in Environment Setup.
- Go to step 3 - Create Bad Word Filter.
Additional Info
Additional context
Fedora 42
Install information:
- Platform (GKE, IKS, AKS, etc.): Kind 0.30.0, k8 1.32.7, Docker Engine 28.4.0
- Knative Version: Serving 1.19.6, Eventing 1.19.4, func v0.46.0