Skip to content

Commit

Permalink
docs(policies): reminder for using snakeCase
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
  • Loading branch information
jakubdyszkiewicz committed Nov 30, 2023
1 parent 74af133 commit ffbac01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/_src/policies/meshproxypatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ spec:
origin: inbound # optional: if absent, all clusters regardless of its origin will be patched
jsonPatches: # optional and mutually exclusive with "value": list of modifications in JSON Patch notation
- op: add
path: /transportSocket/typedConfig/commonTlsContext/tlsParams
path: /transportSocket/typedConfig/commonTlsContext/tlsParams # remember to always use camelCase
value:
tlsMinimumProtocolVersion: TLSv1_2
- op: add
Expand Down Expand Up @@ -1473,6 +1473,10 @@ All modifications from `appendModification` list are always merged.
For example, if there is a policy with `targetRef.kind: Mesh` and second policy with `targetRef.kind: MeshService` that matches a data plane proxy,
all modifications from both policies will be applied.

## JSON Patch

If you use JSON Patch, remember to always use _snakeCase_ instead of _camel_case_ in `path` parameter even though you see _camel_case_ in Envoy Config Dump.

## Examples


Expand Down

0 comments on commit ffbac01

Please sign in to comment.