level=error msg="resource processing failed: credential \"test-apikey\" failure: failed to fetch secret: Secret kong/test-apikey not found" GVK="configuration.konghq.com/v1, Kind=KongConsumer" name=my-consumer namespace=kong
The secret exists in the namespace:
k get secret test-apikey -n kong -o yaml
apiVersion: v1
data:
key: xxxx
kongCredType: a2V5LWF1dGg=
kind: Secret
metadata:
creationTimestamp: "2023-08-14T09:01:46Z"
name: test-apikey
namespace: kong
type: Opaque
Here is the kongConsumer CR:
apiVersion: configuration.konghq.com/v1
kind: KongConsumer
metadata:
name: my-consumer
namespace: kong
annotations:
kubernetes.io/ingress.class: kong
username: test-username
credentials:
- test-apikey
I have verified the role, rolebinding, serviceaccounts and those are all okay.
Would appreciate if someone can help.