In 1.10 ClusterInfo.cluster is now ICluster as opposed to Cluster. How to get Cluster from that? #760
shapirov103
started this conversation in
General
Replies: 1 comment
-
An example of an explicit cast from ICluster to cluster: import * as eks from 'aws-cdk-lib/aws-eks';
...
const eksCluster = clusterInfo.cluster as eks.Cluster; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ICluster
refactoring was performed to address cluster import. For imported clusters, the type is ICluster and does not have full function support that is available for newly provisioned clusters. For example, cluster authentication is not accessible for imported clusters.If you are provisioning and maintaining clusters with the blueprints, then you can always rely on the type to be
Cluster
.Example checking for the type of cluster:
Example casting to
Cluster
:Beta Was this translation helpful? Give feedback.
All reactions