build: move the autoscaler-webhook example image to GHCR #4879
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.42) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 352 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.351
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #4879"
general
weight: 0.35
markmandel
What type of PR is this?
/kind cleanup
What this PR does / Why we need it:
This is the
autoscaler-webhookstep from #4872. Since #4876 merged, the Publish Example Images workflow has publishedautoscaler-webhook:0.25toghcr.io/agones-dev/agones/examples(run). The image can be pulled anonymously. Before this, GAR only had tags up to0.23. This PR switches the example over to GHCR:examples/autoscaler-webhook/Makefile:PROD_REPOnow defaults toghcr.io/agones-dev/agones/examples. I've removed thegar-checkandcloud-buildtargets, which only worked against GAR.examples/autoscaler-webhook/cloudbuild.yaml: removed. Onlycloud-buildused it.examples/autoscaler-webhook/autoscaler-service.yamlandautoscaler-service-tls.yaml: the image now points at GHCR.build/includes/examples.mk: removed fromtest-examples-on-garandpush-example-golang-images..github/ISSUE_TEMPLATE/golang_version_upgrade.md: removed itsmake cloud-buildstep, and added a note that the workflow publishes the new version on merge. Themake bump-imagestep stays, because it only matches<name>:<version>, whatever the registry.test/e2e/fleetautoscaler_test.go: bumped theautoscaler-webhookdefault version from0.24to0.25to match the Makefile.Older tags stay in
us-docker.pkg.dev/agones-images/examples, so older release notes keep working. I haven't touched release notes undersite/content/en/blog/for the same reason. The docs undersite/don't reference the image directly. Theykubectl applythe example YAML, so they pick up the change.Which issue(s) this PR fixes:
Work on #4872
Did you use AI tools in preparing this PR?:
Y. I used Claude Code to find the references and make the changes, and I reviewed the result.
Special notes for your reviewer:
-
release-example-image-markdownalready usesecho-image-tag, so it will list the GHCR tag. Updating the release templates is a separate checklist item.- The e2e registry default (
EXAMPLE_IMAGE_REGISTRY/--example-image-registry) changes last, once every example the e2e tests use is migrated.test/e2e/fleetautoscaler_test.goasked forautoscaler-webhookat default version0.24, which was never published (the Makefile is at0.25). CI wasn't affected, because it always setsExampleImageTag, but local e2e runs without that tag were. It now defaults to0.25.make echo-image-tagprintsghcr.io/agones-dev/agones/examples/autoscaler-webhook:0.25.make -n minikube-pushre-tags to the GHCR path. Both YAMLs passkubeconform. The tag isn't changing, so the publish workflow will skip it on merge.