Skip to content

fix version file generation - #2223

Merged
danudey merged 9 commits into
tigera:mainfrom
danudey:fix-version-file-generation
Aug 14, 2025
Merged

danudey merged 9 commits into
tigera:mainfrom
danudey:fix-version-file-generation

Conversation

@danudey

@danudey danudey commented Aug 11, 2025 •

Copy link
Copy Markdown
Collaborator

This PR adds a small golang utility to filter the upstream versions file from Calico. It currently does the following:

  1. Removes components which should not be present (based on what is currently in the docs list)
  2. Renames components whose name differs between upstream and the docs list
  3. Ignores (keeps but does not modify) components from coreos-* or eck-*
  4. Adds an image field to each non-ignored component which does not have one, based either on a static mapping of component name -> image name if present, or assuming the image name and component name is identical otherwise.

The second commit shows the result of the new version filtering utility. A few notes on these results:

  1. cnx-manager-proxy and waf-http-filter components are added; these components were not currently present in the docs releases.json, but do exist as images.
  2. coreos-alertmanager and eck-elasticsearch-operator versions were downgraded in this PR; THIS IS NOT CORRECT; however, I wanted to commit this result anyway to show the unmodified results. This will be fixed upstream so that the generated file will be correct.
  3. Some other filtering is done; calico-private as a component is removed, and the fluentd component is renamed, to match the component name used in docs already. Ideally, we should either fix these upstream or change them in docs so that we're being universally consistent.

@danudey
danudey requested a review from a team as a code owner August 11, 2025 22:56
@danudey danudey self-assigned this Aug 11, 2025
@netlify

netlify Bot commented Aug 11, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview succeeded!

Name Link
🔨 Latest commit 2447da9
🔍 Latest deploy log https://app.netlify.com/projects/tigera/deploys/689e3fd80f270a000866ec49
😎 Deploy Preview https://deploy-preview-2223--tigera.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 24 (🔴 down 2 from production)
Accessibility: 90 (no change from production)
Best Practices: 92 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 11, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for calico-docs-preview-next ready!

Name Link
🔨 Latest commit 2447da9
🔍 Latest deploy log https://app.netlify.com/projects/calico-docs-preview-next/deploys/689e3fd830c475000812e0bc
😎 Deploy Preview https://deploy-preview-2223--calico-docs-preview-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

This commit shows the result of the new version filtering utility. A few
notes:

1. `cnx-manager-proxy` and `waf-http-filter` components are added; these
   components were not present in the docs releases.json, but do exist.
2. `coreos-alertmanager` and `eck-elasticsearch-operator` versions were
   downgraded in this PR; *THIS IS NOT CORRECT*; however, I wanted to
   commit this result anyway to show the unmodified results. This will
   be fixed upstream so that the generated file will be correct.
3. Some other filtering is done; `calico-private` as a component is
   removed, and the `fluentd` component is renamed, to match what exists
   in docs already. Ideally, we should either fix these upstream or
   change them in docs so that we're being universally consistent.
* Update the Makefile to add targets people can use to update the existing versions present in the docs. This will not add new versions if they have been published!
* Update the update-component-versions script to warn if more or less than 1 version is set as latest
* Update the versions/releases files for 3.19-2. The data/versions are the same, but keys are in a different order so a large diff is present.
@danudey
danudey force-pushed the fix-version-file-generation branch from 858abdb to 2447da9 Compare August 14, 2025 19:58
@danudey
danudey merged commit aa0db02 into tigera:main Aug 14, 2025
@danudey
danudey deleted the fix-version-file-generation branch August 14, 2025 23:30
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