← Back to Pull requests

build: move the autoscaler-webhook example image to GHCR #4879

Open
unknown opened this pull request with 352 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 29, 2026 21:42 UTC
Author

What type of PR is this?

/kind cleanup

What this PR does / Why we need it:

This is the autoscaler-webhook step from #4872. Since #4876 merged, the Publish Example Images workflow has published autoscaler-webhook:0.25 to ghcr.io/agones-dev/agones/examples (run). The image can be pulled anonymously. Before this, GAR only had tags up to 0.23. This PR switches the example over to GHCR:

  • examples/autoscaler-webhook/Makefile: PROD_REPO now defaults to ghcr.io/agones-dev/agones/examples. I've removed the gar-check and cloud-build targets, which only worked against GAR.

  • examples/autoscaler-webhook/cloudbuild.yaml: removed. Only cloud-build used it.

  • examples/autoscaler-webhook/autoscaler-service.yaml and autoscaler-service-tls.yaml: the image now points at GHCR.

  • build/includes/examples.mk: removed from test-examples-on-gar and push-example-golang-images.

  • .github/ISSUE_TEMPLATE/golang_version_upgrade.md: removed its make cloud-build step, and added a note that the workflow publishes the new version on merge. The make bump-image step stays, because it only matches <name>:<version>, whatever the registry.

  • test/e2e/fleetautoscaler_test.go: bumped the autoscaler-webhook default version from 0.24 to 0.25 to 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 under site/content/en/blog/ for the same reason. The docs under site/ don't reference the image directly. They kubectl apply the 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:

  • Left as is, following the issue:

  • - release-example-image-markdown already uses echo-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.
  • Also fixed here: test/e2e/fleetautoscaler_test.go asked for autoscaler-webhook at default version 0.24, which was never published (the Makefile is at 0.25). CI wasn't affected, because it always sets ExampleImageTag, but local e2e runs without that tag were. It now defaults to 0.25.

  • Checks: make echo-image-tag prints ghcr.io/agones-dev/agones/examples/autoscaler-webhook:0.25. make -n minikube-push re-tags to the GHCR path. Both YAMLs pass kubeconform. The tag isn't changing, so the publish workflow will skip it on merge.
  • Diff: 352 lines (+264 / -88) across 4 files Reviewer: markmandel Review duration: 1091m
    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
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.5% (MEDIUM) · Higher = larger blast radius
    42.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.6% · Safe to merge
    22.6%