hi one more, i am trying to setup kong credentials...
# general
s
hi one more, i am trying to setup kong credentials, but i am unsure what i am doing wrong here. I just cannot access with this setup. I had consumerRef: "develop" as well neither worked.
Copy code
const kongCustomResourceConsumer = new k8s.apiextensions.CustomResource("developer", {
  apiVersion: "<http://configuration.konghq.com/v1|configuration.konghq.com/v1>",
  kind: "KongConsumer",
  metadata: {
    namespace: namespace.metadata.name
  },
  username: "developer"
});

const kongCustomResourceConsumerKey = new k8s.apiextensions.CustomResource("developer-apikey", {
  apiVersion: "<http://configuration.konghq.com/v1|configuration.konghq.com/v1>",
  kind: "KongCredential",
  metadata: {
    namespace: namespace.metadata.name
  },
  consumerRef: `${kongCustomResourceConsumer.metadata.name}`,
  type: "key-auth",
  config: {
    key: "b362c400-4904-4176-9ae7-74bf03a63619"
  }
});