Skip to content

Commit

Permalink
lint docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanmelen committed Aug 8, 2022
1 parent 56963f2 commit 7b7bf1e
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 48 deletions.
24 changes: 0 additions & 24 deletions examples/hybrid_aws_msk/confluent_platform/.main.tf.docs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ content: |-
## Example
```hcl
{{ include ".main.tf.docs" }}
{{ include "main.tf" }}
```
{{ .Requirements }}
Expand Down
90 changes: 72 additions & 18 deletions examples/hybrid_aws_msk/confluent_platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,82 @@ Release the [Confluent Operator example](https://github.com/aidanmelen/terraform

```hcl
module "confluent_platform" {
source = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.9.0"
source = "../../../"
namespace = var.namespace
# assumes the confluent operator was deployed in another terraform run
confluent_operator = {
create = false
}
# uncomment to override the modules default local values
/*
zookeeper = yamldecode(file("${path.module}/values/zookeeper.yaml"))
kafka = yamldecode(file("${path.module}/values/kafka.yaml"))
connect = yamldecode(file("${path.module}/values/connect.yaml"))
ksqldb = yamldecode(file("${path.module}/values/ksqldb.yaml"))
controlcenter = yamldecode(file("${path.module}/values/controlcenter.yaml"))
schemaregistry = yamldecode(file("${path.module}/values/schemaregistry.yaml"))
kafkarestproxy = yamldecode(file("${path.module}/values/kafkarestproxy.yaml"))
*/
# Kafka and Zookeeper are managed by AWS MSK
create_zookeeper = false
create_kafka = false
create_controlcenter = var.create_controlcenter
connect = yamldecode(<<-EOF
spec:
tls:
autoGeneratedCerts: true
dependencies:
kafka:
bootstrapEndpoint: ${data.aws_msk_cluster.msk.bootstrap_brokers}
EOF
)
ksqldb = yamldecode(<<-EOF
spec:
tls:
autoGeneratedCerts: true
dependencies:
kafka:
bootstrapEndpoint: ${data.aws_msk_cluster.msk.bootstrap_brokers}
EOF
)
controlcenter = yamldecode(<<-EOF
spec:
tls:
autoGeneratedCerts: true
dependencies:
kafka:
bootstrapEndpoint: ${data.aws_msk_cluster.msk.bootstrap_brokers}
schemaRegistry:
url: https://schemaregistry.${var.namespace}.svc.cluster.local:8081
tls:
enabled: true
ksqldb:
- name: ksql-dev
url: https://ksqldb.${var.namespace}.svc.cluster.local:8088
tls:
enabled: true
connect:
- name: connect-dev
url: https://connect.${var.namespace}.svc.cluster.local:8083
tls:
enabled: true
EOF
)
schemaregistry = yamldecode(<<-EOF
spec:
tls:
autoGeneratedCerts: true
dependencies:
kafka:
bootstrapEndpoint: ${data.aws_msk_cluster.msk.bootstrap_brokers}
EOF
)
kafkarestproxy = yamldecode(<<-EOF
spec:
tls:
autoGeneratedCerts: true
dependencies:
kafka:
bootstrapEndpoint: ${data.aws_msk_cluster.msk.bootstrap_brokers}
schemaRegistry:
url: https://schemaregistry.${var.namespace}.svc.cluster.local:8081
tls:
enabled: true
EOF
)
}
```

Expand Down
6 changes: 1 addition & 5 deletions examples/hybrid_aws_msk/confluent_platform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ module "confluent_platform" {
create_zookeeper = false
create_kafka = false

create_connect = false
create_ksqldb = false
create_controlcenter = var.create_controlcenter
create_schemaregistry = false
create_kafkarestproxy = false
create_controlcenter = var.create_controlcenter

connect = yamldecode(<<-EOF
spec:
Expand Down

0 comments on commit 7b7bf1e

Please sign in to comment.