-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial helm attempt * wip - got image building with hardcoded values and added mariadb chart * updated uuid to v7 * updating deps * changing the package back to google * got everything working with kafka-ui and sample go app --------- Co-authored-by: Gilbert Mena <[email protected]>
- Loading branch information
Showing
95 changed files
with
7,800 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
gatewayProxies: | ||
gatewayProxy: | ||
service: | ||
type: NodePort | ||
httpPort: 80 | ||
httpsPort: 443 | ||
httpNodePort: 31500 | ||
httpsNodePort: 32500 | ||
|
||
settings: | ||
create: true | ||
writeNamespace: default | ||
watchNamespaces: | ||
- default |
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,27 @@ | ||
apiVersion: ctlptl.dev/v1alpha1 | ||
kind: Cluster | ||
kubernetesVersion: v1.21.12 | ||
registry: ctlptl-registry | ||
product: kind | ||
kindV1Alpha4Cluster: | ||
name: statemachine-kind | ||
networking: | ||
ipFamily: ipv4 | ||
apiServerAddress: 127.0.0.1 | ||
nodes: | ||
- role: control-plane | ||
extraPortMappings: | ||
- containerPort: 31500 | ||
hostPort: 31500 | ||
protocol: TCP | ||
- containerPort: 32500 | ||
hostPort: 32500 | ||
protocol: TCP | ||
- containerPort: 32000 | ||
hostPort: 32000 | ||
protocol: TCP | ||
--- | ||
apiVersion: ctlptl.dev/v1alpha1 | ||
kind: Registry | ||
name: ctlptl-registry | ||
port: 5000 |
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,65 @@ | ||
TIMESTAMP ?= $(shell date +%s) | ||
|
||
ROOT_DIRECTORY:=$(realpath $(dir $(realpath $(lastword $(MAKEFILE_LIST))))) | ||
|
||
REPOSITORY_GOPATH:=$(word 1, $(subst :, ,$(GOPATH))) | ||
REPOSITORY_PACKAGE:=github.com/tidepool-org/platform | ||
REPOSITORY_NAME:=$(notdir $(REPOSITORY_PACKAGE)) | ||
|
||
BIN_DIRECTORY := ${ROOT_DIRECTORY}/_bin | ||
PATH := ${PATH}:${BIN_DIRECTORY} | ||
|
||
ifdef TRAVIS_TAG | ||
VERSION_BASE:=$(TRAVIS_TAG) | ||
else | ||
VERSION_BASE:=$(shell git describe --abbrev=0 --tags 2> /dev/null || echo 'v0.0.0') | ||
endif | ||
VERSION_BASE:=$(VERSION_BASE:v%=%) | ||
VERSION_SHORT_COMMIT:=$(shell git rev-parse --short HEAD) | ||
VERSION_FULL_COMMIT:=$(shell git rev-parse HEAD) | ||
VERSION_PACKAGE:=$(REPOSITORY_PACKAGE)/application | ||
|
||
GO_BUILD_FLAGS:=-buildvcs=false | ||
GO_LD_FLAGS:=-ldflags '-X $(VERSION_PACKAGE).VersionBase=$(VERSION_BASE) -X $(VERSION_PACKAGE).VersionShortCommit=$(VERSION_SHORT_COMMIT) -X $(VERSION_PACKAGE).VersionFullCommit=$(VERSION_FULL_COMMIT)' | ||
|
||
FIND_MAIN_CMD:=find . -path './$(BUILD)*' -not -path './vendor/*' -name '*.go' -not -name '*_test.go' -type f -exec egrep -l '^\s*func\s+main\s*(\s*)' {} \; | ||
TRANSFORM_GO_BUILD_CMD:=sed 's|\.\(.*\)\(/[^/]*\)/[^/]*|_bin\1\2\2 .\1\2/.|' | ||
|
||
GO_BUILD_CMD:=CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build $(GO_BUILD_FLAGS) $(GO_LD_FLAGS) -o | ||
|
||
CompileDaemon: | ||
ifeq ($(shell which CompileDaemon),) | ||
go install github.com/githubnemo/CompileDaemon | ||
endif | ||
build: | ||
@echo "CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build $(BUILD)" | ||
@cd $(ROOT_DIRECTORY) && $(FIND_MAIN_CMD) | $(TRANSFORM_GO_BUILD_CMD) | while read LINE; do $(GO_BUILD_CMD) $${LINE}; done | ||
|
||
service-build: | ||
ifdef SERVICE | ||
@$(MAKE) build BUILD=$${SERVICE} | ||
endif | ||
|
||
service-start: CompileDaemon tmp | ||
ifdef SERVICE | ||
@cd $(ROOT_DIRECTORY) && BUILD=$(SERVICE) CompileDaemon -build-dir='.' -build='make build' -command='_bin/$(SERVICE)/$(notdir $(SERVICE))' -directory='_tmp' -pattern='^$$' -include='$(subst /,.,$(SERVICE)).restart' -recursive=false -log-prefix=false -graceful-kill=true -graceful-timeout=60 | ||
endif | ||
|
||
service-debug: CompileDaemon tmp | ||
ifdef SERVICE | ||
ifdef DEBUG_PORT | ||
@cd $(ROOT_DIRECTORY) && BUILD=$(SERVICE) CompileDaemon -build-dir='.' -build='make build' -command='dlv exec --headless --log --listen=:$(DEBUG_PORT) --api-version=2 _bin/$(SERVICE)/$(notdir $(SERVICE))' -directory='_tmp' -pattern='^$$' -include='$(subst /,.,$(SERVICE)).restart' -recursive=false -log-prefix=false -graceful-kill=true -graceful-timeout=60 | ||
endif | ||
endif | ||
|
||
service-restart: tmp | ||
ifdef SERVICE | ||
@cd $(ROOT_DIRECTORY) && date +'%Y-%m-%dT%H:%M:%S%z' > _tmp/$(subst /,.,$(SERVICE)).restart | ||
endif | ||
|
||
tmp: | ||
@mkdir -p $(ROOT_DIRECTORY)/_tmp | ||
|
||
|
||
|
||
.PHONY: default build service-build CompileDaemon tmp service-start service-debug service-restart |
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,92 @@ | ||
# Create an empty `local/Tiltconfig.yaml` and copy over any other services and update as needed | ||
# To run local development images for the tidepool services, uncomment the `image` and `hostPath` | ||
# parameters, and update the `hostPath` if you've checked the repo out to a different location. | ||
|
||
### Global Config Start ### | ||
global: | ||
glooingress: | ||
enabled: true | ||
jwt: | ||
disabled: true | ||
extauth: | ||
enabled: false | ||
gateway: | ||
default: | ||
protocol: http | ||
host: localhost:31500 | ||
domain: localhost | ||
proxy: | ||
name: gateway-proxy | ||
namespace: default | ||
targetPort: 0 | ||
linkerdsupport: | ||
enabled: false | ||
kafka: | ||
connect: | ||
enabled: true | ||
tlsEnabled: false | ||
replicas: 1 | ||
mongoConnectionUri: ${directory:/opt/kafka/external-configuration/connector-config:Scheme}://${directory:/opt/kafka/external-configuration/connector-config:Addresses}/?ssl=${directory:/opt/kafka/external-configuration/connector-config:Tls} | ||
passwordKeyName: password | ||
### Global Config End ### | ||
|
||
### Kafka config start ### | ||
kafka: | ||
configmap: | ||
enabled: true | ||
Brokers: "kafka-kafka-0:9092" | ||
RequireSSL: "false" | ||
TopicPrefix: "default-" | ||
Username: "kafka" | ||
podMonitor: | ||
enabled: false | ||
### Kafka API Config End ### | ||
|
||
|
||
|
||
### Gateway Config Start ### | ||
glooingress: | ||
enabled: true | ||
virtualServices: | ||
http: | ||
name: "internal" | ||
dnsNames: ["*"] | ||
port: "31500" | ||
options: | ||
cors: | ||
allowCredentials: true | ||
allowHeaders: | ||
- authorization | ||
- content-type | ||
- x-statemachine2-session-token | ||
- x-statemachine2-trace-request | ||
- x-statemachine2-trace-session | ||
allowMethods: | ||
- GET | ||
- POST | ||
- PUT | ||
- PATCH | ||
- DELETE | ||
- OPTIONS | ||
allowOriginRegex: | ||
- .* | ||
exposeHeaders: | ||
- x-statemachine2-session-token | ||
- x-statemachine2-trace-request | ||
- x-statemachine2-trace-session | ||
maxAge: 600s | ||
|
||
apiServer: | ||
enable: false | ||
### Gateway Config End ### | ||
|
||
### Statemachine Services Config End ### | ||
forward: | ||
deployment: | ||
# image: statemachine-go-image # Uncomment to build and run local image or a specific remote image | ||
# hostPath: ~/go/src/github.com/hibrid/statemachine2 # Uncomment to build and run local image | ||
containerPath: '/go/src/github.com/hibrid/statemachine2/deployments/examples/statemachine2-forward-example' | ||
dockerFile: 'Dockerfile' | ||
rebuildCommand: 'SERVICE="-o build/statemachine-go ./" make service-build' | ||
|
||
### Statemachine Services Config End ### |
Oops, something went wrong.