Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

fix(preset-mesh-config.yaml): add json check #4241

Merged
merged 1 commit into from
Oct 13, 2021

Conversation

michelleN
Copy link
Contributor

  • adds mustToJson function to values in json blob
    to ensure value can be converted to proper json. Returns
    error if not.
  • If value is passed in via --set, user doesn't need
    to worry about passing in proper json

Resolves #4239

Signed-off-by: Michelle Noorali [email protected]

Description:

Testing done:

Affected area:

Functional Area
New Functionality [ ]
CI System [ ]
CLI Tool [ ]
Certificate Management [ ]
Control Plane [ ]
Demo [ ]
Documentation [ ]
Egress [ ]
Ingress [ ]
Install [ ]
Networking [ ]
Observability [ ]
Performance [ ]
SMI Policy [ ]
Security [ ]
Sidecar Injection [ ]
Tests [ ]
Upgrade [ ]
Other [ ]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project?

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change?

+ adds mustToJson function to values in json blob
to ensure value can be converted to proper json. Returns
error if not.
+ If value is passed in via --set, user doesn't need
to worry about passing in proper json

Resolves openservicemesh#4239

Signed-off-by: Michelle Noorali <[email protected]>
@michelleN michelleN marked this pull request as ready for review October 12, 2021 20:29
@michelleN michelleN requested a review from a team as a code owner October 12, 2021 20:29
Copy link
Member

@shashankram shashankram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if we can have a unit test to verify the correctness of Helm templates.

@michelleN michelleN merged commit 04736da into openservicemesh:main Oct 13, 2021
@michelleN michelleN deleted the json branch October 13, 2021 12:47
snehachhabria pushed a commit to snehachhabria/osm that referenced this pull request Oct 14, 2021
+ adds mustToJson function to values in json blob
to ensure value can be converted to proper json. Returns
error if not.
+ If value is passed in via --set, user doesn't need
to worry about passing in proper json

Resolves openservicemesh#4239

Signed-off-by: Michelle Noorali <[email protected]>
Signed-off-by: Sneha Chhabria <[email protected]>
allenlsy pushed a commit to allenlsy/osm that referenced this pull request Dec 28, 2021
+ adds mustToJson function to values in json blob
to ensure value can be converted to proper json. Returns
error if not.
+ If value is passed in via --set, user doesn't need
to worry about passing in proper json

Resolves openservicemesh#4239

Signed-off-by: Michelle Noorali <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using --set for array/string values result in incorrect preset-mesh-config JSON data
4 participants