Hi,
I’m attempting to configure a small number of plugins on Kong 1.5 (using DB). I was wondering if it’s possible to enable plugins using Kong custom resources for existing consumers. Specifically, I’ve tried something like
apiVersion: configuration.konghq.com/v1
kind: KongConsumer
metadata:
name: rate-limit-test-consumer
annotations:
konghq.com/plugins: rate-limit-test
username: my-username
custom_id: my-custom-id
with
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: rate-limit-test
config:
minute: 10
limit_by: consumer
policy: local
plugin: rate-limiting
with the user existing in the database, and no dice(plugin is not returned by admin api at /plugins or /consumers//plugins). However, if it’s a consumer that does not already exist (specifically, neither “custom_id” nor “username” match a user in the database), the plugin is properly enabled and shows up in the admin API.
Is this possible?