-
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for choosing letter case of context tags (#107)
- Loading branch information
Showing
19 changed files
with
627 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
terraform { | ||
required_version = ">= 0.12.0" | ||
required_version = ">= 0.13.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
module "label8d" { | ||
source = "../../" | ||
|
||
enabled = true | ||
namespace = "eg" | ||
environment = "demo" | ||
name = "blue" | ||
attributes = ["cluster"] | ||
delimiter = "-" | ||
|
||
tags = { | ||
"kubernetes.io/cluster/" = "shared" | ||
} | ||
} | ||
|
||
module "label8d_context" { | ||
source = "../../" | ||
|
||
context = module.label8d.context | ||
} | ||
|
||
output "label8d_context_id" { | ||
value = module.label8d_context.id | ||
} | ||
|
||
output "label8d_context_context" { | ||
value = module.label8d_context.context | ||
} | ||
|
||
output "label8d_context_tags" { | ||
value = module.label8d_context.tags | ||
} | ||
|
||
output "label8d_id" { | ||
value = module.label8d.id | ||
} | ||
|
||
output "label8d_context" { | ||
value = module.label8d.context | ||
} | ||
|
||
output "label8d_tags" { | ||
value = module.label8d.tags | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module "label8dcd" { | ||
source = "../../" | ||
|
||
enabled = true | ||
namespace = "eg" | ||
environment = "demo" | ||
name = "blue" | ||
attributes = ["cluster"] | ||
delimiter = "x" | ||
} | ||
|
||
module "label8dcd_context" { | ||
source = "../../" | ||
|
||
context = module.label8dcd.context | ||
} | ||
|
||
output "label8dcd_context_id" { | ||
value = module.label8dcd_context.id | ||
} | ||
|
||
output "label8dcd_id" { | ||
value = module.label8dcd.id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module "label8dnd" { | ||
source = "../../" | ||
|
||
enabled = true | ||
namespace = "eg" | ||
environment = "demo" | ||
name = "blue" | ||
attributes = ["cluster"] | ||
delimiter = "" | ||
} | ||
|
||
module "label8dnd_context" { | ||
source = "../../" | ||
|
||
context = module.label8dnd.context | ||
} | ||
|
||
output "label8dnd_context_id" { | ||
value = module.label8dnd_context.id | ||
} | ||
|
||
output "label8dnd_id" { | ||
value = module.label8dnd.id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
module "label8l" { | ||
source = "../../" | ||
enabled = true | ||
namespace = "eg" | ||
environment = "demo" | ||
name = "blue" | ||
attributes = ["cluster"] | ||
delimiter = "-" | ||
label_key_case = "lower" | ||
label_value_case = "lower" | ||
|
||
tags = { | ||
"kubernetes.io/cluster/" = "shared" | ||
"upperTEST" = "testUPPER" | ||
} | ||
} | ||
|
||
module "label8l_context" { | ||
source = "../../" | ||
|
||
context = module.label8l.context | ||
} | ||
|
||
output "label8l_context_id" { | ||
value = module.label8l_context.id | ||
} | ||
|
||
output "label8l_context_context" { | ||
value = module.label8l_context.context | ||
} | ||
|
||
output "label8l_context_tags" { | ||
value = module.label8l_context.tags | ||
} | ||
|
||
output "label8l_id" { | ||
value = module.label8l.id | ||
} | ||
|
||
output "label8l_context" { | ||
value = module.label8l.context | ||
} | ||
|
||
output "label8l_tags" { | ||
value = module.label8l.tags | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
module "label8n" { | ||
source = "../../" | ||
|
||
enabled = true | ||
namespace = "EG" | ||
environment = "demo" | ||
name = "blue" | ||
attributes = ["eks", "ClusteR"] | ||
delimiter = "-" | ||
label_value_case = "none" | ||
|
||
tags = { | ||
"kubernetes.io/cluster/" = "shared" | ||
} | ||
} | ||
|
||
module "label8n_context" { | ||
source = "../../" | ||
|
||
context = module.label8n.context | ||
} | ||
|
||
output "label8n_context_id" { | ||
value = module.label8n_context.id | ||
} | ||
|
||
output "label8n_context_context" { | ||
value = module.label8n_context.context | ||
} | ||
|
||
output "label8n_context_tags" { | ||
value = module.label8n_context.tags | ||
} | ||
|
||
output "label8n_id" { | ||
value = module.label8n.id | ||
} | ||
|
||
output "label8n_context" { | ||
value = module.label8n.context | ||
} | ||
|
||
output "label8n_tags" { | ||
value = module.label8n.tags | ||
} |
Oops, something went wrong.