From 8ffd1854db4631db9d8e26b49e1a534ddd912fe3 Mon Sep 17 00:00:00 2001 From: Kevin Pollet Date: Mon, 18 Nov 2024 14:40:05 +0100 Subject: [PATCH] Fix the defaultRule CLI examples --- docs/content/providers/consul-catalog.md | 2 +- docs/content/providers/docker.md | 2 +- docs/content/providers/ecs.md | 2 +- docs/content/providers/marathon.md | 2 +- docs/content/providers/nomad.md | 2 +- docs/content/providers/rancher.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/content/providers/consul-catalog.md b/docs/content/providers/consul-catalog.md index 9ea44de94..b27b6cb2a 100644 --- a/docs/content/providers/consul-catalog.md +++ b/docs/content/providers/consul-catalog.md @@ -525,7 +525,7 @@ providers: ``` ```bash tab="CLI" ---providers.consulcatalog.defaultRule=Host(`{{ .Name }}.{{ index .Labels \"customLabel\"}}`) +--providers.consulcatalog.defaultRule='Host(`{{ .Name }}.{{ index .Labels "customLabel"}}`)' # ... ``` diff --git a/docs/content/providers/docker.md b/docs/content/providers/docker.md index 2a11a2e7c..c1cadd86b 100644 --- a/docs/content/providers/docker.md +++ b/docs/content/providers/docker.md @@ -466,7 +466,7 @@ providers: ``` ```bash tab="CLI" ---providers.docker.defaultRule=Host(`{{ .Name }}.{{ index .Labels \"customLabel\"}}`) +--providers.docker.defaultRule='Host(`{{ .Name }}.{{ index .Labels "customLabel"}}`)' # ... ``` diff --git a/docs/content/providers/ecs.md b/docs/content/providers/ecs.md index 80a11a35e..ba5e41088 100644 --- a/docs/content/providers/ecs.md +++ b/docs/content/providers/ecs.md @@ -259,7 +259,7 @@ providers: ``` ```bash tab="CLI" ---providers.ecs.defaultRule=Host(`{{ .Name }}.{{ index .Labels \"customLabel\"}}`) +--providers.ecs.defaultRule='Host(`{{ .Name }}.{{ index .Labels "customLabel"}}`)' # ... ``` diff --git a/docs/content/providers/marathon.md b/docs/content/providers/marathon.md index 0b5c2794b..d8ca6aa21 100644 --- a/docs/content/providers/marathon.md +++ b/docs/content/providers/marathon.md @@ -138,7 +138,7 @@ providers: ``` ```bash tab="CLI" ---providers.marathon.defaultRule=Host(`{{ .Name }}.{{ index .Labels \"customLabel\"}}`) +--providers.marathon.defaultRule='Host(`{{ .Name }}.{{ index .Labels "customLabel"}}`)' # ... ``` diff --git a/docs/content/providers/nomad.md b/docs/content/providers/nomad.md index 5c565b055..b9c01526c 100644 --- a/docs/content/providers/nomad.md +++ b/docs/content/providers/nomad.md @@ -374,7 +374,7 @@ providers: ``` ```bash tab="CLI" ---providers.nomad.defaultRule="Host(`{{ .Name }}.{{ index .Labels \"customLabel\"}}`)" +--providers.nomad.defaultRule='Host(`{{ .Name }}.{{ index .Labels "customLabel"}}`)' # ... ``` diff --git a/docs/content/providers/rancher.md b/docs/content/providers/rancher.md index f43b70b1f..f58c508fd 100644 --- a/docs/content/providers/rancher.md +++ b/docs/content/providers/rancher.md @@ -121,7 +121,7 @@ providers: ``` ```bash tab="CLI" ---providers.rancher.defaultRule=Host(`{{ .Name }}.{{ index .Labels \"customLabel\"}}`) +--providers.rancher.defaultRule='Host(`{{ .Name }}.{{ index .Labels "customLabel"}}`)' # ... ```