Class KubectlProviderAttributes
(experimental) Kubectl Provider Attributes.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Eks.V2.Alpha
Assembly: Amazon.CDK.AWS.Eks.V2.Alpha.dll
Syntax (csharp)
public class KubectlProviderAttributes : IKubectlProviderAttributes
Syntax (vb)
Public Class KubectlProviderAttributes 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
KubectlProviderAttributes() | (experimental) Kubectl Provider Attributes. |
Properties
Role | (experimental) The role of the provider lambda function. |
ServiceToken | (experimental) The kubectl provider lambda arn. |
Constructors
KubectlProviderAttributes()
(experimental) Kubectl Provider Attributes.
public KubectlProviderAttributes()
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
});
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
Remarks
Stability: Experimental