-
Bug
-
Resolution: Done
-
Undefined
-
None
-
4.19
-
Quality / Stability / Reliability
-
False
-
-
1
-
Important
-
None
-
None
-
None
-
Rejected
-
NI&D Sprint 278
-
1
-
None
-
None
-
None
-
None
-
None
-
None
-
None
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: