Commit d2a46b5
Loki Secret - Update loki-create-object-storage-secret-cli.adoc
- Command structure needs to be corrected in Loki Object Storage documentation.
- Here is the documentation link: https://docs.redhat.com/en/documentation/red_hat_openshift_logging/6.3/html/configuring_logging/configuring-lokistack-storage#loki-create-object-storage-secret-cli_configuring-the-log-store Current Status:
Create a secret in the directory that contains your certificate and key files by running the following command:
~~~
$ oc create secret generic -n openshift-logging <your_secret_name> \
--from-file=tls.key=<your_key_file>
--from-file=tls.crt=<your_crt_file>
--from-file=ca-bundle.crt=<your_bundle_file>
--from-literal=username=<your_username>
--from-literal=password=<your_password>
~~~
- In the above commands, the "- -" signs are incorrectly placed below the "$" symbol.
- However, they should be aligned parallel to the "oc" command, where the command begins.
- Here is the updated look for all these commands:
Create a secret in the directory that contains your certificate and key files by running the following command:
~~~
$ oc create secret generic -n openshift-logging <your_secret_name> \
--from-file=tls.key=<your_key_file>
--from-file=tls.crt=<your_crt_file>
--from-file=ca-bundle.crt=<your_bundle_file>
--from-literal=username=<your_username>
--from-literal=password=<your_password>
~~~
Verify that a secret was created by running the following command:
~~~
$ oc get secret -n openshift-logging
~~~
The commands will work as it is, but the structure is incorrect.
[new] commit -Fix command formatting in secret creation example
Added the backslash (\) in all lines.1 parent e66da4d commit d2a46b5
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
0 commit comments