From 8bd5bc5978c3cef5e549f968124ab4ca38609d47 Mon Sep 17 00:00:00 2001 From: xeniape Date: Fri, 25 Apr 2025 16:38:08 +0200 Subject: [PATCH] docs: Update helm install commands --- .../opa/examples/getting_started/getting_started.sh | 9 +-------- .../opa/examples/getting_started/getting_started.sh.j2 | 9 +-------- docs/modules/opa/pages/getting_started/installation.adoc | 8 ++------ docs/templating_vars.yaml | 4 ++-- 4 files changed, 6 insertions(+), 24 deletions(-) diff --git a/docs/modules/opa/examples/getting_started/getting_started.sh b/docs/modules/opa/examples/getting_started/getting_started.sh index ef33dd75..92f32afa 100755 --- a/docs/modules/opa/examples/getting_started/getting_started.sh +++ b/docs/modules/opa/examples/getting_started/getting_started.sh @@ -19,16 +19,9 @@ fi case "$1" in "helm") -echo "Adding 'stackable-dev' Helm Chart repository" -# tag::helm-add-repo[] -helm repo add stackable-dev https://repo.stackable.tech/repository/helm-dev/ -# end::helm-add-repo[] -echo "Updating Helm repo" -helm repo update - echo "Installing operators with Helm" # tag::helm-install-operators[] -helm install --wait opa-operator stackable-dev/opa-operator --version 0.0.0-dev +helm install --wait opa-operator oci://oci.stackable.tech/sdp-charts/opa-operator --version 0.0.0-dev # end::helm-install-operators[] ;; "stackablectl") diff --git a/docs/modules/opa/examples/getting_started/getting_started.sh.j2 b/docs/modules/opa/examples/getting_started/getting_started.sh.j2 index 17648844..8aff49c3 100755 --- a/docs/modules/opa/examples/getting_started/getting_started.sh.j2 +++ b/docs/modules/opa/examples/getting_started/getting_started.sh.j2 @@ -19,16 +19,9 @@ fi case "$1" in "helm") -echo "Adding 'stackable-dev' Helm Chart repository" -# tag::helm-add-repo[] -helm repo add {{ helm.repo_name }} {{ helm.repo_url }} -# end::helm-add-repo[] -echo "Updating Helm repo" -helm repo update - echo "Installing operators with Helm" # tag::helm-install-operators[] -helm install --wait opa-operator {{ helm.repo_name }}/opa-operator --version {{ versions.opa }} +helm install --wait opa-operator oci://{{ helm.repo_url }}/{{ helm.repo_name }}/opa-operator --version {{ versions.opa }} # end::helm-install-operators[] ;; "stackablectl") diff --git a/docs/modules/opa/pages/getting_started/installation.adoc b/docs/modules/opa/pages/getting_started/installation.adoc index 14fdf999..19722fa6 100644 --- a/docs/modules/opa/pages/getting_started/installation.adoc +++ b/docs/modules/opa/pages/getting_started/installation.adoc @@ -34,14 +34,10 @@ Helm:: + -- You can also use Helm to install the operator. -Add the Stackable Helm repository: -[source,shell] ----- -include::example$getting_started/getting_started.sh[tag=helm-add-repo] ----- +NOTE: `helm repo` subcommands are not supported for OCI registries. The operators are installed directly, without adding the Helm Chart repository first. -Then install the Stackable OPA operator: +Install the Stackable OPA operator: [source,shell] ---- diff --git a/docs/templating_vars.yaml b/docs/templating_vars.yaml index cd5d1533..ac90cc04 100644 --- a/docs/templating_vars.yaml +++ b/docs/templating_vars.yaml @@ -1,6 +1,6 @@ --- helm: - repo_name: stackable-dev - repo_url: https://repo.stackable.tech/repository/helm-dev/ + repo_name: sdp-charts + repo_url: oci.stackable.tech versions: opa: 0.0.0-dev