Skip to content

Commit 72adfa4

Browse files
authored
Update default stack to Ubuntu Jammy Jellyfish (cloudfoundry#2622)
Update default stack to Ubuntu Jammy Jellyfish - Ubuntu Bionic Beaver 18.04 left general support in April 2023 and mainline CF has switched to cflinuxfs4 which is based on Jammy Jellyfish 22.04 LTS - Add Helm configuration for ClusterStack ID - Specify GOOS and GOARCH in build-dorifi make task. This will allow the dorifi binary to be built on Mac OS hosts and run on a Linux-based K8s cluster Authored-by: Tim Downey <tdowney@vmware.com>
1 parent 2e209f0 commit 72adfa4

File tree

7 files changed

+18
-11
lines changed

7 files changed

+18
-11
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test-e2e: build-dorifi
6363
./scripts/run-tests.sh tests/e2e
6464

6565
build-dorifi:
66-
CGO_ENABLED=0 go build -o ../dorifi/dorifi -C tests/e2e/assets/golang .
66+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ../dorifi/dorifi -C tests/e2e/assets/golang .
6767

6868
GOFUMPT = $(shell go env GOPATH)/bin/gofumpt
6969
install-gofumpt:

README.helm.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ Here are all the values that can be set for the chart:
9494
- `builderReadinessTimeout` (_String_): The time that the kpack Builder will be waited for if not in ready state, berfore the build workload fails. See [`time.ParseDuration`](https://pkg.go.dev/time#ParseDuration) for details on the format, an additional `d` suffix for days is supported.
9595
- `builderRepository` (_String_): Container image repository to store the `ClusterBuilder` image. Required when `clusterBuilderName` is not provided.
9696
- `clusterBuilderName` (_String_): The name of the `ClusterBuilder` Kpack has been configured with. Leave blank to let `kpack-image-builder` create an example `ClusterBuilder`.
97-
- `clusterStackBuildImage` (_String_): The image to use for building defined in the `ClusterStack`. Used when `kpack-image-builder` is blank.
98-
- `clusterStackRunImage` (_String_): The image to use for running defined in the `ClusterStack`. Used when `kpack-image-builder` is blank.
97+
- `clusterStackBuildImage` (_String_): The image to use for building defined in the `ClusterStack`. Used when `clusterBuilderName` is blank.
98+
- `clusterStackID` (_String_): The ID of the `ClusterStack`. Used when `clusterBuilderName` is blank.
99+
- `clusterStackRunImage` (_String_): The image to use for running defined in the `ClusterStack`. Used when `clusterBuilderName` is blank.
99100
- `include` (_Boolean_): Deploy the `kpack-image-builder` component.
100101
- `replicas` (_Integer_): Number of replicas.
101102
- `resources`: [`ResourceRequirements`](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#resourcerequirements-v1-core) for the API.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ Our [hacking guide](./HACKING.md) has instructions on how to work on the project
4343

4444
This project is licensed under the [Apache License, Version 2.0](/LICENSE).
4545

46-
When using the Korifi or other Cloud Foundry logos, be sure to follow the [guidelines](https://www.cloudfoundry.org/logo/).
46+
When using the Korifi or other Cloud Foundry logos be sure to follow the [guidelines](https://www.cloudfoundry.org/logo/).

helm/korifi/kpack-image-builder/cluster-builder.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ kind: ClusterStack
1717
metadata:
1818
name: cf-default-stack
1919
spec:
20-
id: "io.buildpacks.stacks.bionic"
20+
id: {{ .Values.kpackImageBuilder.clusterStackID | quote }}
2121
buildImage:
2222
image: {{ .Values.kpackImageBuilder.clusterStackBuildImage | quote }}
2323
runImage:

helm/korifi/values.schema.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,16 @@
377377
"description": "The time that the kpack Builder will be waited for if not in ready state, berfore the build workload fails. See [`time.ParseDuration`](https://pkg.go.dev/time#ParseDuration) for details on the format, an additional `d` suffix for days is supported.",
378378
"type": "string"
379379
},
380+
"clusterStackID": {
381+
"description": "The ID of the `ClusterStack`. Used when `clusterBuilderName` is blank.",
382+
"type": "string"
383+
},
380384
"clusterStackBuildImage": {
381-
"description": "The image to use for building defined in the `ClusterStack`. Used when `kpack-image-builder` is blank.",
385+
"description": "The image to use for building defined in the `ClusterStack`. Used when `clusterBuilderName` is blank.",
382386
"type": "string"
383387
},
384388
"clusterStackRunImage": {
385-
"description": "The image to use for running defined in the `ClusterStack`. Used when `kpack-image-builder` is blank.",
389+
"description": "The image to use for running defined in the `ClusterStack`. Used when `clusterBuilderName` is blank.",
386390
"type": "string"
387391
},
388392
"builderRepository": {

helm/korifi/values.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ kpackImageBuilder:
9292

9393
clusterBuilderName: ""
9494
builderReadinessTimeout: 30s
95-
clusterStackBuildImage: paketobuildpacks/build:full-cnb
96-
clusterStackRunImage: paketobuildpacks/run:full-cnb
95+
clusterStackID: io.buildpacks.stacks.jammy
96+
clusterStackBuildImage: paketobuildpacks/build-jammy-full
97+
clusterStackRunImage: paketobuildpacks/run-jammy-full
9798
builderRepository: ""
9899

99100
statefulsetRunner:

scripts/assets/values-template.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ jobTaskRunner:
2222
jobTTL: 5s
2323

2424
kpackImageBuilder:
25-
clusterStackBuildImage: paketobuildpacks/build:base-cnb
26-
clusterStackRunImage: paketobuildpacks/run:base-cnb
25+
clusterStackID: io.buildpacks.stacks.jammy
26+
clusterStackBuildImage: paketobuildpacks/build-jammy-base
27+
clusterStackRunImage: paketobuildpacks/run-jammy-base

0 commit comments

Comments
 (0)