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.

Expand notion of configuration context

See original GitHub issue

In order to support display (#2) and reset (#8) of connector offsets, the concept of the configuration context should be expanded. We need to have the information about the Kafka bootstrap server(s) as well as the name of the offset topic. The suggestion is to introduce a notion of named context which take all the required configuration and allowing the the user to switch between them (#19).

# local is the name of the context
$ kcctl config set-context local --cluster=my-connect:8083 --bootstrap-servers=my-kafka:9092 --offset-topic=my-offsets
Using context local

The information about all the configured contexts would be stored in JSON format in the ~/.kcctl configuration file. Commands that don’t need the additional attributes, should gracefully handle the current format of ~/.kcctl (solely containing the KC URL). Commands which do need the additional attributes, should raise an error when encountering a file in the legacy format, indicating how to use set-context for updating it.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
gunnarmorlingcommented, Aug 17, 2021

Yes, I’d say so. In general, feel free to make a decision by yourself on things like that. I can still bring up any concerns during code review if I feel strongly about it.

1reaction
gunnarmorlingcommented, Aug 17, 2021

Sure, it’s fine either way. Your call 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration Context - Technical Documentation For IFS Cloud
Configuration Context is a concept to make the configuration layer more flexible. It makes it possible to develop and provide different configuration ...
Read more >
Expand Configuration
The Expand configuration is used for displaying the following views of a record: Expand view (Tab view); QuickView - a read-only popup view...
Read more >
Understanding the Nginx Configuration File Structure and ...
The Events Context​​ It is used to set global options that affect how Nginx handles connections at a general level. There can only...
Read more >
Configurations and In-context Components - 2017
Create two configurations of the assembly pipes, named large and small. Specify the large configuration of tube for the large configuration of pipes,...
Read more >
Sling Context-Aware Configurations and Core Components
Context-aware configurations are a feature of Sling. They are configurations that are related to a content resource or a resource tree and ...
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