EKS: EncryptionConfig should be an empty list by default (#4986)

This commit is contained in:
Bert Blommers 2022-03-29 22:40:23 +00:00 committed by GitHub
parent cf2690ca1e
commit c57db140f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class Cluster:
encryption_config=None,
):
if encryption_config is None:
encryption_config = dict()
encryption_config = []
if tags is None:
tags = dict()

View File

@ -75,6 +75,7 @@ TestAccAWSEcrRepositoryPolicy
TestAccAWSEFSAccessPoint
TestAccAWSEFSMountTarget
TestAccAWSEgressOnlyInternetGateway
TestAccAWSEksClusterDataSource
TestAccAWSElasticBeanstalkSolutionStackDataSource
TestAccAWSELBAttachment
TestAccAWSElbHostedZoneId

View File

@ -176,6 +176,7 @@ class ClusterAttributes:
ISSUER = "issuer"
NAME = "name"
OIDC = "oidc"
ENCRYPTION_CONFIG = "encryptionConfig"
class FargateProfileAttributes:

View File

@ -274,6 +274,7 @@ def test_eks_describe_existing_cluster(test_client, create_cluster):
response.status_code.should.equal(StatusCodes.OK)
result_data[ClusterAttributes.NAME].should.equal(TestCluster.cluster_name)
result_data[ClusterAttributes.ENCRYPTION_CONFIG].should.equal([])
all_arn_values_should_be_valid(
expected_arn_values=TestCluster.expected_arn_values,
pattern=RegExTemplates.CLUSTER_ARN,