Skip to content

Commit

Permalink
fixed code examples docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanmelen committed Aug 4, 2022
1 parent 4aba36d commit 7458e15
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 15 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"))
}
}
Expand Down
2 changes: 1 addition & 1 deletion bin/render-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 7 additions & 4 deletions examples/complete/.main.tf.docs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"))
}
}
Expand Down
11 changes: 7 additions & 4 deletions examples/complete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"))
}
}
Expand Down
8 changes: 6 additions & 2 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7458e15

Please sign in to comment.