Closed owainlewis closed 2 years ago
@owainlewis this is blocked on the new go client AFAIK.
@jhorwit2 yeah we will need to wait until the new SDK ships for this one.
This is blocked by LBaaS not supporting tags. When LBaaS supports tags and the Go SDK has been updated we should also support adding addition tags via an annotation akin to what AWS does:
// ServiceAnnotationLoadBalancerAdditionalTags is the annotation used on the service
// to specify a comma-separated list of key-value pairs which will be recorded as
// additional tags in the ELB.
// For example: "Key1=Val1,Key2=Val2,KeyNoVal1=,KeyNoVal2"
const ServiceAnnotationLoadBalancerAdditionalTags = "service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags"
https://docs.cloud.oracle.com/iaas/releasenotes/changes/9ced7d70-005a-4aa1-a47a-213dd8d2dcad/
This is now supported but blocked by https://github.com/oracle/oci-go-sdk/issues/118. We should also tag the load balancers with the cluster like kubernetes.io/cluster/<name> = owned
as a freeform tag.
@owainlewis We probably want to prioritise this now its unblocked.
I suggest we start by adding support for tagging via an service.beta.kubernetes.io/oci-load-balancer-additional-resource-tags
annotation.
We could make use of resource tagging in OCI to track which resources are created by the CCM.
See: https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/taggingoverview.htm