Interface IKubectlProviderAttributes
Kubectl Provider Attributes.
Namespace: Amazon.CDK.AWS.EKSv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IKubectlProviderAttributes
Syntax (vb)
Public Interface IKubectlProviderAttributes
Remarks
ExampleMetadata: infused
Examples
var handlerRole = Role.FromRoleArn(this, "HandlerRole", "arn:aws:iam::123456789012:role/lambda-role");
// get the serviceToken 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
Properties
| Role | The role of the provider lambda function. |
| ServiceToken | The kubectl provider lambda arn. |
Properties
Role
The role of the provider lambda function.
IRole? Role { get; }
Property Value
Remarks
Only required if you deploy helm charts using this imported provider.
Default: - no role.
ServiceToken
The kubectl provider lambda arn.
string ServiceToken { get; }
Property Value
Remarks
ExampleMetadata: infused