@@ -266,6 +266,8 @@ func TestEnv(t *testing.T) {
266266 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_FARGATE_ROLE_MANAGED_POLICY_ARNS" )
267267 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_FARGATE_PROFILE_NAME" , "hello" )
268268 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_FARGATE_PROFILE_NAME" )
269+ os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_FARGATE_REPOSITORY_ACCOUNT_ID" , "uri" )
270+ defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_FARGATE_REPOSITORY_ACCOUNT_ID" )
269271 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_FARGATE_REPOSITORY_NAME" , "fargate-repo-name" )
270272 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_FARGATE_REPOSITORY_NAME" )
271273 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_FARGATE_REPOSITORY_URI" , "fargate-repo-uri" )
@@ -285,6 +287,8 @@ func TestEnv(t *testing.T) {
285287 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_ROLE_MANAGED_POLICY_ARNS" )
286288 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_S3_KEY" , "hello" )
287289 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_S3_KEY" )
290+ os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_REPOSITORY_ACCOUNT_ID" , "uri" )
291+ defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_REPOSITORY_ACCOUNT_ID" )
288292 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_REPOSITORY_NAME" , "irsa-repo-name" )
289293 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_REPOSITORY_NAME" )
290294 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_REPOSITORY_URI" , "irsa-repo-uri" )
@@ -308,6 +312,8 @@ func TestEnv(t *testing.T) {
308312 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_FARGATE_S3_KEY" )
309313 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_FARGATE_PROFILE_NAME" , "hello" )
310314 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_FARGATE_PROFILE_NAME" )
315+ os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_FARGATE_REPOSITORY_ACCOUNT_ID" , "uri" )
316+ defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_FARGATE_REPOSITORY_ACCOUNT_ID" )
311317 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_FARGATE_REPOSITORY_NAME" , "irsa-fargate-repo-name" )
312318 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_FARGATE_REPOSITORY_NAME" )
313319 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_IRSA_FARGATE_REPOSITORY_URI" , "irsa-fargate-repo-uri" )
@@ -336,6 +342,8 @@ func TestEnv(t *testing.T) {
336342 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_HOLLOW_NODES_REMOTE_NAMESPACE" )
337343 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_HOLLOW_NODES_REMOTE_NODES" , "333" )
338344 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_HOLLOW_NODES_REMOTE_NODES" )
345+ os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_HOLLOW_NODES_REMOTE_REPOSITORY_ACCOUNT_ID" , "uri" )
346+ defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_HOLLOW_NODES_REMOTE_REPOSITORY_ACCOUNT_ID" )
339347 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_HOLLOW_NODES_REMOTE_REPOSITORY_NAME" , "hollow-nodes-repo-name" )
340348 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_HOLLOW_NODES_REMOTE_REPOSITORY_NAME" )
341349 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_HOLLOW_NODES_REMOTE_REPOSITORY_URI" , "hollow-nodes-repo-uri" )
@@ -352,6 +360,8 @@ func TestEnv(t *testing.T) {
352360 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_CLUSTER_LOADER_REMOTE_ENABLE" )
353361 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_CLUSTER_LOADER_REMOTE_DURATION" , "7m30s" )
354362 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_CLUSTER_LOADER_REMOTE_DURATION" )
363+ os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_CLUSTER_LOADER_REMOTE_REPOSITORY_ACCOUNT_ID" , "uri" )
364+ defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_CLUSTER_LOADER_REMOTE_REPOSITORY_ACCOUNT_ID" )
355365 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_CLUSTER_LOADER_REMOTE_REPOSITORY_NAME" , "cluster-loader-repo-name" )
356366 defer os .Unsetenv ("AWS_K8S_TESTER_EKS_ADD_ON_CLUSTER_LOADER_REMOTE_REPOSITORY_NAME" )
357367 os .Setenv ("AWS_K8S_TESTER_EKS_ADD_ON_CLUSTER_LOADER_REMOTE_REPOSITORY_URI" , "cluster-loader-repo-uri" )
@@ -829,6 +839,9 @@ func TestEnv(t *testing.T) {
829839 if cfg .AddOnFargate .ProfileName != "hello" {
830840 t .Fatalf ("unexpected cfg.AddOnFargate.ProfileName %q" , cfg .AddOnFargate .ProfileName )
831841 }
842+ if cfg .AddOnFargate .RepositoryAccountID != "uri" {
843+ t .Fatalf ("unexpected cfg.AddOnFargate.RepositoryAccountID %v" , cfg .AddOnFargate .RepositoryAccountID )
844+ }
832845 if cfg .AddOnFargate .RepositoryName != "fargate-repo-name" {
833846 t .Fatalf ("unexpected cfg.AddOnFargate.RepositoryName %v" , cfg .AddOnFargate .RepositoryName )
834847 }
@@ -858,6 +871,9 @@ func TestEnv(t *testing.T) {
858871 if cfg .AddOnIRSA .S3Key != "hello" {
859872 t .Fatalf ("unexpected cfg.AddOnIRSA.S3Key %q" , cfg .AddOnIRSA .S3Key )
860873 }
874+ if cfg .AddOnIRSA .RepositoryAccountID != "uri" {
875+ t .Fatalf ("unexpected cfg.AddOnIRSA.RepositoryAccountID %v" , cfg .AddOnIRSA .RepositoryAccountID )
876+ }
861877 if cfg .AddOnIRSA .RepositoryName != "irsa-repo-name" {
862878 t .Fatalf ("unexpected cfg.AddOnIRSA.RepositoryName %v" , cfg .AddOnIRSA .RepositoryName )
863879 }
@@ -894,6 +910,9 @@ func TestEnv(t *testing.T) {
894910 if cfg .AddOnIRSAFargate .ProfileName != "hello" {
895911 t .Fatalf ("unexpected cfg.AddOnIRSAFargate.ProfileName %q" , cfg .AddOnIRSAFargate .ProfileName )
896912 }
913+ if cfg .AddOnIRSAFargate .RepositoryAccountID != "uri" {
914+ t .Fatalf ("unexpected cfg.AddOnIRSAFargate.RepositoryAccountID %v" , cfg .AddOnIRSAFargate .RepositoryAccountID )
915+ }
897916 if cfg .AddOnIRSAFargate .RepositoryName != "irsa-fargate-repo-name" {
898917 t .Fatalf ("unexpected cfg.AddOnIRSAFargate.RepositoryName %v" , cfg .AddOnIRSAFargate .RepositoryName )
899918 }
@@ -933,6 +952,9 @@ func TestEnv(t *testing.T) {
933952 if cfg .AddOnHollowNodesRemote .Namespace != "test-hollow-nodes-namespace" {
934953 t .Fatalf ("unexpected cfg.AddOnHollowNodesRemote.Namespace %v" , cfg .AddOnHollowNodesRemote .Namespace )
935954 }
955+ if cfg .AddOnHollowNodesRemote .RepositoryAccountID != "uri" {
956+ t .Fatalf ("unexpected cfg.AddOnHollowNodesRemote.RepositoryAccountID %v" , cfg .AddOnHollowNodesRemote .RepositoryAccountID )
957+ }
936958 if cfg .AddOnHollowNodesRemote .RepositoryName != "hollow-nodes-repo-name" {
937959 t .Fatalf ("unexpected cfg.AddOnHollowNodesRemote.RepositoryName %v" , cfg .AddOnHollowNodesRemote .RepositoryName )
938960 }
@@ -956,6 +978,9 @@ func TestEnv(t *testing.T) {
956978 if cfg .AddOnClusterLoaderRemote .Duration != 7 * time .Minute + 30 * time .Second {
957979 t .Fatalf ("unexpected cfg.AddOnClusterLoaderRemote.Duration %v" , cfg .AddOnClusterLoaderRemote .Duration )
958980 }
981+ if cfg .AddOnClusterLoaderRemote .RepositoryAccountID != "uri" {
982+ t .Fatalf ("unexpected cfg.AddOnClusterLoaderRemote.RepositoryAccountID %v" , cfg .AddOnClusterLoaderRemote .RepositoryAccountID )
983+ }
959984 if cfg .AddOnClusterLoaderRemote .RepositoryName != "cluster-loader-repo-name" {
960985 t .Fatalf ("unexpected cfg.AddOnClusterLoaderRemote.RepositoryName %v" , cfg .AddOnClusterLoaderRemote .RepositoryName )
961986 }
0 commit comments