@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-25T18:29:09.993Z")
public interface KubernetesPatchProps
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() |
java.util.Map<java.lang.String,java.lang.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`.
|
java.lang.String |
getResourceName()
The full name of the resource to patch (e.g.
|
default java.lang.String |
getResourceNamespace()
The kubernetes API namespace.
|
java.util.Map<java.lang.String,java.lang.Object> |
getRestorePatch()
The JSON object to pass to `kubectl patch` when the resource is removed.
|
java.util.Map<java.lang.String,java.lang.Object> getApplyPatch()
ICluster getCluster()
[disable-awslint:ref-via-interface]
java.lang.String getResourceName()
java.util.Map<java.lang.String,java.lang.Object> getRestorePatch()
default PatchType getPatchType()
The default type used by kubectl patch
is "strategic".
Default: PatchType.STRATEGIC
default java.lang.String getResourceNamespace()
Default: "default"
static KubernetesPatchProps.Builder builder()
KubernetesPatchProps.Builder
of KubernetesPatchProps