You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extra:
An example of an invalid patch that will not cause an error has been
added to Patch docs.
Signed-off-by: Jessie Chatham Spencer <[email protected]>
/// Replace the ephemeral containers sub resource entirely.
145
+
///
146
+
/// This functions in the same way as [`Api::replace`] except only `.spec.ephemeralcontainers` is replaced, everything else is ignored.
147
+
///
148
+
/// Note that ephemeral containers may **not** be changed or removed once attached to a pod.
149
+
///
150
+
///
151
+
/// You way want to patch the underlying resource to gain access to the main container process,
152
+
/// see the [documentation](https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/) for `sharedProcessNamespace`.
153
+
///
154
+
/// See the Kubernetes [documentation](https://kubernetes.io/docs/concepts/workloads/pods/ephemeral-containers/#what-is-an-ephemeral-container) for more details.
155
+
///
156
+
/// [`Api::patch_ephemeral_containers`] may be more ergonomic, as you can will avoid having to first fetch the
157
+
/// existing subresources with an approriate merge strategy, see the examples for more details.
158
+
///
159
+
/// Example of using `replace_ephemeral_containers`:
/// Any partial object containing the ephemeral containers
210
+
/// sub resource is valid as long as the complete structure
211
+
/// for the object is present, as shown below.
212
+
///
213
+
/// You way want to patch the underlying resource to gain access to the main container process,
214
+
/// see the [docs](https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/) for `sharedProcessNamespace`.
215
+
///
216
+
/// Ephemeral containers may **not** be changed or removed once attached to a pod.
217
+
/// Therefore if the chosen merge strategy overwrites the existing ephemeral containers,
218
+
/// you will have to fetch the existing ephemeral containers first.
219
+
/// In order to append your new ephemeral containers to the existing list before patching. See some examples and
220
+
/// discussion related to merge strategies in Kubernetes
221
+
/// [here](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/#use-a-json-merge-patch-to-update-a-deployment). The example below uses a strategic merge patch which does not require
222
+
///
223
+
/// See the `Kubernetes` [documentation](https://kubernetes.io/docs/concepts/workloads/pods/ephemeral-containers/)
224
+
/// for more information about ephemeral containers.
225
+
///
226
+
///
227
+
/// Example of using `patch_ephemeral_containers`:
0 commit comments