This is an automated email from the ASF dual-hosted git repository.
gfournier pushed a commit to branch release-2.4.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-2.4.x by this push:
new e7de094fa fix(docs): last release version
e7de094fa is described below
commit e7de094fa0b6e79d827526a5ded8d6a8a75e844f
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Tue Dec 3 08:15:59 2024 +0100
fix(docs): last release version
---
docs/antora.yml | 1 +
docs/modules/ROOT/pages/installation/installation.adoc | 4 ++--
script/update_docs.sh | 3 +++
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/docs/antora.yml b/docs/antora.yml
index d74e25856..9fb69d7ec 100644
--- a/docs/antora.yml
+++ b/docs/antora.yml
@@ -26,6 +26,7 @@ nav:
asciidoc:
attributes:
requires: "'util=camel-website-util,ck=xref:js/ck.js'"
+ last-released-version: 2.4.0
camel-kamelets-version: '4.4.1'
camel-kamelets-docs-version: 4.4.x
camel-k-runtime-version: 3.8.1
diff --git a/docs/modules/ROOT/pages/installation/installation.adoc
b/docs/modules/ROOT/pages/installation/installation.adoc
index 71cca15c2..c41659183 100644
--- a/docs/modules/ROOT/pages/installation/installation.adoc
+++ b/docs/modules/ROOT/pages/installation/installation.adoc
@@ -45,10 +45,10 @@ https://kustomize.io[Kustomize] provides a declarative
approach to the configura
If you don't need to provide any configuration nor the registry (ie, in
Openshift), you can apply this simple one liner:
```
-$ kubectl apply -k
github.com/apache/camel-k/install/overlays/openshift/descoped?ref=v2.4.0
--server-side
+$ kubectl apply -k
github.com/apache/camel-k/install/overlays/openshift/descoped?ref=v{last-released-version}
--server-side
```
-You can specify as `ref` parameter the version you're willing to install (ie,
`v2.4.0`). The command above will install a descoped (global) operator in the
camel-k namespace.
+You can specify as `ref` parameter the version you're willing to install (ie,
`v{last-released-version}`). The command above will install a descoped (global)
operator in the camel-k namespace.
NOTE: if you're not installing in Openshift you will need to manually change
the IntegrationPlatform registry configuration as the operator won't be able to
find any valid registry address (see section below).
diff --git a/script/update_docs.sh b/script/update_docs.sh
index 829f8f764..9b963ab05 100755
--- a/script/update_docs.sh
+++ b/script/update_docs.sh
@@ -18,6 +18,7 @@
location=$(dirname $0)
echo "Scraping information from Makefile"
+LAST_RELEASED_VERSION=$(grep '^LAST_RELEASED_VERSION ?= ' Makefile | sed
's/^.* \?= //')
RUNTIME_VERSION=$(grep '^DEFAULT_RUNTIME_VERSION := ' Makefile | sed 's/^.*
\?= //')
CATALOG="$location/../pkg/resources/resources/camel-catalog-$RUNTIME_VERSION.yaml"
@@ -66,11 +67,13 @@ fi
CAMEL_QUARKUS_DOCS_VERSION="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}.x"
QUARKUS_VERSION=$(yq '.spec.runtime.metadata."quarkus.version"' $CATALOG)
+echo "Camel K latest version: $LAST_RELEASED_VERSION"
echo "Camel K Runtime version: $RUNTIME_VERSION"
echo "Camel version: $CAMEL_VERSION"
echo "Camel Quarkus version: $CAMEL_QUARKUS_VERSION"
echo "Quarkus version: $QUARKUS_VERSION"
+yq -i ".asciidoc.attributes.last-released-version =
\"$LAST_RELEASED_VERSION\"" $location/../docs/antora.yml
yq -i ".asciidoc.attributes.camel-k-runtime-version = \"$RUNTIME_VERSION\""
$location/../docs/antora.yml
yq -i ".asciidoc.attributes.camel-version = \"$CAMEL_VERSION\""
$location/../docs/antora.yml
yq -i ".asciidoc.attributes.camel-docs-version = \"$CAMEL_DOCS_VERSION\""
$location/../docs/antora.yml