From 7458e1594d69ecc33ff754c2c7eaf448eead8e64 Mon Sep 17 00:00:00 2001 From: aidanmelen Date: Thu, 4 Aug 2022 21:08:08 +0000 Subject: [PATCH] fixed code examples docs --- README.md | 11 +++++++---- bin/render-docs.sh | 2 +- examples/complete/.main.tf.docs | 11 +++++++---- examples/complete/README.md | 11 +++++++---- examples/complete/main.tf | 8 ++++++-- 5 files changed, 28 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index eb3974f..242c366 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,12 @@ module "confluent_platform" { chart_version = "0.517.12" } - # hcl value overrides - zookeeper = { "spec" = { "replicas" = "3" } } + # value overrides + zookeeper = { + "spec" = { + "replicas" = "3" + } + } # yaml inline value overrides kafka = yamldecode(<<-EOF @@ -79,8 +83,7 @@ module "confluent_platform" { } connectors = { - "pageviews-source = "aidanmelen/confluent-platform/kubernetes" - version = ">= 0.8.0" + "pageviews-source" = { "values" = yamldecode(file("${path.module}/values/connector.yaml")) } } diff --git a/bin/render-docs.sh b/bin/render-docs.sh index 2fb92df..d3c5581 100755 --- a/bin/render-docs.sh +++ b/bin/render-docs.sh @@ -6,7 +6,7 @@ sed -z 's/source[^\r\n]*/source = "aidanmelen\/confluent-platform\/kubernetes\/\/modules\/confluent_operator"\n version = ">= 0.8.0"\n/g' examples/confluent_operator/main.tf > examples/confluent_operator/.main.tf.docs sed -z 's/source[^\r\n]*/source = "aidanmelen\/confluent-platform\/kubernetes"\n version = ">= 0.8.0"\n/g' examples/confluent_platform/main.tf > examples/confluent_platform/.main.tf.docs sed -z 's/source[^\r\n]*/source = "aidanmelen\/confluent-platform\/kubernetes"\n version = ">= 0.8.0"\n/g' examples/confluent_platform_singlenode/main.tf > examples/confluent_platform_singlenode/.main.tf.docs -sed -z 's/source[^\r\n]*/source = "aidanmelen\/confluent-platform\/kubernetes"\n version = ">= 0.8.0"/g' examples/complete/main.tf > examples/complete/.main.tf.docs +sed -z 's/source[^\r\n]*/source = "aidanmelen\/confluent-platform\/kubernetes"\n version = ">= 0.8.0"/1' examples/complete/main.tf > examples/complete/.main.tf.docs sed -z 's/source[^\r\n]*/source = "aidanmelen\/confluent-platform\/kubernetes\/\/modules\/kafka_topic"\n version = ">= 0.8.0"/g' examples/kafka_topic/main.tf > examples/kafka_topic/.main.tf.docs sed -z 's/source[^\r\n]*/source = "aidanmelen\/confluent-platform\/kubernetes\/\/modules\/schema"\n version = ">= 0.8.0"\n/g' examples/schema/main.tf > examples/schema/.main.tf.docs sed -z 's/source[^\r\n]*/source = "aidanmelen\/confluent-platform\/kubernetes\/\/modules\/connector"\n version = ">= 0.8.0"/1' examples/connector/main.tf > examples/connector/.main.tf.docs diff --git a/examples/complete/.main.tf.docs b/examples/complete/.main.tf.docs index 87fd5df..ec6f318 100644 --- a/examples/complete/.main.tf.docs +++ b/examples/complete/.main.tf.docs @@ -10,8 +10,12 @@ module "confluent_platform" { chart_version = "0.517.12" } - # hcl value overrides - zookeeper = { "spec" = { "replicas" = "3" } } + # value overrides + zookeeper = { + "spec" = { + "replicas" = "3" + } + } # yaml inline value overrides kafka = yamldecode(<<-EOF @@ -42,8 +46,7 @@ module "confluent_platform" { } connectors = { - "pageviews-source = "aidanmelen/confluent-platform/kubernetes" - version = ">= 0.8.0" + "pageviews-source" = { "values" = yamldecode(file("${path.module}/values/connector.yaml")) } } diff --git a/examples/complete/README.md b/examples/complete/README.md index 8e13785..7ccab57 100644 --- a/examples/complete/README.md +++ b/examples/complete/README.md @@ -32,8 +32,12 @@ module "confluent_platform" { chart_version = "0.517.12" } - # hcl value overrides - zookeeper = { "spec" = { "replicas" = "3" } } + # value overrides + zookeeper = { + "spec" = { + "replicas" = "3" + } + } # yaml inline value overrides kafka = yamldecode(<<-EOF @@ -64,8 +68,7 @@ module "confluent_platform" { } connectors = { - "pageviews-source = "aidanmelen/confluent-platform/kubernetes" - version = ">= 0.8.0" + "pageviews-source" = { "values" = yamldecode(file("${path.module}/values/connector.yaml")) } } diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 8c365a2..0b9787a 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -9,8 +9,12 @@ module "confluent_platform" { chart_version = "0.517.12" } - # hcl value overrides - zookeeper = { "spec" = { "replicas" = "3" } } + # value overrides + zookeeper = { + "spec" = { + "replicas" = "3" + } + } # yaml inline value overrides kafka = yamldecode(<<-EOF