Merge pull request #43668 from pegasas/stringdata

Document snag with Secrets, stringData, and server-side apply
pull/44274/head
Kubernetes Prow Robot 2023-12-08 03:31:14 +01:00 committed by GitHub
commit db823732b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,10 @@ You must use single quotes `''` to escape special characters such as `$`, `\`,
`*`, `=`, and `!` in your strings. If you don't, your shell will interpret these
characters.
{{< note >}}
The `stringData` field for a Secret does not work well with server-side apply.
{{< /note >}}
### Use source files
1. Store the credentials in files:

View File

@ -24,6 +24,10 @@ You can generate a Secret by defining a `secretGenerator` in a
literal values. For example, the following instructions create a Kustomization
file for the username `admin` and the password `1f2d1e2e67df`.
{{< note >}}
The `stringData` field for a Secret does not work well with server-side apply.
{{< /note >}}
### Create the Kustomization file
{{< tabs name="Secret data" >}}