Skip to content

Commit 920a68b

Browse files
committed
Document snag with stringData and server-side apply
1 parent cdb1e28 commit 920a68b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

content/en/docs/tasks/configmap-secret/managing-secret-using-kubectl.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ You must use single quotes `''` to escape special characters such as `$`, `\`,
4040
`*`, `=`, and `!` in your strings. If you don't, your shell will interpret these
4141
characters.
4242

43+
{{< note >}}
44+
The `stringData` field for a Secret does not work well with server-side apply.
45+
{{< /note >}}
46+
4347
### Use source files
4448

4549
1. Store the credentials in files:

content/en/docs/tasks/configmap-secret/managing-secret-using-kustomize.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ You can generate a Secret by defining a `secretGenerator` in a
2424
literal values. For example, the following instructions create a Kustomization
2525
file for the username `admin` and the password `1f2d1e2e67df`.
2626

27+
{{< note >}}
28+
The `stringData` field for a Secret does not work well with server-side apply.
29+
{{< /note >}}
30+
2731
### Create the Kustomization file
2832

2933
{{< tabs name="Secret data" >}}

0 commit comments

Comments
 (0)