-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,459 changed files
with
2,843 additions
and
940,625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16.x | ||
go-version: 1.17.x | ||
- name: Import GPG key | ||
id: import_gpg | ||
uses: crazy-max/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM golang:1.16 | ||
|
||
WORKDIR /go/src/github.com/Mongey/terraform-provider-kafka/ | ||
|
||
COPY go.mod go.sum main.go GNUmakefile ./ | ||
COPY kafka kafka | ||
COPY secrets secrets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM confluentinc/cp-kafka:latest | ||
|
||
ARG broker_id | ||
ARG zookeeper_connect | ||
ARG listener_host | ||
ARG listener_port | ||
|
||
ENV KAFKA_BROKER_ID=$broker_id | ||
ENV KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 | ||
ENV KAFKA_ZOOKEEPER_CONNECT=$zookeeper_connect | ||
|
||
# confluent's bash script looks for an 'SSL' suffix in listener names: | ||
# https://github.com/confluentinc/cp-docker-images/blob/76d786d0243ea16626b8b46dba34ec0b1066de84/debian/kafka/include/etc/confluent/docker/configure#L65 | ||
ENV KAFKA_LISTENERS=INTERNAL_SSL://$listener_host:9090,EXTERNAL_SSL://$listener_host:9092 | ||
ENV KAFKA_ADVERTISED_LISTENERS=INTERNAL_SSL://$listener_host:9090,EXTERNAL_SSL://localhost:$listener_port | ||
ENV KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL_SSL:SSL,EXTERNAL_SSL:SSL | ||
ENV KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL_SSL | ||
|
||
ENV KAFKA_SSL_KEYSTORE_FILENAME=kafka.$listener_host.keystore.jks | ||
ENV KAFKA_SSL_KEYSTORE_CREDENTIALS=password | ||
|
||
ENV KAFKA_SSL_TRUSTSTORE_FILENAME=kafka.truststore.jks | ||
ENV KAFKA_SSL_TRUSTSTORE_CREDENTIALS=password | ||
|
||
ENV KAFKA_SSL_KEY_CREDENTIALS=password | ||
ENV KAFKA_SSL_CLIENT_AUTH=required | ||
ENV KAFKA_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM= | ||
ENV KAFKA_LISTENER_NAME_INTERNAL_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM= | ||
ENV KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND=true | ||
ENV KAFKA_AUTHORIZER_CLASS_NAME=kafka.security.auth.SimpleAclAuthorizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
TEST?=./... | ||
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor) | ||
default: build | ||
|
||
build: | ||
go build . | ||
|
||
test: | ||
go test $(TEST) -v $(TESTARGS) | ||
|
||
testacc: | ||
TEST_ACC=1 \ | ||
go test $(TEST) -v $(TESTARGS) | ||
|
||
.PHONY: build test testacc |
Oops, something went wrong.