Skip to content

Add additional update type which will not override existing configuration #1634

Open
@JElgar

Description

@JElgar

Feature Description
From my understanding there are currently 2 available update types "reset" and "merge". Reset allows you to delete some config value and merge allows you to overwrite it.

I would like to be able to only update a key in the configuration if there is not an existing value.

Use Case

We are deploying greengrass components on behalf of ours users into their AWS accounts. Sometimes we want to be able to update our default configuration without overwriting any changes the user has made (appreciate this wont help with keys users have removed).

Proposed Solution

Add an additional update type similar to merge which only updates keys which do not currently exist in the config.

  • 👋 I may be able to implement this feature request (I have very little context so unlikely I will be much use without a lot of help)
  • ⚠️ This feature might incur a breaking change (kinda maybe? - as customers may be trying to infer configuration based on past deployments)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions