-
Bug
-
Resolution: Done
-
Normal
-
Logging 5.8.0
Tester: Dhruv Gautam
Epic URL: *https://issues.redhat.com/browse/LOG-3965*
Feature: Collector to act as http server
DOCS followed: No docs available for the feature yet. Referred to the CLF CRD for understanding.
Steps to Reproduce:
- Install and configure ClusterLogging using RHOL 5.8 operator.
- Deploy CLF using below config:
apiVersion: logging.openshift.io/v1 kind: ClusterLogForwarder metadata: name: instance namespace: openshift-logging spec: inputs: - name: http-audit receiver: http: format: kubeAPIAudit receiverPort: port: 8081 pipelines: - name: to-default inputRefs: - http-audit outputRefs: - default
- This creates a service and a secret called http-audit.
- Delete the CLF and check if the service and secret gets deleted.
$ oc delete clf instance
clusterlogforwarder.logging.openshift.io "instance" deleted
— Wait 5 mins -----
$ oc get svc,secret | grep http-audit service/http-audit ClusterIP 172.30.211.15 <none> 8081/TCP 90s secret/http-audit kubernetes.io/tls 2 90s
Actual Results:
The associated resources (service and secret) are not cleaned up.
Expected Results:
The resources should get cleaned up after CLF is deleted or if the associated inputs are removed from CLF instance.
- links to
- mentioned on