Skip to content

Commit

Permalink
Merge pull request #43668 from pegasas/stringdata
Browse files Browse the repository at this point in the history
Document snag with Secrets, stringData, and server-side apply
  • Loading branch information
k8s-ci-robot authored Dec 8, 2023
2 parents d675ea9 + 920a68b commit db82373
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" >}}
Expand Down

0 comments on commit db82373

Please sign in to comment.