Interface KubernetesPatchProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
KubernetesPatchProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.644Z")
@Stability(Stable)
public interface KubernetesPatchProps
extends software.amazon.jsii.JsiiSerializable
Properties for KubernetesPatch.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forKubernetesPatchProps
static final class
An implementation forKubernetesPatchProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic KubernetesPatchProps.Builder
builder()
The JSON object to pass tokubectl patch
when the resource is created/updated.The cluster to apply the patch to.default PatchType
The patch type to pass tokubectl patch
.The full name of the resource to patch (e.g.default String
The kubernetes API namespace.The JSON object to pass tokubectl patch
when the resource is removed.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApplyPatch
The JSON object to pass tokubectl patch
when the resource is created/updated. -
getCluster
The cluster to apply the patch to.[disable-awslint:ref-via-interface]
-
getResourceName
The full name of the resource to patch (e.g.deployment/coredns
). -
getRestorePatch
The JSON object to pass tokubectl patch
when the resource is removed. -
getPatchType
The patch type to pass tokubectl patch
.The default type used by
kubectl patch
is "strategic".Default: PatchType.STRATEGIC
-
getResourceNamespace
The kubernetes API namespace.Default: "default"
-
builder
- Returns:
- a
KubernetesPatchProps.Builder
ofKubernetesPatchProps
-