Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions helmfile.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,12 @@ releases:
enabled: true
certificateSecret: all-in-one-tls
- fileserver:
buildpacks:
{{ range $name, $buildpack := .Values.buildpacks }}
{{ $name }}:
image: {{ $buildpack.image }}
tag: {{ $buildpack.tag }}
{{ end }}
enabled: true
- sshProxy:
enabled: true
Expand Down
20 changes: 13 additions & 7 deletions scripts/sync-cf-deployment-versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"routing": "routing",
"uaa": "uaa",
}

BUILDPACKS = [ "java-buildpack", "nodejs-buildpack", "go-buildpack", "binary-buildpack", "dotnet-core-buildpack", "nginx-buildpack", "php-buildpack", "python-buildpack", "r-buildpack", "ruby-buildpack", "staticfile-buildpack"]


def latest_cf_deployment_release() -> str:
Expand Down Expand Up @@ -68,16 +70,20 @@ def main():
release_versions["cf-deployment"] = manifest_version

for r in releases:
if r["name"] not in BOSH_RELEASES:
if (r["name"] not in BOSH_RELEASES) and (r["name"] not in BUILDPACKS):
print(f"Skipping release update of '{r['name']}': not a managed release", file=sys.stderr)
continue
yaml_key = BOSH_RELEASES[r["name"]]
if yaml_key not in values.get("charts", {}):
print(f"error in release update of '{r['name']}': no value found", file=sys.stderr)
sys.exit(1)
yaml_key = BOSH_RELEASES.get(r["name"], "unknown")
if yaml_key in values.get("charts", {}):
values["charts"][yaml_key]["version"] = str(r["version"])
print(f"Updated release '{r['name']}' to version {r['version']}")
elif r["name"] in BUILDPACKS and r["name"] in values.get("buildpacks", {}):
values["buildpacks"][r["name"]]["tag"] = str(r["version"])
print(f"Updated buildpack '{r['name']}' to version {r['version']}")
else:
print(f"error in release update of '{r['name']}': no value found", file=sys.stderr)
sys.exit(1)

values["charts"][yaml_key]["version"] = str(r["version"])
print(f"Updated release '{r['name']}' to version {r['version']}")

with open(values_file, "w") as f:
yaml.dump(values, f)
Expand Down
14 changes: 7 additions & 7 deletions scripts/upload_buildpacks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

set -e

INSTALLED_BUILPACKS=$(cf curl /v3/buildpacks | jq -r '.resources[] | "#" + .name + "#"')
INSTALLED_BUILDPACKS=$(cf curl /v3/buildpacks | jq -r '.resources[] | "#" + .name + "#"')

buildpacks=("java_buildpack" "nodejs_buildpack" "go_buildpack" "binary_buildpack")
buildpacks=("java-buildpack" "nodejs-buildpack" "go-buildpack" "binary-buildpack")
position=1

if [[ $ALL_BUILDPACKS == "true" ]]; then
buildpacks+=("dotnet-core_buildpack" "nginx_buildpack" "php_buildpack" "python_buildpack" "r_buildpack" "ruby_buildpack" "staticfile_buildpack")
buildpacks+=("dotnet-core-buildpack" "nginx-buildpack" "php-buildpack" "python-buildpack" "r-buildpack" "ruby-buildpack" "staticfile-buildpack")
fi


for buildpack in "${buildpacks[@]}"; do
if [[ $INSTALLED_BUILPACKS =~ "#$buildpack#" ]]; then
cf update-buildpack "$buildpack" -p "http://fileserver.127-0-0-1.nip.io/${buildpack}-cflinuxfs4.zip"
buildpack_name=$(echo "$buildpack" | sed 's/-buildpack/_buildpack/')
if [[ $INSTALLED_BUILDPACKS =~ "#$buildpack_name#" ]]; then
cf update-buildpack "$buildpack_name" -p "http://fileserver.127-0-0-1.nip.io/${buildpack}/${buildpack}.zip"
else
cf create-buildpack "$buildpack" "http://fileserver.127-0-0-1.nip.io/${buildpack}-cflinuxfs4.zip" "$position"
cf create-buildpack "$buildpack_name" "http://fileserver.127-0-0-1.nip.io/${buildpack}/${buildpack}.zip" "$position"
fi
((position++))
done
43 changes: 39 additions & 4 deletions versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ charts:
version: 1.235.0
cfNetworking:
url: cloudfoundry-k8s/cf-networking
version: 3.114.0
version: 3.115.0
cilium:
url: cilium/cilium
version: 1.18.4
Expand All @@ -13,7 +13,7 @@ charts:
version: 2.15.8
diego:
url: cloudfoundry-k8s/diego
version: 0.23.0
version: 2.138.0
istioBase:
url: istio/base
version: 1.29.1
Expand All @@ -26,7 +26,7 @@ charts:
version: 0.6.3
logCache:
url: cloudfoundry-k8s/log-cache
version: 3.2.8
version: 3.2.10
loggregator:
url: cloudfoundry-k8s/loggregator
version: 107.0.31
Expand All @@ -52,7 +52,42 @@ charts:
version: 16.7.27
routing:
url: cloudfoundry-k8s/routing
version: 0.382.0
version: 0.384.0
uaa:
url: cloudfoundry-k8s/uaa
version: 78.16.0

buildpacks:
binary-buildpack:
image: ghcr.io/cloudfoundry/k8s/binary-buildpack
tag: 1.1.26
dotnet-core-buildpack:
image: ghcr.io/cloudfoundry/k8s/dotnet-core-buildpack
tag: 2.4.51
java-buildpack:
image: ghcr.io/cloudfoundry/k8s/java-buildpack
tag: 5.0.4
go-buildpack:
image: ghcr.io/cloudfoundry/k8s/go-buildpack
tag: 1.10.47
nginx-buildpack:
image: ghcr.io/cloudfoundry/k8s/nginx-buildpack
tag: 1.2.38
nodejs-buildpack:
image: ghcr.io/cloudfoundry/k8s/nodejs-buildpack
tag: 1.9.2
php-buildpack:
image: ghcr.io/cloudfoundry/k8s/php-buildpack
tag: 5.0.6
python-buildpack:
image: ghcr.io/cloudfoundry/k8s/python-buildpack
tag: 1.9.1
r-buildpack:
image: ghcr.io/cloudfoundry/k8s/r-buildpack
tag: 1.2.28
ruby-buildpack:
image: ghcr.io/cloudfoundry/k8s/ruby-buildpack
tag: 1.11.1
staticfile-buildpack:
image: ghcr.io/cloudfoundry/k8s/staticfile-buildpack
tag: 1.6.38
Loading