Skip to content

Update cflinuxfs from version 3 to version 4 with optional 5#1104

Open
jakweg wants to merge 5 commits into
mainfrom
jakweg_cflinuxfs_update
Open

Update cflinuxfs from version 3 to version 4 with optional 5#1104
jakweg wants to merge 5 commits into
mainfrom
jakweg_cflinuxfs_update

Conversation

@jakweg
Copy link
Copy Markdown
Contributor

@jakweg jakweg commented May 5, 2026

Proposed Changes

  • Update code and documentation cflinuxfs3 references to cflinuxfs4 and cflinuxfs5. KF now defaults to cflinuxfs4 instead of cflinuxfs3.

Release Notes

`Changed` default cflinuxfs version to 4
`Added` support of `cflinuxfs5`

Before updating

The new stack is based on Ubuntu 22.04 by default, or Ubuntu 24.04 if you opt into cflinuxfs5, which is significantly newer than the current Ubuntu 18.04. Before updating, ensure your application does not depend on utilities or libraries that behave differently in newer Ubuntu versions. Newer stack means newer buildpacks platforms, kf now uses CNB_PLATFORM_API=0.15 for all builds (unless running on legacy stack). You can override this behavior during push kf push (...) -env CNB_PLATFORM_API=0.15. Furthermore, newer stacks contain fewer pre-installed packages (for example, python is no longer included) and fewer default buildpacks (for example, cflinuxfs5 does not contain the Go buildpack).

Legacy stacks are still available but must be manually specified (via kf push --stack cflinuxfs3 ...); otherwise, cflinuxfs4 is used by default. We recommend manually specifying the legacy stack, updating to the latest KF release, and testing the application build and runtime in a separate space. Once verified, migrate away from the legacy stacks entirely.

@jakweg jakweg force-pushed the jakweg_cflinuxfs_update branch 15 times, most recently from 49a85b8 to db7e4c7 Compare May 11, 2026 07:42
@jakweg jakweg force-pushed the jakweg_cflinuxfs_update branch 3 times, most recently from 53003f8 to 7d19b47 Compare May 11, 2026 09:22
@jakweg jakweg changed the title Update cflinuxfs3 references to cflinuxfs5 Update cflinuxfs from version 3 to version 4 with optional 5 May 11, 2026
@jakweg jakweg force-pushed the jakweg_cflinuxfs_update branch 4 times, most recently from 6a274f3 to 1647619 Compare May 11, 2026 12:56
@jakweg jakweg force-pushed the jakweg_cflinuxfs_update branch 4 times, most recently from 956d202 to bfe8e75 Compare May 13, 2026 05:48
@jakweg jakweg force-pushed the jakweg_cflinuxfs_update branch 2 times, most recently from e3a0b65 to c271872 Compare May 13, 2026 12:05
@jakweg jakweg force-pushed the jakweg_cflinuxfs_update branch 3 times, most recently from 1ba5822 to df94fe0 Compare May 14, 2026 09:49
@jakweg jakweg requested review from balamut-google and iosebisg May 14, 2026 09:50
@jakweg jakweg force-pushed the jakweg_cflinuxfs_update branch from df94fe0 to d2f2406 Compare May 14, 2026 09:54
Comment thread cmd/generate-release/scripts/kfsystems-cr.yaml
Comment thread config/config-defaults.yaml
Comment thread config/config-defaults.yaml
Comment thread config/config-defaults.yaml
Comment thread pkg/kf/commands/apps/integration_test.go
Comment thread pkg/kf/commands/buildpacks/wrap-v2-buildpack.go
Comment thread config/config-defaults.yaml Outdated
@jakweg jakweg force-pushed the jakweg_cflinuxfs_update branch from d2f2406 to a2e38eb Compare May 14, 2026 14:00
cbnPlatformApiEnv := []corev1.EnvVar{
{
Name: "CNB_PLATFORM_API",
Value: "0.15",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this value hardcoded or the users can override it somehow?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Currently no, adding ability to override with -env variable

Comment thread pkg/reconciler/build/resources/builtin_tasks.go Outdated
Comment thread pkg/reconciler/build/resources/builtin_tasks.go
@jakweg jakweg force-pushed the jakweg_cflinuxfs_update branch from a2e38eb to a2a5bb2 Compare May 15, 2026 07:57
@jakweg jakweg force-pushed the jakweg_cflinuxfs_update branch from a2a5bb2 to 8c02db3 Compare May 15, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants