Skip to content

Commit

Permalink
fix(eks): missing question marks cause update cluster setting failure
Browse files Browse the repository at this point in the history
introduced by aws#21185

Fixes: aws#21436
  • Loading branch information
guessi committed Aug 4, 2022
1 parent e9233fa commit 7e1b1dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,11 @@ function parseProps(props: any): aws.EKS.CreateClusterRequest {
parsed.resourcesVpcConfig.endpointPublicAccess = parsed.resourcesVpcConfig.endpointPublicAccess === 'true';
}

if (typeof (parsed.logging?.clusterLogging[0].enabled) === 'string') {
if (typeof (parsed.logging?.clusterLogging[0]?.enabled) === 'string') {
parsed.logging.clusterLogging[0].enabled = parsed.logging.clusterLogging[0].enabled === 'true';
}

if (typeof (parsed.logging?.clusterLogging[1].enabled) === 'string') {
if (typeof (parsed.logging?.clusterLogging[1]?.enabled) === 'string') {
parsed.logging.clusterLogging[1].enabled = parsed.logging.clusterLogging[1].enabled === 'false';
}

Expand Down

0 comments on commit 7e1b1dd

Please sign in to comment.