question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tags are not applied to plugin entities in the generated declarative config

See original GitHub issue

Describe the bug When the x-kong-plugin entity is used in a spec, when generating config using one of the entry point methods (for example generateFromString, the default tag or any tags provided are not applied to the generated declarative config of the plugin.

See example in the comment below.

To Reproduce Steps to reproduce the behavior:

  1. In Insomnia Designer or the inso CLI, take a spec
  2. Click Generate Config or run inso generate config <spec>

Expected behavior The generated declarative config should tag the Services, Routes and plug-ins appropriately.

INS-175

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rmsycommented, Oct 12, 2020

That clears it up, thank you!

1reaction
develohpandacommented, Oct 12, 2020

Good eyes, and thanks for clarifying upfront @rmsy 👀

The only way to provide tags (currently) is to send them as arguments to the entry point functions in index.js. Here is some documentation showing how tags behave currently.

The original issue report overlaps another feature request - to provide tags from the spec #2682 - which is not yet accepted.

I will remove the example from the original post and move it to the related issue. That will leave my comment with the example spec and the expected output, with no tags in the input spec. In this example, the default OAS3_import tag, or any provided as an argument to, for example, generateFromString should be applied to the plugin.

Does that clear things up?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Distributed Configuration for Kong using decK - v1.17.x
Tags, introduced in Kong 1.1, provide a way to associate metadata with entities in Kong. You can also filter entities by tags on...
Read more >
jenkins trigger build if new tag is released - Stack Overflow
In summary, jenkins will only build new tags if they point to commits that are not tagged already, and this is currently not...
Read more >
Declarative Setup - Argo CD - Read the Docs
Argo CD applications, projects and settings can be defined declaratively using Kubernetes manifests. These can be updated using kubectl apply , without ...
Read more >
openapi-2-kong - npm Package Health Analysis - Snyk
This module generates Kong Declarative Config and Kong for Kubernetes config, ... Each generated entity will get the tags as specified as well...
Read more >
inso generate config | Insomnia Docs
The command works similarly to generating a declarative configuration file or ... --tags <tags>, comma-separated list of tags to apply to each entity...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found