@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.954Z") @Stability(value=Stable) public interface KubernetesPatchProps extends software.amazon.jsii.JsiiSerializable
Example:
Cluster cluster;
KubernetesPatch.Builder.create(this, "hello-kub-deployment-label")
.cluster(cluster)
.resourceName("deployment/hello-kubernetes")
.applyPatch(Map.of("spec", Map.of("replicas", 5)))
.restorePatch(Map.of("spec", Map.of("replicas", 3)))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
KubernetesPatchProps.Builder
A builder for
KubernetesPatchProps |
static class |
KubernetesPatchProps.Jsii$Proxy
An implementation for
KubernetesPatchProps |
| Modifier and Type | Method and Description |
|---|---|
static KubernetesPatchProps.Builder |
builder() |
Map<String,Object> |
getApplyPatch()
The JSON object to pass to `kubectl patch` when the resource is created/updated.
|
ICluster |
getCluster()
The cluster to apply the patch to.
|
default PatchType |
getPatchType()
The patch type to pass to `kubectl patch`.
|
String |
getResourceName()
The full name of the resource to patch (e.g.
|
default String |
getResourceNamespace()
The kubernetes API namespace.
|
Map<String,Object> |
getRestorePatch()
The JSON object to pass to `kubectl patch` when the resource is removed.
|
@Stability(value=Stable) @NotNull Map<String,Object> getApplyPatch()
@Stability(value=Stable) @NotNull ICluster getCluster()
[disable-awslint:ref-via-interface]
@Stability(value=Stable) @NotNull String getResourceName()
@Stability(value=Stable) @NotNull Map<String,Object> getRestorePatch()
@Stability(value=Stable) @Nullable default PatchType getPatchType()
The default type used by kubectl patch is "strategic".
Default: PatchType.STRATEGIC
@Stability(value=Stable) @Nullable default String getResourceNamespace()
Default: "default"
@Stability(value=Stable) static KubernetesPatchProps.Builder builder()
KubernetesPatchProps.Builder of KubernetesPatchPropsCopyright © 2022. All rights reserved.