Skip to content

Commit 0b5ae53

Browse files
committed
AWS: Support shared tag
We recognize an additional cluster tag: kubernetes.io/cluster/<clusterid> This now allows us to share resources, in particular subnets. In addition, the value is used to track ownership/lifecycle. When we create objects, we record the value as "owned". We also refactor out tags into its own file & class, as we are touching most of these functions anyway.
1 parent ff12e56 commit 0b5ae53

7 files changed

Lines changed: 488 additions & 206 deletions

File tree

‎pkg/cloudprovider/providers/aws/BUILD‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ go_library(
2121
"regions.go",
2222
"retry_handler.go",
2323
"sets_ippermissions.go",
24+
"tags.go",
2425
"volumes.go",
2526
],
2627
tags = ["automanaged"],
@@ -56,6 +57,7 @@ go_test(
5657
"device_allocator_test.go",
5758
"regions_test.go",
5859
"retry_handler_test.go",
60+
"tags_test.go",
5961
],
6062
library = ":go_default_library",
6163
tags = ["automanaged"],

0 commit comments

Comments
 (0)