File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -380,6 +380,10 @@ stringData:
380
380
password: t0p-Secret # required field for kubernetes.io/basic-auth
381
381
` ` `
382
382
383
+ {{< note >}}
384
+ The `stringData` field for a Secret does not work well with server-side apply.
385
+ {{< /note >}}
386
+
383
387
The basic authentication Secret type is provided only for convenience.
384
388
You can create an `Opaque` type for credentials used for basic authentication.
385
389
However, using the defined and public Secret type (`kubernetes.io/basic-auth`) helps other
@@ -539,6 +543,10 @@ stringData:
539
543
usage-bootstrap-signing: "true"
540
544
` ` `
541
545
546
+ {{< note >}}
547
+ The `stringData` field for a Secret does not work well with server-side apply.
548
+ {{< /note >}}
549
+
542
550
# # Working with Secrets
543
551
544
552
# ## Creating a Secret
Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ stringData:
109
109
password: <password>
110
110
` ` `
111
111
112
+ {{< note >}}
113
+ The ` stringData` field for a Secret does not work well with server-side apply.
114
+ {{< /note >}}
115
+
112
116
When you retrieve the Secret data, the command returns the encoded values,
113
117
and not the plaintext values you provided in `stringData`.
114
118
@@ -152,6 +156,10 @@ stringData:
152
156
username: administrator
153
157
` ` `
154
158
159
+ {{< note >}}
160
+ The `stringData` field for a Secret does not work well with server-side apply.
161
+ {{< /note >}}
162
+
155
163
The `Secret` object is created as follows :
156
164
157
165
` ` ` yaml
You can’t perform that action at this time.
0 commit comments