Skip to content

Commit

Permalink
revved minimum version in doc examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanmelen committed Aug 1, 2022
1 parent 848ef08 commit 021968a
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 33 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ apply-cfk-crds:
setup: apply-cfk-crds ## Setup project
# terraform
terraform init

cd modules/confluent_operator && terraform init
cd modules/kafka_topics && terraform init
cd examples/confluent_operator && terraform init
cd examples/confluent_platform && terraform init
cd examples/confluent_platform_singlenode && terraform init
Expand Down Expand Up @@ -85,15 +88,20 @@ delete-cfk-crds:

clean: delete-cfk-crds ## Clean project
@rm -f .terraform.lock.hcl

@rm -f modules/confluent_operator/.terraform.lock.hcl
@rm -f modules/kafka_topics/.terraform.lock.hcl
@rm -f examples/confluent_operator/.terraform.lock.hcl
@rm -f examples/confluent_platform/.terraform.lock.hcl
@rm -f examples/confluent_platform_singlenode/.terraform.lock.hcl
@rm -f examples/complete/.terraform.lock.hcl

@rm -rf modules/confluent_operator/.terraform
@rm -rf modules/kafka_topics/.terraform
@rm -rf examples/confluent_operator/.terraform
@rm -rf examples/confluent_platform/.terraform
@rm -rf examples/confluent_platform_singlenode/.terraform
@rm -f examples/complete/.terraform.terraform
@rm -rf examples/complete/.terraform

@rm -f go.mod
@rm -f go.sum
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A Terraform module for running [Confluent for Kubernetes (CFK)](https://docs.con
```hcl
module "confluent_platform" {
source = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
namespace = var.namespace
Expand Down
10 changes: 5 additions & 5 deletions bin/render-docs.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

# render terraform-docs code examples
sed -z 's/source[^\r\n]*/source = "aidanmelen\/confluent-platform\/kubernetes\/\/modules\/confluent_operator"\n version = ">= 0.4.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.4.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.4.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.4.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.4.0"/g' examples/kafka_topics/main.tf > examples/kafka_topics/.main.tf.docs
sed -z 's/source[^\r\n]*/source = "aidanmelen\/confluent-platform\/kubernetes\/\/modules\/confluent_operator"\n version = ">= 0.6.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.6.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.6.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.6.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.6.0"/g' examples/kafka_topics/main.tf > examples/kafka_topics/.main.tf.docs

# render Makefile targets examples
make > .make.docs
Expand Down
2 changes: 1 addition & 1 deletion examples/complete/.main.tf.docs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "confluent_platform" {
source = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"

namespace = var.namespace

Expand Down
2 changes: 1 addition & 1 deletion examples/complete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Please see the [Makefile](https://github.com/aidanmelen/terraform-kubernetes-con
```hcl
module "confluent_platform" {
source = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
namespace = var.namespace
Expand Down
2 changes: 1 addition & 1 deletion examples/confluent_operator/.main.tf.docs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "confluent_operator" {
source = "aidanmelen/confluent-platform/kubernetes//modules/confluent_operator"
version = ">= 0.4.0"
version = ">= 0.6.0"

create_namespace = true
namespace = "confluent"
Expand Down
2 changes: 1 addition & 1 deletion examples/confluent_operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This example assumes you have a Kubernetes cluster running locally on Docker Des
```hcl
module "confluent_operator" {
source = "aidanmelen/confluent-platform/kubernetes//modules/confluent_operator"
version = ">= 0.4.0"
version = ">= 0.6.0"
create_namespace = true
namespace = "confluent"
Expand Down
2 changes: 1 addition & 1 deletion examples/confluent_platform/.main.tf.docs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "confluent_platform" {
source = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"

namespace = "confluent"

Expand Down
2 changes: 1 addition & 1 deletion examples/confluent_platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Release the [Confluent Operator example](https://github.com/aidanmelen/terraform
```hcl
module "confluent_platform" {
source = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
namespace = "confluent"
Expand Down
16 changes: 8 additions & 8 deletions examples/confluent_platform_singlenode/.main.tf.docs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "confluent_platform_singlenode" {
source = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"

namespace = "confluent"

Expand All @@ -9,7 +9,7 @@ spec:
replicas: 1
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"

requests:
cpu: 100m
Expand Down Expand Up @@ -38,7 +38,7 @@ spec:
- "password.encoder.secret=secret"
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"

requests:
cpu: 200m
Expand All @@ -62,7 +62,7 @@ spec:
- "status.storage.replication.factor=1"
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"

requests:
cpu: 100m
Expand All @@ -88,7 +88,7 @@ spec:
url: http://schemaregistry.confluent.svc.cluster.local:8081
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"

requests:
cpu: 100m
Expand Down Expand Up @@ -122,7 +122,7 @@ spec:
domain: minikube.domain
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"

requests:
cpu: 500m
Expand Down Expand Up @@ -153,7 +153,7 @@ spec:
replicas: 1
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"

requests:
cpu: 100m
Expand All @@ -173,7 +173,7 @@ spec:
url: http://schemaregistry.confluent.svc.cluster.local:8081
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"

requests:
cpu: 100m
Expand Down
16 changes: 8 additions & 8 deletions examples/confluent_platform_singlenode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Release the [Confluent Operator example](https://github.com/aidanmelen/terraform
```hcl
module "confluent_platform_singlenode" {
source = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
namespace = "confluent"
Expand All @@ -27,7 +27,7 @@ spec:
replicas: 1
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
requests:
cpu: 100m
Expand Down Expand Up @@ -56,7 +56,7 @@ spec:
- "password.encoder.secret=secret"
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
requests:
cpu: 200m
Expand All @@ -80,7 +80,7 @@ spec:
- "status.storage.replication.factor=1"
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
requests:
cpu: 100m
Expand All @@ -106,7 +106,7 @@ spec:
url: http://schemaregistry.confluent.svc.cluster.local:8081
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
requests:
cpu: 100m
Expand Down Expand Up @@ -140,7 +140,7 @@ spec:
domain: minikube.domain
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
requests:
cpu: 500m
Expand Down Expand Up @@ -171,7 +171,7 @@ spec:
replicas: 1
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
requests:
cpu: 100m
Expand All @@ -191,7 +191,7 @@ spec:
url: http://schemaregistry.confluent.svc.cluster.local:8081
podTemplate:
resource = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
requests:
cpu: 100m
Expand Down
4 changes: 2 additions & 2 deletions examples/kafka_topics/.main.tf.docs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module "kafka_topic" {
source = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"

name = "my-topic"
namespace = "confluent"
}

module "other_kafka_topic" {
source = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"

name = "my-other-topic"
namespace = "confluent"
Expand Down
4 changes: 2 additions & 2 deletions examples/kafka_topics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ Release the [Complete example](https://github.com/aidanmelen/terraform-kubernete
```hcl
module "kafka_topic" {
source = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
name = "my-topic"
namespace = "confluent"
}
module "other_kafka_topic" {
source = "aidanmelen/confluent-platform/kubernetes"
version = ">= 0.4.0"
version = ">= 0.6.0"
name = "my-other-topic"
namespace = "confluent"
Expand Down
1 change: 1 addition & 0 deletions modules/kafka_topic/.terraform-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ content: |-
{{ .Requirements }}
{{ .Providers }}
{{ .Modules }}
{{ .Resources }}
{{ .Inputs }}
{{ .Outputs }}
5 changes: 5 additions & 0 deletions modules/kafka_topic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ spec:
| Name | Version |
|------|---------|
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | >= 2.12.1 |
## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_kafka_topic_override_values"></a> [kafka\_topic\_override\_values](#module\_kafka\_topic\_override\_values) | Invicton-Labs/deepmerge/null | 0.1.5 |
## Resources

| Name | Type |
Expand Down

0 comments on commit 021968a

Please sign in to comment.