Class KubernetesPatch
(experimental) A CloudFormation resource which applies/restores a JSON patch into a Kubernetes resource.
Inheritance
Namespace: Amazon.CDK.AWS.Eks.V2.Alpha
Assembly: Amazon.CDK.AWS.Eks.V2.Alpha.dll
Syntax (csharp)
public class KubernetesPatch : Construct
Syntax (vb)
Public Class KubernetesPatch
Inherits Construct
Remarks
Stability: Experimental
See: https://kubernetes.io/docs/tasks/run-application/update-api-object-kubectl-patch/
ExampleMetadata: infused
Examples
Cluster cluster;
new KubernetesPatch(this, "hello-kub-deployment-label", new KubernetesPatchProps {
Cluster = cluster,
ResourceName = "deployment/hello-kubernetes",
ApplyPatch = new Dictionary<string, object> { { "spec", new Dictionary<string, int> { { "replicas", 5 } } } },
RestorePatch = new Dictionary<string, object> { { "spec", new Dictionary<string, int> { { "replicas", 3 } } } }
});
Synopsis
Constructors
Kubernetes |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Kubernetes |
Used by jsii to construct an instance of this class from DeputyProps |
Kubernetes |
Constructors
KubernetesPatch(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected KubernetesPatch(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
KubernetesPatch(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected KubernetesPatch(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
KubernetesPatch(Construct, String, IKubernetesPatchProps)
public KubernetesPatch(Construct scope, string id, IKubernetesPatchProps props)
Parameters
- scope Constructs.
Construct - id System.
String - props IKubernetes
Patch Props
Remarks
Stability: Experimental