oci-cloud-controller-manager
oci-cloud-controller-manager copied to clipboard
Allow a User Friendly Values for Load Balancer Display Names
Is this a BUG REPORT or FEATURE REQUEST?
FEATURE REQUEST
I'm not entirely sure if this repo is related to OKE service in OCI but the request is still somewhat relevant.
Load Balancer services create load balancers with display name equal to the service UID instead of the service name. For a user that uses the OCI console for majority of the day, it becomes hard to manage and know what each load balancer is.
My request is to either:
- Make the load balancer take the service name in the YAML configuration file instead of the UID.
- Or Add annotation to allow users to configure load balancer display name while keeping the default behavior as is.
Versions
CCM Version:
Environment:
-
Kubernetes version (use
kubectl version
): Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.10", GitCommit:"a84e568eeb56c4e3966314fc2d58374febd12ed7", GitTreeState:"clean", BuildDate:"2021-03-09T14:35:22Z", GoVersion:"go1.13.15 BoringCrypto", Compiler:"gc", Platform:"linux/amd64"} -
OS (e.g. from /etc/os-release): Oracle Linux Server 7.9
-
Kernel (e.g.
uname -a
): 5.4.17-2036.100.6.1.el7uek.x86_64 -
Others:
What happened?
What you expected to happen?
How to reproduce it (as minimally and precisely as possible)?
Just deploy any load balancer service.
Anything else we need to know?
I traced the code a bit and I think this relates somehow to the following lines:
https://github.com/oracle/oci-cloud-controller-manager/blob/a0633ddd6dceac2945211d783d0931e2879eee87/pkg/cloudprovider/providers/oci/load_balancer_spec.go#L147
and
https://github.com/oracle/oci-cloud-controller-manager/blob/a0633ddd6dceac2945211d783d0931e2879eee87/pkg/cloudprovider/providers/oci/load_balancer_util.go#L604
I am not really into GO but I'm willing to give it a shot if no one is taking it.
We do support setting tags on LBs when you create them, and you can also manually update the LB tags later on if you want. You can use tag filters in console for finding the LBs Please take a look at this public doc https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengcreatingloadbalancer.htm#contengcreatingloadbalancer_topic_Tagging_load_balancers