From 2a5a7b90ab1f0783ff6a8d125985c41dc018c6b6 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Wed, 13 May 2020 16:54:12 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20duplicate=20top=20level=20defin?= =?UTF-8?q?itions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the `skaffold.yaml` reference documentation, under the `profiles` section, don’t duplicate the top-level definition of `portForward`. Signed-off-by: David Gageot --- docs/content/en/docs/references/yaml/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/en/docs/references/yaml/main.js b/docs/content/en/docs/references/yaml/main.js index 60cfea840fb..6f850275472 100644 --- a/docs/content/en/docs/references/yaml/main.js +++ b/docs/content/en/docs/references/yaml/main.js @@ -61,8 +61,8 @@ function* template(definitions, parentDefinition, ref, ident, parent) { // Description const desc = definition['x-intellij-html-description']; - // Special case for profiles - if ((name === 'Profile') && (key === 'build' || key === 'test' || key === 'deploy')) { + // Don't duplicate definitions of top level sections such as build, test, deploy and portForward. + if ((name === 'Profile') && definitions['SkaffoldConfig'].properties[key]) { value = '{}'; yield html`