KubernetesPatchProps

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

Bases: object

__init__(*, apply_patch, cluster, resource_name, restore_patch, patch_type=None, resource_namespace=None)

Properties for KubernetesPatch.

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

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

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

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

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

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

stability :stability: experimental

Return type

None

Attributes

apply_patch

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

stability :stability: experimental

Return type

Mapping[str, Any]

cluster

The cluster to apply the patch to.

[disable-awslint:ref-via-interface]

stability :stability: experimental

Return type

Cluster

patch_type

The patch type to pass to kubectl patch.

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

default :default: PatchType.STRATEGIC

stability :stability: experimental

Return type

Optional[PatchType]

resource_name

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

stability :stability: experimental

Return type

str

resource_namespace

The kubernetes API namespace.

default :default: “default”

stability :stability: experimental

Return type

Optional[str]

restore_patch

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

stability :stability: experimental

Return type

Mapping[str, Any]