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
1 change: 0 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
{
"customType": "regex",
"managerFilePatterns": [
"/^values.yaml.gotmpl$/",
"/^versions.yaml$/",
"/^Makefile$/",
"/^\\.github/workflows/.+\\.yaml$/"
Expand Down
2 changes: 1 addition & 1 deletion helmfile.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ releases:
file: {{ .Values.certsDir }}/ca.crt
values:
- stacks:
cflinuxfs4: ghcr.io/cloudfoundry/k8s/cflinuxfs4:{{ .Values.stacks.cflinuxfs4.version }}
cflinuxfs4: {{ .Values.stacks.cflinuxfs4.image }}:{{ .Values.stacks.cflinuxfs4.tag }}
- workloadsNamespace: {{ .Values.workloadsNamespace }}
- containerProxyVerifySubjectAltName:
- gorouter
Expand Down
12 changes: 11 additions & 1 deletion scripts/sync-cf-deployment-versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"routing": "routing",
"uaa": "uaa",
"nfs-volume": "nfsVolume",
"cflinuxfs4": "cflinuxfs4",
}

BUILDPACKS = [
Expand All @@ -34,6 +35,12 @@
"staticfile-buildpack",
]

STACKS = [
"cflinuxfs4",
]

MANAGED_RELEASES = set(BOSH_RELEASES.keys()) | set(BUILDPACKS) | set(STACKS)


def latest_cf_deployment_release() -> str:
headers = {"Authorization": f"Bearer {os.environ['GITHUB_TOKEN']}"}
Expand Down Expand Up @@ -116,7 +123,7 @@ def main():
release_versions["cf-deployment"] = manifest_version

for r in releases:
if (r["name"] not in BOSH_RELEASES) and (r["name"] not in BUILDPACKS):
if r["name"] not in MANAGED_RELEASES:
print(
f"Skipping release update of '{r['name']}': not a managed release",
file=sys.stderr,
Expand All @@ -129,6 +136,9 @@ def main():
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']}")
elif r["name"] in STACKS and r["name"] in values.get("stacks", {}):
values["stacks"][r["name"]]["tag"] = str(r["version"])
print(f"Updated stack '{r['name']}' to version {r['version']}")
else:
print(
f"error in release update of '{r['name']}': no value found",
Expand Down
5 changes: 0 additions & 5 deletions values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ certsDir: "./temp/certs"
systemNamespace: "cf-system"
workloadsNamespace: "cf-workloads"

stacks:
cflinuxfs4:
# renovate: dataSource=docker depName=cloudfoundry/cflinuxfs4-release packageName=ghcr.io/cloudfoundry/k8s/cflinuxfs4
version: "1.321.0"

installOptionalComponents: {{ "INSTALL_OPTIONAL_COMPONENTS" | env | default "true" }}
secrets:
dbPassword: {{ requiredEnv "DB_PASSWORD" }}
Expand Down
5 changes: 4 additions & 1 deletion versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ charts:
uaa:
url: cloudfoundry-k8s/uaa
version: 78.16.0

buildpacks:
binary-buildpack:
image: ghcr.io/cloudfoundry/k8s/binary-buildpack
Expand Down Expand Up @@ -90,3 +89,7 @@ buildpacks:
staticfile-buildpack:
image: ghcr.io/cloudfoundry/k8s/staticfile-buildpack
tag: 1.6.38
stacks:
cflinuxfs4:
image: ghcr.io/cloudfoundry/k8s/cflinuxfs4
tag: 1.321.0
Loading