You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: force container=true for pack/s2i builders when not explicitly set (knative#2966)
* fix: force container=true for pack/s2i builders when not explicitly set
- Added logic to automatically set container=true for containerized builders (pack/s2i)
when --container flag is not explicitly provided by user
- Fixes issue where 'func run --builder=pack' would incorrectly run on host instead of container
- Solution checks if builder is pack/s2i and --container flag wasn't changed by user
- Resolvesknative#2955
* fix: enforce container mode for pack/s2i builders
- Auto-set container=true for pack/s2i when --container not explicitly set
- Validate and error on incompatible --builder=pack --container=false combinations
- Handle both flags and FUNC_CONTAINER environment variable
Fixesknative#2955
Addresses @gauron99 feedback on explicit container=false validation
* added logic to prevent test failure in testfunctionwithoutcontainer and also fixed some formatting issues to prevent test failure
* refactored the way of implementation based on the suggestion provided also added the test as requested to do so
* fixed the linting errors
* fimplemented smart builder/container auto-selection
automatically handles pack->container=true and container=false->host builder. also updated the e2e test and added new smartbuilderselection test in run_test.go
* fix linting errors
0 commit comments