oracle / oci-native-ingress-controller

OCI Native Ingress Controller
https://blogs.oracle.com/cloud-infrastructure/post/oracle-cloud-native-ingress-controller-kubernetes
Universal Permissive License v1.0
18 stars 20 forks source link

Controller deletes existing LoadBalancer #91

Open gotsysdba opened 1 month ago

gotsysdba commented 1 month ago

Due to the IngressClassParameters CRD not supporting NSGs, I've tried the annotation route of using an existing LB created by Terraform:

apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
  name: native-ic-ingress-class
  annotations:
    oci-native-ingress.oraclecloud.com/id: "ocid1.loadbalancer.oc1..."
.
.
.

However, when deleting the IngressClass, this also deletes the LoadBalancer created by Terraform (drifting the state).

Expected behaviour: If the IngressClass is not responsible for creating the LB, it should also not be responsible for deleting it.

nirpai commented 1 month ago

@gotsysdba Thanks for reporting the issue. We will look into this.