Skip to content

Commit

Permalink
Vendor custom version of sarama
Browse files Browse the repository at this point in the history
  • Loading branch information
Mongey committed Dec 5, 2018
1 parent 644070d commit 3949240
Show file tree
Hide file tree
Showing 371 changed files with 75,711 additions and 7,436 deletions.
117 changes: 67 additions & 50 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

[[constraint]]
name = "github.com/Shopify/sarama"
version = "v1.19.0"
source = "github.com/Mongey/sarama"
#version = "v1.19.0"
branch = "cm-new-describe-configs"

[[constraint]]
name = "github.com/hashicorp/terraform"
Expand Down
7 changes: 4 additions & 3 deletions bin/test
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

set -xe

go build
mv terraform-provider-kafka $HOME/.terraform.d/plugins/terraform-provider-kafka
cd examples
terraform init
terraform refresh
terraform plan -out plan
TF_LOG=debug terraform apply plan
TF_LOG=debug terraform refresh
TF_LOG=debug terraform plan -out plan
#TF_LOG=debug terraform apply plan
13 changes: 7 additions & 6 deletions examples/main.tf
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
provider "kafka" {
bootstrap_servers = ["localhost:9092"]
ca_cert_file = "../ssl-ffs/secrets/snakeoil-ca-1.crt"
client_cert_file = "../ssl-ffs/secrets/kafkacat-ca1-signed.pem"
client_key_file = "../ssl-ffs/secrets/kafkacat-raw-private-key.pem"
tls_enabled = true
skip_tls_verify = true

ca_cert_file = "../secrets/snakeoil-ca-1.crt"
client_cert_file = "../secrets/kafkacat-ca1-signed.pem"
client_key_file = "../secrets/kafkacat-raw-private-key.pem"
tls_enabled = true
skip_tls_verify = true
}

resource "kafka_topic" "syslog" {
name = "syslog"
replication_factor = 1
partitions = 200
partitions = 4

config = {
"segment.ms" = "4000"
Expand Down
Loading

0 comments on commit 3949240

Please sign in to comment.