From 8910e837c04344b508da04c4ad942e63bb660169 Mon Sep 17 00:00:00 2001 From: Cristobal Dabed Date: Wed, 29 Apr 2020 13:02:11 +0200 Subject: [PATCH 1/3] Update secret.md We had to escape a password that ended with `=` to make the secret work with our pod. --- content/en/docs/concepts/configuration/secret.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/concepts/configuration/secret.md b/content/en/docs/concepts/configuration/secret.md index 4e34cb748d..29b4b759b8 100644 --- a/content/en/docs/concepts/configuration/secret.md +++ b/content/en/docs/concepts/configuration/secret.md @@ -974,7 +974,7 @@ secret "test-db-secret" created ``` {{< note >}} -Special characters such as `$`, `\`, `*`, and `!` will be interpreted by your [shell](https://en.wikipedia.org/wiki/Shell_(computing)) and require escaping. +Special characters such as `$`, `\`, `*`, `=`, and `!` will be interpreted by your [shell](https://en.wikipedia.org/wiki/Shell_(computing)) and require escaping. In most shells, the easiest way to escape the password is to surround it with single quotes (`'`). For example, if your actual password is `S!B\*d$zDsb`, you should execute the command this way: From 49c056370faa18e9d1ef7343bd8608f1f6119b48 Mon Sep 17 00:00:00 2001 From: Cristobal Dabed <155505+cristobal@users.noreply.github.com> Date: Wed, 29 Apr 2020 15:02:14 +0200 Subject: [PATCH 2/3] Update secret.md Also apply the character `=` to the example. --- content/en/docs/concepts/configuration/secret.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/concepts/configuration/secret.md b/content/en/docs/concepts/configuration/secret.md index 29b4b759b8..73753430e6 100644 --- a/content/en/docs/concepts/configuration/secret.md +++ b/content/en/docs/concepts/configuration/secret.md @@ -979,7 +979,7 @@ In most shells, the easiest way to escape the password is to surround it with si For example, if your actual password is `S!B\*d$zDsb`, you should execute the command this way: ```shell -kubectl create secret generic dev-db-secret --from-literal=username=devuser --from-literal=password='S!B\*d$zDsb' +kubectl create secret generic dev-db-secret --from-literal=username=devuser --from-literal=password='S!B\*d$zDsb=' ``` You do not need to escape special characters in passwords from files (`--from-file`). From 4b46f0028d78d32dd000e9c99dc219567909b9ab Mon Sep 17 00:00:00 2001 From: Cristobal Dabed <155505+cristobal@users.noreply.github.com> Date: Wed, 29 Apr 2020 22:03:21 +0200 Subject: [PATCH 3/3] Update secret.md Update all references of the escaped example password from `S!B\*d$zDsb` to `S!B\*d$zDsb=` --- content/en/docs/concepts/configuration/secret.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/docs/concepts/configuration/secret.md b/content/en/docs/concepts/configuration/secret.md index 73753430e6..d63a2cf3ac 100644 --- a/content/en/docs/concepts/configuration/secret.md +++ b/content/en/docs/concepts/configuration/secret.md @@ -82,12 +82,12 @@ secret "db-user-pass" created ``` {{< note >}} -Special characters such as `$`, `\`, `*`, and `!` will be interpreted by your [shell](https://en.wikipedia.org/wiki/Shell_(computing)) and require escaping. +Special characters such as `$`, `\`, `*`, `=`, and `!` will be interpreted by your [shell](https://en.wikipedia.org/wiki/Shell_(computing)) and require escaping. In most shells, the easiest way to escape the password is to surround it with single quotes (`'`). -For example, if your actual password is `S!B\*d$zDsb`, you should execute the command this way: +For example, if your actual password is `S!B\*d$zDsb=`, you should execute the command this way: ```shell -kubectl create secret generic dev-db-secret --from-literal=username=devuser --from-literal=password='S!B\*d$zDsb' +kubectl create secret generic dev-db-secret --from-literal=username=devuser --from-literal=password='S!B\*d$zDsb=' ``` You do not need to escape special characters in passwords from files (`--from-file`). @@ -976,7 +976,7 @@ secret "test-db-secret" created {{< note >}} Special characters such as `$`, `\`, `*`, `=`, and `!` will be interpreted by your [shell](https://en.wikipedia.org/wiki/Shell_(computing)) and require escaping. In most shells, the easiest way to escape the password is to surround it with single quotes (`'`). -For example, if your actual password is `S!B\*d$zDsb`, you should execute the command this way: +For example, if your actual password is `S!B\*d$zDsb=`, you should execute the command this way: ```shell kubectl create secret generic dev-db-secret --from-literal=username=devuser --from-literal=password='S!B\*d$zDsb='