KubernetesPatchProps

class aws_cdk.aws_eks.KubernetesPatchProps(*, apply_patch, cluster, resource_name, restore_patch, patch_type=None, resource_namespace=None)

Bases: object

(experimental) Properties for KubernetesPatch.

Parameters
  • apply_patch (Mapping[str, Any]) – (experimental) The JSON object to pass to kubectl patch when the resource is created/updated.

  • cluster (ICluster) – (experimental) The cluster to apply the patch to. [disable-awslint:ref-via-interface]

  • resource_name (str) – (experimental) The full name of the resource to patch (e.g. deployment/coredns).

  • restore_patch (Mapping[str, Any]) – (experimental) The JSON object to pass to kubectl patch when the resource is removed.

  • patch_type (Optional[PatchType]) – (experimental) The patch type to pass to kubectl patch. The default type used by kubectl patch is “strategic”. Default: PatchType.STRATEGIC

  • resource_namespace (Optional[str]) – (experimental) The kubernetes API namespace. Default: “default”

Stability

experimental

Attributes

apply_patch

(experimental) The JSON object to pass to kubectl patch when the resource is created/updated.

Stability

experimental

Return type

Mapping[str, Any]

cluster

(experimental) The cluster to apply the patch to.

[disable-awslint:ref-via-interface]

Stability

experimental

Return type

ICluster

patch_type

(experimental) The patch type to pass to kubectl patch.

The default type used by kubectl patch is “strategic”.

Default

PatchType.STRATEGIC

Stability

experimental

Return type

Optional[PatchType]

resource_name

(experimental) The full name of the resource to patch (e.g. deployment/coredns).

Stability

experimental

Return type

str

resource_namespace

(experimental) The kubernetes API namespace.

Default

“default”

Stability

experimental

Return type

Optional[str]

restore_patch

(experimental) The JSON object to pass to kubectl patch when the resource is removed.

Stability

experimental

Return type

Mapping[str, Any]