From 74d0c7e43b4cdff8e8d197ec241f5b3b87e116dd Mon Sep 17 00:00:00 2001 From: Ashwin Mehendale Date: Wed, 16 Jul 2025 16:35:34 +0530 Subject: [PATCH] OBSDOCS-2161: Loki object storage command format --- modules/logging-loki-storage-azure.adoc | 6 +++--- modules/logging-loki-storage-odf.adoc | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/logging-loki-storage-azure.adoc b/modules/logging-loki-storage-azure.adoc index 096cef28078c..81029cbfe4ae 100644 --- a/modules/logging-loki-storage-azure.adoc +++ b/modules/logging-loki-storage-azure.adoc @@ -36,7 +36,7 @@ You can create the Loki object storage secret manually by running the following [source,terminal,subs="+quotes"] ---- $ oc -n openshift-logging create secret generic logging-loki-azure \ ---from-literal=environment="" \ ---from-literal=account_name="" \ ---from-literal=container="" + --from-literal=environment="" \ + --from-literal=account_name="" \ + --from-literal=container="" ---- diff --git a/modules/logging-loki-storage-odf.adoc b/modules/logging-loki-storage-odf.adoc index ff2583d3baeb..b090018f0e71 100644 --- a/modules/logging-loki-storage-odf.adoc +++ b/modules/logging-loki-storage-odf.adoc @@ -53,11 +53,11 @@ SECRET_ACCESS_KEY=$(oc get -n openshift-logging secret loki-bucket-odf -o jsonpa [source,terminal,subs="+quotes"] ---- $ oc create -n openshift-logging secret generic logging-loki-odf \ #<1> ---from-literal=access_key_id="" \ ---from-literal=access_key_secret="" \ ---from-literal=bucketnames="" \ ---from-literal=endpoint="https://:" ---from-literal=forcepathstyle="true" # <2> + --from-literal=access_key_id="" \ + --from-literal=access_key_secret="" \ + --from-literal=bucketnames="" \ + --from-literal=endpoint="https://:" + --from-literal=forcepathstyle="true" # <2> ---- <1> `logging-loki-odf` is the name of the secret. <2> AWS endpoints (those ending in `.amazonaws.com`) use a virtual-hosted style by default, which is equivalent to setting the `forcepathstyle` attribute to `false`. Conversely, non-AWS endpoints use a path style, equivalent to setting `forcepathstyle` attribute to `true`. If you need to use a virtual-hosted style with non-AWS S3 services, you must explicitly set `forcepathstyle` to `false`.