Class KubectlProviderAttributes
(experimental) Kubectl Provider Attributes.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Eks.V2.Alpha
Assembly: Amazon.CDK.AWS.Eks.V2.Alpha.dll
Syntax (csharp)
public class KubectlProviderAttributes : Object, IKubectlProviderAttributes
Syntax (vb)
Public Class KubectlProviderAttributes
Inherits Object
Implements IKubectlProviderAttributes
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.LambdaLayer.KubectlV32;
var handlerRole = Role.FromRoleArn(this, "HandlerRole", "arn:aws:iam::123456789012:role/lambda-role");
// get the serivceToken from the custom resource provider
var functionArn = Function.FromFunctionName(this, "ProviderOnEventFunc", "ProviderframeworkonEvent-XXX").FunctionArn;
var kubectlProvider = KubectlProvider.FromKubectlProviderAttributes(this, "KubectlProvider", new KubectlProviderAttributes {
ServiceToken = functionArn,
Role = handlerRole
});
var cluster = Cluster.FromClusterAttributes(this, "Cluster", new ClusterAttributes {
ClusterName = "cluster",
KubectlProvider = kubectlProvider
});
Synopsis
Constructors
Kubectl |
Properties
Role | (experimental) The role of the provider lambda function. |
Service |
(experimental) The kubectl provider lambda arn. |
Constructors
KubectlProviderAttributes()
public KubectlProviderAttributes()
Properties
Role
(experimental) The role of the provider lambda function.
public IRole Role { get; set; }
Property Value
Remarks
Only required if you deploy helm charts using this imported provider.
Default: - no role.
Stability: Experimental
ServiceToken
(experimental) The kubectl provider lambda arn.
public string ServiceToken { get; set; }
Property Value
System.
Remarks
Stability: Experimental