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 @@ -387,6 +387,10 @@ stringData:
387
387
password: t0p-Secret # required field for kubernetes.io/basic-auth
388
388
` ` `
389
389
390
+ {{< note >}}
391
+ ` stringData` for a Secret does not work well with server-side apply
392
+ {{< /note >}}
393
+
390
394
The basic authentication Secret type is provided only for convenience.
391
395
You can create an `Opaque` type for credentials used for basic authentication.
392
396
However, using the defined and public Secret type (`kubernetes.io/basic-auth`) helps other
@@ -545,6 +549,10 @@ stringData:
545
549
usage-bootstrap-signing: "true"
546
550
` ` `
547
551
552
+ {{< note >}}
553
+ ` stringData` for a Secret does not work well with server-side apply
554
+ {{< /note >}}
555
+
548
556
# # Working with Secrets
549
557
550
558
# ## 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
+ ` stringData` 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
+ ` stringData` 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