sticky-thailand-14236
05/12/2020, 1:33 AMconst 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"
}
});