Skip to content

Bootstrap proto field overrides via CLI #2269

Closed

Description

@htuch

In various places, e.g. node ID/locality, stags tags (#2264), we have adhoc CLI flags to override fields in the bootstrap (or that could exist there).

It would be generally useful to be able to have a flag that could do this generically, e.g. --bootstrap-override stats_config.extra_tags=some_tag:some_value. The idea is that you specify some path to the field, such as stats_config.extra_tags and then the value.

I think if we use proto text for the value portion and standard field names to describe a .-separated path it should be fairly easy to implement with existing proto reflection and parsing support.

See #2264 for the original discussion.

Activity

  1. added
    enhancement
    help wanted
    on Dec 25, 2017
  2. kevintchan commented on Apr 9, 2018

    @kevintchan
    Contributor

    Hi I'd like to make this happen. Users should be able to specify as many overrides as they would like. For cases where the intention is to append a repeated entry, would it make sense to infer override vs. append depending on whether the proto text was an array or a single value ?

    Envoy should exit if bootstrap overrides are present and:

    • config is not v2
    • validation of bootstrap after override is applied fails (validation only occurs once)

    Please let me know if I've missed something, thanks!

  3. mattklein123 commented on Apr 9, 2018

    @mattklein123
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions