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();
 
  • Method Details

    • getApplyPatch

      @Stability(Stable) @NotNull Map<String,Object> getApplyPatch()
      The JSON object to pass to kubectl patch when the resource is created/updated.
    • getCluster

      @Stability(Stable) @NotNull ICluster getCluster()
      The cluster to apply the patch to.

      [disable-awslint:ref-via-interface]

    • getResourceName

      @Stability(Stable) @NotNull String getResourceName()
      The full name of the resource to patch (e.g. deployment/coredns).
    • getRestorePatch

      @Stability(Stable) @NotNull Map<String,Object> getRestorePatch()
      The JSON object to pass to kubectl patch when the resource is removed.
    • getPatchType

      @Stability(Stable) @Nullable default PatchType getPatchType()
      The patch type to pass to kubectl patch.

      The default type used by kubectl patch is "strategic".

      Default: PatchType.STRATEGIC

    • getResourceNamespace

      @Stability(Stable) @Nullable default String getResourceNamespace()
      The kubernetes API namespace.

      Default: "default"

    • builder

      @Stability(Stable) static KubernetesPatchProps.Builder builder()
      Returns:
      a KubernetesPatchProps.Builder of KubernetesPatchProps