-
Bug
-
Resolution: Won't Do
-
Undefined
-
None
-
4.19
-
Important
-
None
-
Rejected
-
False
-
Description of problem:
When a gateway is created with multiple listeners, corresponding multiple DNSRecords are also created. When a listener is removed from the gateway the corresponding DNSRecord is not deleted
Version-Release number of selected component (if applicable):
OCP 4.19
How reproducible:
Always
Steps to Reproduce:
1. Create a gateway with 3 unique listeners with different hostNames e.g oc create -f - <<EOF apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: gateway namespace: openshift-ingress spec: gatewayClassName: openshift-default listeners: - name: http hostname: "*.$gwapi_domain" port: 80 protocol: HTTP allowedRoutes: namespaces: from: All - name: https hostname: "*.prod.example.com" port: 443 protocol: HTTPS tls: mode: Terminate certificateRefs: - name: gwapi-wildcard allowedRoutes: namespaces: from: All - name: prod-https hostname: "*.stage.example.com" port: 443 protocol: HTTPS tls: mode: Terminate certificateRefs: - name: gwapi-wildcard allowedRoutes: namespaces: from: All EOF 2. Check the DNSRecords in the openshift-ingress namespace 3. Edit the gateway CR and remove a listener 4. Check the DNSRecords again after removing the listener
Actual results:
DNSRecord of the removed listener still remains
Expected results:
DNSRecord of the removed listener should be deleted
Additional info:
This bug is being closed because it has not had any activity in the past 3 months. While it represents a valid problem, leaving such bugs open provides a false indication that they will be addressed. Please reopen the bug if you have additional context that would help us better understand what needs to be done.