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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forKubernetesPatchPropsstatic final classAn implementation forKubernetesPatchProps -
Method Summary
Modifier and TypeMethodDescriptionstatic KubernetesPatchProps.Builderbuilder()The JSON object to pass tokubectl patchwhen the resource is created/updated.The cluster to apply the patch to.default PatchTypeThe patch type to pass tokubectl patch.The full name of the resource to patch (e.g.default StringThe kubernetes API namespace.The JSON object to pass tokubectl patchwhen the resource is removed.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApplyPatch
The JSON object to pass tokubectl patchwhen 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 patchwhen the resource is removed. -
getPatchType
The patch type to pass tokubectl patch.The default type used by
kubectl patchis "strategic".Default: PatchType.STRATEGIC
-
getResourceNamespace
The kubernetes API namespace.Default: "default"
-
builder
- Returns:
- a
KubernetesPatchProps.BuilderofKubernetesPatchProps
-