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, encryption_config=None,
): ):
if encryption_config is None: if encryption_config is None:
encryption_config = dict() encryption_config = []
if tags is None: if tags is None:
tags = dict() tags = dict()

View File

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

View File

@ -176,6 +176,7 @@ class ClusterAttributes:
ISSUER = "issuer" ISSUER = "issuer"
NAME = "name" NAME = "name"
OIDC = "oidc" OIDC = "oidc"
ENCRYPTION_CONFIG = "encryptionConfig"
class FargateProfileAttributes: 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) response.status_code.should.equal(StatusCodes.OK)
result_data[ClusterAttributes.NAME].should.equal(TestCluster.cluster_name) result_data[ClusterAttributes.NAME].should.equal(TestCluster.cluster_name)
result_data[ClusterAttributes.ENCRYPTION_CONFIG].should.equal([])
all_arn_values_should_be_valid( all_arn_values_should_be_valid(
expected_arn_values=TestCluster.expected_arn_values, expected_arn_values=TestCluster.expected_arn_values,
pattern=RegExTemplates.CLUSTER_ARN, pattern=RegExTemplates.CLUSTER_ARN,