From 72eecb65d10aa98d94515946a342617f832311c7 Mon Sep 17 00:00:00 2001 From: Nic Cope Date: Fri, 27 Mar 2020 18:53:20 -0700 Subject: [PATCH] Don't require a leading dot for JSON field paths https://github.com/kubernetes/community/blob/ddc11a7/contributors/devel/sig-architecture/api-conventions.md#selecting-fields This allows us to leverage existing libraries and patterns designed for Kubernetes field paths. --- 4.component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4.component.md b/4.component.md index f47fd0c..55e39a3 100644 --- a/4.component.md +++ b/4.component.md @@ -49,7 +49,7 @@ The Parameters section defines all of the configurable parameters for this compo Parameter `name` fields must be Unicode letter and number characters. Application Configurations will specify parameters values using this name. -Parameter `fieldPaths` specifies an array of fields within this Component's workload that will be overwritten by the value of this parameter. `fieldPaths` are specified as JSON field paths with a leading dot, for example `.spec.containers[0].image`. The type of the parameter is inferred by the type of the fields to which those paths refer. Thus, all fields to which those paths refer MUST have the same type and MUST NOT be object type. +Parameter `fieldPaths` specifies an array of fields within this Component's workload that will be overwritten by the value of this parameter. `fieldPaths` are specified as JSON field paths without a leading dot, for example `spec.containers[0].image`. The type of the parameter is inferred by the type of the fields to which those paths refer. Thus, all fields to which those paths refer MUST have the same type and MUST NOT be object type. ### Examples