Class KubernetesPatch
A CloudFormation resource which applies/restores a JSON patch into a Kubernetes resource.
Inheritance
System.Object
KubernetesPatch
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class KubernetesPatch : Construct
Syntax (vb)
Public Class KubernetesPatch
Inherits Construct
Remarks
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
KubernetesPatch(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
KubernetesPatch(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
KubernetesPatch(Construct, String, IKubernetesPatchProps) |
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.ByRefValue
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.DeputyBase.DeputyProps
The deputy props
KubernetesPatch(Construct, String, IKubernetesPatchProps)
public KubernetesPatch(Construct scope, string id, IKubernetesPatchProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IKubernetesPatchProps