File tree 7 files changed +27
-27
lines changed
7 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ module "mut" {
13
13
base_domain = " testd.example.com"
14
14
provider_name = " testp"
15
15
provider_region = " testr"
16
- delimiter = " "
16
+ delimiter = " "
17
17
}
18
18
19
19
locals {
20
- exp_name = " testntest_custom_delimitertestr"
21
- exp_domain = " testp.testd.example.com"
22
- exp_fqdn = " testntest_custom_delimitertestr.testp.testd.example.com"
23
- exp_workspace = " test_custom_delimiter"
24
- exp_provider_name = " testp"
20
+ exp_name = " testntest_custom_delimitertestr"
21
+ exp_domain = " testp.testd.example.com"
22
+ exp_fqdn = " testntest_custom_delimitertestr.testp.testd.example.com"
23
+ exp_workspace = " test_custom_delimiter"
24
+ exp_provider_name = " testp"
25
25
exp_provider_region = " testr"
26
26
}
27
27
@@ -61,7 +61,7 @@ resource "test_assertions" "labels" {
61
61
equal "scheme" {
62
62
description = " labels have correct key/value pairs"
63
63
got = module. mut . labels
64
- want = {
64
+ want = {
65
65
" kubestack.com/cluster_name" = local.exp_name
66
66
" kubestack.com/cluster_domain" = local.exp_domain
67
67
" kubestack.com/cluster_fqdn" = local.exp_fqdn
@@ -88,7 +88,7 @@ resource "test_assertions" "tags" {
88
88
equal "scheme" {
89
89
description = " returns the used label_namespace"
90
90
got = module. mut . tags
91
- want = [
91
+ want = [
92
92
local . exp_name ,
93
93
local . exp_workspace ,
94
94
local . exp_provider_name ,
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ module "mut" {
17
17
}
18
18
19
19
locals {
20
- exp_name = " testn-test_custom_label_namespace-testr"
21
- exp_domain = " testp.testd.example.com"
22
- exp_fqdn = " testn-test_custom_label_namespace-testr.testp.testd.example.com"
23
- exp_workspace = " test_custom_label_namespace"
24
- exp_provider_name = " testp"
20
+ exp_name = " testn-test_custom_label_namespace-testr"
21
+ exp_domain = " testp.testd.example.com"
22
+ exp_fqdn = " testn-test_custom_label_namespace-testr.testp.testd.example.com"
23
+ exp_workspace = " test_custom_label_namespace"
24
+ exp_provider_name = " testp"
25
25
exp_provider_region = " testr"
26
26
exp_label_namespace = " testlns-"
27
27
}
@@ -32,7 +32,7 @@ resource "test_assertions" "labels" {
32
32
equal "scheme" {
33
33
description = " labels have correct key/value pairs"
34
34
got = module. mut . labels
35
- want = {
35
+ want = {
36
36
" ${local.exp_label_namespace}cluster_name" = local.exp_name
37
37
" ${local.exp_label_namespace}cluster_domain" = local.exp_domain
38
38
" ${local.exp_label_namespace}cluster_fqdn" = local.exp_fqdn
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ module "mut" {
13
13
base_domain = " testd.example.com"
14
14
provider_name = " testp"
15
15
provider_region = " testr"
16
- workspace = " testw"
16
+ workspace = " testw"
17
17
}
18
18
19
19
locals {
20
20
exp_workspace = " testw"
21
- exp_name = " testn-${ local . exp_workspace } -testr"
21
+ exp_name = " testn-${ local . exp_workspace } -testr"
22
22
}
23
23
24
24
resource "test_assertions" "name" {
@@ -46,6 +46,6 @@ resource "test_assertions" "workspace_tag" {
46
46
47
47
check "contains" {
48
48
description = " check the workspace is one of the tags"
49
- condition = contains (module. mut . tags , local. exp_workspace )
49
+ condition = contains (module. mut . tags , local. exp_workspace )
50
50
}
51
51
}
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ module "mut" {
16
16
}
17
17
18
18
locals {
19
- exp_name = " testn-test_defaults-testr"
20
- exp_domain = " testp.testd.example.com"
21
- exp_fqdn = " testn-test_defaults-testr.testp.testd.example.com"
22
- exp_workspace = " test_defaults"
23
- exp_provider_name = " testp"
19
+ exp_name = " testn-test_defaults-testr"
20
+ exp_domain = " testp.testd.example.com"
21
+ exp_fqdn = " testn-test_defaults-testr.testp.testd.example.com"
22
+ exp_workspace = " test_defaults"
23
+ exp_provider_name = " testp"
24
24
exp_provider_region = " testr"
25
25
}
26
26
@@ -60,7 +60,7 @@ resource "test_assertions" "labels" {
60
60
equal "scheme" {
61
61
description = " labels have correct key/value pairs"
62
62
got = module. mut . labels
63
- want = {
63
+ want = {
64
64
" kubestack.com/cluster_name" = local.exp_name
65
65
" kubestack.com/cluster_domain" = local.exp_domain
66
66
" kubestack.com/cluster_fqdn" = local.exp_fqdn
@@ -87,7 +87,7 @@ resource "test_assertions" "tags" {
87
87
equal "scheme" {
88
88
description = " returns the used label_namespace"
89
89
got = module. mut . tags
90
- want = [
90
+ want = [
91
91
local . exp_name ,
92
92
local . exp_workspace ,
93
93
local . exp_provider_name ,
Original file line number Diff line number Diff line change 1
1
module "eks_zero" {
2
2
providers = {
3
- aws = aws.eks_zero
3
+ aws = aws.eks_zero
4
4
kubernetes = kubernetes.eks_zero
5
5
}
6
6
Original file line number Diff line number Diff line change @@ -18,5 +18,5 @@ provider "kubernetes" {
18
18
19
19
host = local. eks_zero_kubeconfig [" clusters" ][0 ][" cluster" ][" server" ]
20
20
cluster_ca_certificate = base64decode (local. eks_zero_kubeconfig [" clusters" ][0 ][" cluster" ][" certificate-authority-data" ])
21
- token = local. eks_zero_kubeconfig [" users" ][0 ][" user" ][" token" ]
21
+ token = local. eks_zero_kubeconfig [" users" ][0 ][" user" ][" token" ]
22
22
}
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ provider "kubernetes" {
8
8
9
9
host = local. gke_zero_kubeconfig [" clusters" ][0 ][" cluster" ][" server" ]
10
10
cluster_ca_certificate = base64decode (local. gke_zero_kubeconfig [" clusters" ][0 ][" cluster" ][" certificate-authority-data" ])
11
- token = local. gke_zero_kubeconfig [" users" ][0 ][" user" ][" token" ]
11
+ token = local. gke_zero_kubeconfig [" users" ][0 ][" user" ][" token" ]
12
12
}
You can’t perform that action at this time.
0 commit comments