-
Notifications
You must be signed in to change notification settings - Fork 42
Add script to generate versions.adoc #1008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
hardys
wants to merge
2
commits into
suse-edge:main
Choose a base branch
from
hardys:3.5_versions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,147 @@ | ||
| // NOTE - Generated by versions.adoc.j2, do not modify versions.adoc directly! | ||
| {% set release_manifest_edge_version = spec.releaseVersion %} | ||
| {%- set release_manifest_edge_version_short = spec.releaseVersion.split(".")[:2] | join(".") %} | ||
| {%- set release_manifest_rke2_version = spec.components.kubernetes.rke2.version %} | ||
| {%- set release_manifest_k3s_version = spec.components.kubernetes.k3s.version %} | ||
| {%- set release_manifest_slmicro_version = spec.components.operatingSystem.version %} | ||
| {%- set release_manifest_rancher_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "rancher") | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_longhorn_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "longhorn") | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_longhorn_crd_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "longhorn") | map(attribute="dependencyCharts") | first | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_neuvector_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "neuvector") | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_neuvector_crd_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "neuvector") | map(attribute="dependencyCharts") | first | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_neuvector_dashboard_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "neuvector") | map(attribute="addonCharts") | first | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_chart_major = release_manifest_edge_version_short | replace(".", "0") %} | ||
| {%- set release_manifest_metallb_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "metallb") | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_eco_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "endpoint-copier-operator") | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_cdi_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "cdi") | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_akri_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "akri") | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_akri_dashboard_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "akri") | map(attribute="addonCharts") | first | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_metal3_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "metal3") | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_kubevirt_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "kubevirt") | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_kubevirt_dashboard_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "kubevirt") | map(attribute="addonCharts") | first | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_elemental_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "elemental-operator") | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_elemental_crd_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "elemental-operator") | map(attribute="dependencyCharts") | first | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_elemental_dashboard_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "elemental-operator") | map(attribute="addonCharts") | first | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_sriov_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "sriov-network-operator") | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_sriov_crd_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "sriov-network-operator") | map(attribute="dependencyCharts") | first | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_turtles_providers_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "rancher-turtles-providers") | map(attribute="version") | list | first %} | ||
| {%- set release_manifest_cert_manager_version = spec.components.workloads.helm | selectattr("releaseName", "equalto", "cert-manager") | map(attribute="version") | list | first %} | ||
| // ============================================================================ | ||
| :revdate: %%REVDATE%% | ||
| :page-revdate: {revdate} | ||
| // Automatic Version Substitutions | ||
| // | ||
| // The values in here are used throughout the documentation. Updating them here | ||
| // will propagate throughout the rest of the documentation. See the section at | ||
| // the bottom for details on versioning instances that cannot be handled in this | ||
| // fashion. | ||
| // ============================================================================ | ||
|
|
||
| // == General Edge == | ||
| :version-edge: {{ release_manifest_edge_version_short }} | ||
| :version-edge-registry: {{ release_manifest_edge_version_short }} | ||
|
|
||
| // == Multi-Linux Manager == | ||
| :version-mlm: 5.0.6 | ||
|
|
||
| // == Edge Image Builder == | ||
| :version-eib: {{ version_eib }} | ||
| :version-eib-api-latest: 1.3 | ||
|
|
||
| // KubeVirt | ||
| // This is used in download URLs and filenames from upstream, so it must have | ||
| // the leading "v". If needed, a separate version-kubevirt should be created | ||
| // with simply the version number itself. | ||
| :version-kubevirt-release: v{{ release_manifest_kubevirt_version .split("+up") | last }} | ||
|
|
||
| // == Component Versions == | ||
| :version-rancher-prime: {{ release_manifest_rancher_version }} | ||
| :version-cert-manager: {{ release_manifest_cert_manager_version }} | ||
| :version-elemental-operator: {{ release_manifest_elemental_version }} | ||
| :version-longhorn: {{ release_manifest_longhorn_version.split("+up") | last }} | ||
| :version-neuvector: 5.4.8 | ||
| :version-kubevirt: {{ release_manifest_kubevirt_version .split("+up") | last }} | ||
| :version-endpoint-copier-operator: {{ release_manifest_eco_version.split("+up") | last }} | ||
| :version-suc: {{ version_suc }} | ||
| :version-fleet: {{ version_fleet }} | ||
| :version-cdi: {{ release_manifest_cdi_version.split("+up") | last }} | ||
| :version-nvidia-device-plugin: 0.14.5 | ||
| :version-kiwi-builder: {{ version_kiwi_builder }} | ||
|
|
||
| // == Nessie == | ||
| :version-nessie: {{ version_nessie }} | ||
|
|
||
| // == Non-Release Manifest Charts == | ||
| :version-suc-chart: {{ version_suc_chart }} | ||
| :version-upgrade-controller-chart: {{ version_upgrade_controller_chart }} | ||
| :version-nvidia-device-plugin-chart: v0.14.5 | ||
|
|
||
| // == Release Tags == | ||
| :release-tag-eib: release-1.3 | ||
| :release-tag-telco-cloud: release-{{ release_manifest_edge_version_short }} | ||
| :release-tag-fleet-examples: release-{{ release_manifest_edge_version }} | ||
| :release-tag-rancher: v{{ release_manifest_rancher_version }} | ||
|
|
||
|
|
||
| // ============================================================================ | ||
| // Release Manifest Versions | ||
| // | ||
| // The following are derived from the `releaseName` field of the release manifest | ||
| // and should not be renamed without thinking through the implications. | ||
| // ============================================================================ | ||
|
|
||
| :version-kubernetes-k3s: {{ release_manifest_k3s_version }} | ||
| :version-kubernetes-rke2: {{ release_manifest_rke2_version }} | ||
|
|
||
| :version-operatingsystem: {{ release_manifest_slmicro_version }} | ||
|
|
||
| :version-cdi-chart: {{ release_manifest_cdi_version }} | ||
| :version-endpoint-copier-operator-chart: {{ release_manifest_eco_version }} | ||
| :version-kubevirt-chart: {{ release_manifest_kubevirt_version }} | ||
| :version-kubevirt-dashboard-extension-chart: {{ release_manifest_kubevirt_dashboard_version }} | ||
| :version-longhorn-chart: {{ release_manifest_longhorn_version }} | ||
| :version-longhorn-crd-chart: {{ release_manifest_longhorn_crd_version }} | ||
| :version-longhorn-docs: {{ release_manifest_longhorn_version.split("+up") | last }} | ||
| :version-metal3-chart: {{ release_manifest_metal3_version }} | ||
| :version-metallb-chart: {{ release_manifest_metallb_version }} | ||
| :version-neuvector-chart: {{ release_manifest_neuvector_version }} | ||
| :version-neuvector-crd-chart: {{ release_manifest_neuvector_crd_version }} | ||
| :version-rancher-turtles-providers-chart: {{ release_manifest_turtles_providers_version }} | ||
| :version-sriov-crd-chart: {{ release_manifest_sriov_crd_version }} | ||
| :version-sriov-network-operator-chart: {{ release_manifest_sriov_version }} | ||
| :version-sriov-upstream: {{ release_manifest_sriov_version.split("+up") | last }} | ||
|
|
||
| // capi-provider-metal3 | ||
| // edu, Oct 9, 2025 :: Used to link the CRDs on the docs site like | ||
| // https://doc.crds.dev/github.com/metal3-io/cluster-api-provider-metal3/infrastructure.cluster.x-k8s.io/Metal3MachineTemplate/v1beta1@v1.11.0#spec-template-spec-hostSelector-matchLabels | ||
| :version-capi-provider-metal3: v1beta1@v1.10.2 | ||
|
|
||
| // ============================================================================ | ||
| // Derived Version Entries | ||
| // | ||
| // The following are derived from previously defined versions, ensure they | ||
| // are not using elements defined below them | ||
| // | ||
| // ============================================================================ | ||
|
|
||
| // == SUSE Linux Micro == | ||
| :micro-base-image-raw: SL-Micro.x86_64-{version-operatingsystem}-Base-GM.raw | ||
| :micro-base-rt-image-raw: SL-Micro.x86_64-{version-operatingsystem}-Base-RT-GM.raw | ||
| :micro-base-rt-image-iso: SL-Micro.x86_64-{version-operatingsystem}-Base-RT-SelfInstall-GM.install.iso | ||
| :micro-base-image-iso: SL-Micro.x86_64-{version-operatingsystem}-Base-SelfInstall-GM.install.iso | ||
| :micro-default-image-iso: SL-Micro.x86_64-{version-operatingsystem}-Default-SelfInstall-GM.install.iso | ||
|
|
||
|
|
||
| // ============================================================================ | ||
| // Manual Version Entries | ||
| // | ||
| // The following files mention versions that cannot be handled through | ||
| // substitution. For example, EIB definitions that contain a list of | ||
| // images to embed. These files should be manually reviewed on a per-release | ||
| // basis to ensure accuracy. | ||
| // ============================================================================ | ||
|
|
||
| // asciidoc/guides/air-gapped-eib-deployments.adoc | ||
| // asciidoc/product/atip-management-cluster.adoc | ||
| // asciidoc/product/atip-automated-provision.adoc | ||
| // asciidoc/edge-book/releasenotes.adoc |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this attribute is unused so can be removed, but the version-kubevirt-release above is wrong, we need to reference the upstream version which isn't actually the +up in this case