Skip to content

Sync gh-pages docs version on canonical release + fix stale/missing OCI version refs#273

Merged
amuraru merged 1 commit into
adobe:masterfrom
amuraru:gh-pages-release-sync
Jul 11, 2026
Merged

Sync gh-pages docs version on canonical release + fix stale/missing OCI version refs#273
amuraru merged 1 commit into
adobe:masterfrom
amuraru:gh-pages-release-sync

Conversation

@amuraru

@amuraru amuraru commented Jul 11, 2026

Copy link
Copy Markdown

Summary

  • Adds a sync-gh-pages-version job to operator-release.yml: for canonical dated release tags, pushes the bumped version/latest_version fields directly to gh-pages's config/_default/config.toml (unprotected branch, no PR needed), using secrets.PAT so the push isn't suppressed and correctly triggers the existing publish-docs.yaml site rebuild. The gh-pages docs version was previously ~10 releases / several months stale with no automation keeping it in sync.
  • Fixes install/upgrade examples across README.md and charts/kafka-operator/README.md(.gotmpl) that omitted --version for oci://ghcr.io/adobe/helm-charts/kafka-operator — OCI registries have no floating "latest" tag, so these examples failed as written.
  • Bumps the stale ZooKeeper operator/image tag reference in README.md from 0.2.15-adobe-20250923 to 0.2.15-adobe-20260423 (verified against GitHub Packages for adobe/zookeeper-operator: zookeeper-operator, zookeeper-operator/zookeeper, helm-charts/zookeeper-operator).

Companion fixes were already pushed directly to gh-pages (same --version gap, de-hardcoded remaining Koperator version refs to use the latest_version Hugo param, and the same ZooKeeper version bump).

Test plan

  • actionlint on the modified workflow — no new findings (all existing findings are pre-existing, in untouched lines)
  • YAML parses (python3 -c "import yaml; yaml.safe_load(...)")
  • Dry-ran the config.toml sed substitutions against the real file fetched from gh-pages — only the two intended fields change, comment preserved
  • Regenerated charts/kafka-operator/README.md via helm-docs to confirm the template renders correctly, then hand-applied only the intended lines (avoided bundling unrelated values-table drift from stale values.yaml/README sync)
  • End-to-end: only verifiable by cutting an actual canonical release tag (not done here)

🤖 Generated with Claude Code

@amuraru amuraru force-pushed the gh-pages-release-sync branch 3 times, most recently from 8247d8a to feb5cb1 Compare July 11, 2026 16:42
… refs

Adds a sync-gh-pages-version job to operator-release.yml that, on every
canonical dated release tag, checks out gh-pages (unprotected branch, no
PR needed) and bumps config/_default/config.toml's version/latest_version
fields, pushing with secrets.PAT rather than GITHUB_TOKEN - pushes
authored by GITHUB_TOKEN don't trigger other workflows, which would
silently skip gh-pages' own publish-docs.yaml deploy. gh-pages' docs
version had drifted ~10 releases stale with nothing keeping it in sync.

That same push now also drives CRD reference doc regeneration: gh-pages'
own .github/workflows/regenerate-crd-docs.yaml (companion change, already
pushed directly to that branch) triggers on push to config.toml and
regenerates content/docs/configurations/crd/*.md from the release's
actual config/base/crds/*.yaml via github.com/giantswarm/crd-docs-generator
- identified as the tool that originally generated those pages via
structural fingerprinting (aliases path convention, additionalProperties
not being recursed, etc. all matching its template/algorithm exactly).
Keeping all generation logic on gh-pages instead of inlining it here
avoids a real GitHub platform requirement: workflow_dispatch-by-name only
works for workflows registered on the repo's default branch, confirmed
by testing - piggybacking on this existing push sidesteps that need
entirely, the same way publish-docs.yaml/ci-docs.yaml already do.

Also:
- Fixes install/upgrade examples across README.md and the chart's README
  that omitted --version for oci://ghcr.io/adobe/helm-charts/kafka-operator
  - OCI registries have no floating "latest" tag, so these failed as
    written.
- Bumps the stale ZooKeeper operator/image tag reference from
  0.28.0-adobe-20250923 to 0.2.15-adobe-20260423 (verified against
  GitHub Packages for adobe/zookeeper-operator).
- Has Renovate also track the gh-pages branch (baseBranchPatterns) for
  its own package.json/Action pins, scoped so the existing gomod-disable
  rule (handled by a separate workflow on master) doesn't also swallow
  gh-pages' Hugo Modules go.mod, and adds a custom-manager entry so
  Renovate tracks crd-docs-generator's pinned release version too.
@amuraru amuraru force-pushed the gh-pages-release-sync branch from feb5cb1 to 88e8430 Compare July 11, 2026 16:44
@amuraru amuraru merged commit 812d0a0 into adobe:master Jul 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant