From 7fdc8c9c50d1b4a2b207e85e5c0a3e3ec6d2cbfa Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Thu, 21 Sep 2023 10:24:11 +0200 Subject: [PATCH] refactor: move examples --- .../common}/charts/backend/Chart.yaml | 0 .../charts/backend/templates/deployment.yaml | 2 +- .../charts/backend/templates/service.yaml | 2 +- _examples/common/charts/backend/values.yaml | 3 + .../common}/charts/frontend/Chart.yaml | 0 .../charts/frontend/templates/deployment.yaml | 2 +- .../charts/frontend/templates/service.yaml | 2 +- _examples/common/charts/frontend/values.yaml | 3 + .../common}/docker/backend.Dockerfile | 2 +- .../common}/docker/frontend.Dockerfile | 0 _examples/helloworld/Makefile | 59 +++++++++++++++ _examples/helloworld/app/go.mod | 3 + {example => _examples}/helloworld/app/main.go | 0 _examples/helloworld/squadron.yaml | 19 +++++ _examples/monorepo/Makefile | 61 ++++++++++++++++ .../squadrons/checkout}/backend/go.mod | 0 .../squadrons/checkout}/backend/main.go | 0 .../squadrons/checkout/backend/squadron.yaml | 17 +++++ .../squadrons/checkout}/frontend/index.html | 0 .../squadrons/checkout/frontend/squadron.yaml | 17 +++++ _examples/monorepo/squadrons/squadron.yaml | 6 ++ .../squadrons/storefinder/backend/go.mod | 3 + .../squadrons/storefinder/backend/main.go | 13 ++++ .../storefinder/backend/squadron.yaml | 17 +++++ .../squadrons/storefinder/frontend/index.html | 12 ++++ .../storefinder/frontend/squadron.yaml | 17 +++++ example/helloworld/app/Dockerfile | 11 --- example/helloworld/chart/Chart.yaml | 0 example/helloworld/squadron.yaml | 15 ---- example/monorepo/Makefile | 71 ------------------- example/monorepo/charts/backend/values.yaml | 3 - example/monorepo/charts/frontend/values.yaml | 3 - example/monorepo/squadrons/squadron.yaml | 20 ------ .../storefinder/backend/squadron.yaml | 16 ----- .../storefinder/frontend/squadron.yaml | 16 ----- .../squadrons/storefinder/squadron.yaml | 4 -- 36 files changed, 255 insertions(+), 164 deletions(-) rename {example/monorepo => _examples/common}/charts/backend/Chart.yaml (100%) rename {example/monorepo => _examples/common}/charts/backend/templates/deployment.yaml (97%) rename {example/monorepo => _examples/common}/charts/backend/templates/service.yaml (96%) create mode 100644 _examples/common/charts/backend/values.yaml rename {example/monorepo => _examples/common}/charts/frontend/Chart.yaml (100%) rename {example/monorepo => _examples/common}/charts/frontend/templates/deployment.yaml (97%) rename {example/monorepo => _examples/common}/charts/frontend/templates/service.yaml (96%) create mode 100644 _examples/common/charts/frontend/values.yaml rename {example/monorepo => _examples/common}/docker/backend.Dockerfile (88%) rename {example/monorepo => _examples/common}/docker/frontend.Dockerfile (100%) create mode 100644 _examples/helloworld/Makefile create mode 100644 _examples/helloworld/app/go.mod rename {example => _examples}/helloworld/app/main.go (100%) create mode 100644 _examples/helloworld/squadron.yaml create mode 100644 _examples/monorepo/Makefile rename {example/monorepo/squadrons/storefinder => _examples/monorepo/squadrons/checkout}/backend/go.mod (100%) rename {example/monorepo/squadrons/storefinder => _examples/monorepo/squadrons/checkout}/backend/main.go (100%) create mode 100644 _examples/monorepo/squadrons/checkout/backend/squadron.yaml rename {example/monorepo/squadrons/storefinder => _examples/monorepo/squadrons/checkout}/frontend/index.html (100%) create mode 100644 _examples/monorepo/squadrons/checkout/frontend/squadron.yaml create mode 100644 _examples/monorepo/squadrons/squadron.yaml create mode 100644 _examples/monorepo/squadrons/storefinder/backend/go.mod create mode 100644 _examples/monorepo/squadrons/storefinder/backend/main.go create mode 100644 _examples/monorepo/squadrons/storefinder/backend/squadron.yaml create mode 100644 _examples/monorepo/squadrons/storefinder/frontend/index.html create mode 100644 _examples/monorepo/squadrons/storefinder/frontend/squadron.yaml delete mode 100644 example/helloworld/app/Dockerfile delete mode 100644 example/helloworld/chart/Chart.yaml delete mode 100644 example/helloworld/squadron.yaml delete mode 100644 example/monorepo/Makefile delete mode 100644 example/monorepo/charts/backend/values.yaml delete mode 100644 example/monorepo/charts/frontend/values.yaml delete mode 100644 example/monorepo/squadrons/squadron.yaml delete mode 100644 example/monorepo/squadrons/storefinder/backend/squadron.yaml delete mode 100644 example/monorepo/squadrons/storefinder/frontend/squadron.yaml delete mode 100644 example/monorepo/squadrons/storefinder/squadron.yaml diff --git a/example/monorepo/charts/backend/Chart.yaml b/_examples/common/charts/backend/Chart.yaml similarity index 100% rename from example/monorepo/charts/backend/Chart.yaml rename to _examples/common/charts/backend/Chart.yaml diff --git a/example/monorepo/charts/backend/templates/deployment.yaml b/_examples/common/charts/backend/templates/deployment.yaml similarity index 97% rename from example/monorepo/charts/backend/templates/deployment.yaml rename to _examples/common/charts/backend/templates/deployment.yaml index d065a17..6e2bfee 100644 --- a/example/monorepo/charts/backend/templates/deployment.yaml +++ b/_examples/common/charts/backend/templates/deployment.yaml @@ -23,6 +23,6 @@ spec: - name: {{ .Release.Name }} image: {{ .Values.image.repository }}:{{ .Values.image.tag }} ports: - - + - name: http protocol: TCP containerPort: 80 diff --git a/example/monorepo/charts/backend/templates/service.yaml b/_examples/common/charts/backend/templates/service.yaml similarity index 96% rename from example/monorepo/charts/backend/templates/service.yaml rename to _examples/common/charts/backend/templates/service.yaml index f87c542..62043c5 100644 --- a/example/monorepo/charts/backend/templates/service.yaml +++ b/_examples/common/charts/backend/templates/service.yaml @@ -13,5 +13,5 @@ spec: app.kubernetes.io/name: {{ .Release.Name }} app.kubernetes.io/component: {{ .Chart.Name }} ports: - - name: 80 + - name: http port: 80 diff --git a/_examples/common/charts/backend/values.yaml b/_examples/common/charts/backend/values.yaml new file mode 100644 index 0000000..ccf1216 --- /dev/null +++ b/_examples/common/charts/backend/values.yaml @@ -0,0 +1,3 @@ +image: + repository: nginx + tag: "latest" diff --git a/example/monorepo/charts/frontend/Chart.yaml b/_examples/common/charts/frontend/Chart.yaml similarity index 100% rename from example/monorepo/charts/frontend/Chart.yaml rename to _examples/common/charts/frontend/Chart.yaml diff --git a/example/monorepo/charts/frontend/templates/deployment.yaml b/_examples/common/charts/frontend/templates/deployment.yaml similarity index 97% rename from example/monorepo/charts/frontend/templates/deployment.yaml rename to _examples/common/charts/frontend/templates/deployment.yaml index d065a17..6e2bfee 100644 --- a/example/monorepo/charts/frontend/templates/deployment.yaml +++ b/_examples/common/charts/frontend/templates/deployment.yaml @@ -23,6 +23,6 @@ spec: - name: {{ .Release.Name }} image: {{ .Values.image.repository }}:{{ .Values.image.tag }} ports: - - + - name: http protocol: TCP containerPort: 80 diff --git a/example/monorepo/charts/frontend/templates/service.yaml b/_examples/common/charts/frontend/templates/service.yaml similarity index 96% rename from example/monorepo/charts/frontend/templates/service.yaml rename to _examples/common/charts/frontend/templates/service.yaml index f87c542..62043c5 100644 --- a/example/monorepo/charts/frontend/templates/service.yaml +++ b/_examples/common/charts/frontend/templates/service.yaml @@ -13,5 +13,5 @@ spec: app.kubernetes.io/name: {{ .Release.Name }} app.kubernetes.io/component: {{ .Chart.Name }} ports: - - name: 80 + - name: http port: 80 diff --git a/_examples/common/charts/frontend/values.yaml b/_examples/common/charts/frontend/values.yaml new file mode 100644 index 0000000..ccf1216 --- /dev/null +++ b/_examples/common/charts/frontend/values.yaml @@ -0,0 +1,3 @@ +image: + repository: nginx + tag: "latest" diff --git a/example/monorepo/docker/backend.Dockerfile b/_examples/common/docker/backend.Dockerfile similarity index 88% rename from example/monorepo/docker/backend.Dockerfile rename to _examples/common/docker/backend.Dockerfile index 8407a4a..23b8a3b 100644 --- a/example/monorepo/docker/backend.Dockerfile +++ b/_examples/common/docker/backend.Dockerfile @@ -1,4 +1,4 @@ -FROM golang:alpine as base +FROM golang:alpine as builder ENV CGO_ENABLED=0 diff --git a/example/monorepo/docker/frontend.Dockerfile b/_examples/common/docker/frontend.Dockerfile similarity index 100% rename from example/monorepo/docker/frontend.Dockerfile rename to _examples/common/docker/frontend.Dockerfile diff --git a/_examples/helloworld/Makefile b/_examples/helloworld/Makefile new file mode 100644 index 0000000..10c5b3b --- /dev/null +++ b/_examples/helloworld/Makefile @@ -0,0 +1,59 @@ +.DEFAULT_GOAL:=help + +export PROJECT_ROOT=$(PWD) + +## === Tasks === + +.PHONY: list +## Show config +list: + @go run ../../cmd/main.go list + +.PHONY: config +## Show config +config: + @go run ../../cmd/main.go config + +.PHONY: build +## Show config +build: + @go run ../../cmd/main.go build + +.PHONY: template +## Show config +template: + @go run ../../cmd/main.go template + +## === Utils === + +## Show help text +help: + @awk '{ \ + if ($$0 ~ /^.PHONY: [a-zA-Z\-\_0-9]+$$/) { \ + helpCommand = substr($$0, index($$0, ":") + 2); \ + if (helpMessage) { \ + printf "\033[36m%-23s\033[0m %s\n", \ + helpCommand, helpMessage; \ + helpMessage = ""; \ + } \ + } else if ($$0 ~ /^[a-zA-Z\-\_0-9.]+:/) { \ + helpCommand = substr($$0, 0, index($$0, ":")); \ + if (helpMessage) { \ + printf "\033[36m%-23s\033[0m %s\n", \ + helpCommand, helpMessage"\n"; \ + helpMessage = ""; \ + } \ + } else if ($$0 ~ /^##/) { \ + if (helpMessage) { \ + helpMessage = helpMessage"\n "substr($$0, 3); \ + } else { \ + helpMessage = substr($$0, 3); \ + } \ + } else { \ + if (helpMessage) { \ + print "\n "helpMessage"\n" \ + } \ + helpMessage = ""; \ + } \ + }' \ + $(MAKEFILE_LIST) diff --git a/_examples/helloworld/app/go.mod b/_examples/helloworld/app/go.mod new file mode 100644 index 0000000..850fa2e --- /dev/null +++ b/_examples/helloworld/app/go.mod @@ -0,0 +1,3 @@ +module github.com/foomo/squadron/exmpale/helloworld + +go 1.21 diff --git a/example/helloworld/app/main.go b/_examples/helloworld/app/main.go similarity index 100% rename from example/helloworld/app/main.go rename to _examples/helloworld/app/main.go diff --git a/_examples/helloworld/squadron.yaml b/_examples/helloworld/squadron.yaml new file mode 100644 index 0000000..2a096fb --- /dev/null +++ b/_examples/helloworld/squadron.yaml @@ -0,0 +1,19 @@ +version: "2.0" + +squadron: + storefinder: + backend: + chart: <% env "PROJECT_ROOT" %>/../common/charts/backend + builds: + default: + tag: latest + context: <% env "PROJECT_ROOT" %>/app + dockerfile: <% env "PROJECT_ROOT" %>/../common/docker/backend.Dockerfile + image: helloworld/app + values: + image: + tag: <% .Squadron.storefinder.backend.builds.default.tag | quote %> + repository: <% .Squadron.storefinder.backend.builds.default.image %> + service: + ports: + - 80 diff --git a/_examples/monorepo/Makefile b/_examples/monorepo/Makefile new file mode 100644 index 0000000..21164a4 --- /dev/null +++ b/_examples/monorepo/Makefile @@ -0,0 +1,61 @@ +.DEFAULT_GOAL:=help + +export PROJECT_ROOT=$(PWD) + +files=$(shell find . -name 'squadron.yaml' | tail -r | xargs echo -n | tr " ", ",") + +## === Tasks === + +.PHONY: list +## Show config +list: + @go run ../../cmd/main.go -f ${files} list + +.PHONY: config +## Show config +config: + @go run ../../cmd/main.go -f ${files} config + +.PHONY: build +## Show config +build: + @go run ../../cmd/main.go -f ${files} build + +.PHONY: template +## Show config +template: + @go run ../../cmd/main.go -f ${files} template + +## === Utils === + +## Show help text +help: + @awk '{ \ + if ($$0 ~ /^.PHONY: [a-zA-Z\-\_0-9]+$$/) { \ + helpCommand = substr($$0, index($$0, ":") + 2); \ + if (helpMessage) { \ + printf "\033[36m%-23s\033[0m %s\n", \ + helpCommand, helpMessage; \ + helpMessage = ""; \ + } \ + } else if ($$0 ~ /^[a-zA-Z\-\_0-9.]+:/) { \ + helpCommand = substr($$0, 0, index($$0, ":")); \ + if (helpMessage) { \ + printf "\033[36m%-23s\033[0m %s\n", \ + helpCommand, helpMessage"\n"; \ + helpMessage = ""; \ + } \ + } else if ($$0 ~ /^##/) { \ + if (helpMessage) { \ + helpMessage = helpMessage"\n "substr($$0, 3); \ + } else { \ + helpMessage = substr($$0, 3); \ + } \ + } else { \ + if (helpMessage) { \ + print "\n "helpMessage"\n" \ + } \ + helpMessage = ""; \ + } \ + }' \ + $(MAKEFILE_LIST) diff --git a/example/monorepo/squadrons/storefinder/backend/go.mod b/_examples/monorepo/squadrons/checkout/backend/go.mod similarity index 100% rename from example/monorepo/squadrons/storefinder/backend/go.mod rename to _examples/monorepo/squadrons/checkout/backend/go.mod diff --git a/example/monorepo/squadrons/storefinder/backend/main.go b/_examples/monorepo/squadrons/checkout/backend/main.go similarity index 100% rename from example/monorepo/squadrons/storefinder/backend/main.go rename to _examples/monorepo/squadrons/checkout/backend/main.go diff --git a/_examples/monorepo/squadrons/checkout/backend/squadron.yaml b/_examples/monorepo/squadrons/checkout/backend/squadron.yaml new file mode 100644 index 0000000..df96fcd --- /dev/null +++ b/_examples/monorepo/squadrons/checkout/backend/squadron.yaml @@ -0,0 +1,17 @@ +# Schema version +version: "2.0" + +squadron: + checkout: + backend: + chart: <% env "PROJECT_ROOT" %>/../common/charts/backend + builds: + default: + tag: <% .Global.docker.tag | quote %> + image: <% .Global.docker.registry %>/checkout-backend + context: <% env "PROJECT_ROOT" %>/squadrons/checkout/backend + dockerfile: <% env "PROJECT_ROOT" %>/../common/docker/backend.Dockerfile + values: + image: + tag: <% .Global.docker.tag | quote %> + repository: <% .Squadron.checkout.backend.builds.default.image %> diff --git a/example/monorepo/squadrons/storefinder/frontend/index.html b/_examples/monorepo/squadrons/checkout/frontend/index.html similarity index 100% rename from example/monorepo/squadrons/storefinder/frontend/index.html rename to _examples/monorepo/squadrons/checkout/frontend/index.html diff --git a/_examples/monorepo/squadrons/checkout/frontend/squadron.yaml b/_examples/monorepo/squadrons/checkout/frontend/squadron.yaml new file mode 100644 index 0000000..dca1fc0 --- /dev/null +++ b/_examples/monorepo/squadrons/checkout/frontend/squadron.yaml @@ -0,0 +1,17 @@ +# Schema version +version: "2.0" + +squadron: + checkout: + frontend: + chart: <% env "PROJECT_ROOT" %>/../common/charts/frontend + builds: + default: + tag: "<% .Global.docker.tag %>" + image: <% .Global.docker.registry %>/checkout-frontend + context: <% env "PROJECT_ROOT" %>/squadrons/checkout/frontend + dockerfile: <% env "PROJECT_ROOT" %>/../common/docker/frontend.Dockerfile + values: + image: + tag: "<% .Global.docker.tag %>" + repository: <% .Squadron.checkout.frontend.builds.default.image %> diff --git a/_examples/monorepo/squadrons/squadron.yaml b/_examples/monorepo/squadrons/squadron.yaml new file mode 100644 index 0000000..51b00a1 --- /dev/null +++ b/_examples/monorepo/squadrons/squadron.yaml @@ -0,0 +1,6 @@ +version: "2.0" + +global: + docker: + tag: "230101.0" + registry: monorepo diff --git a/_examples/monorepo/squadrons/storefinder/backend/go.mod b/_examples/monorepo/squadrons/storefinder/backend/go.mod new file mode 100644 index 0000000..d7d1b45 --- /dev/null +++ b/_examples/monorepo/squadrons/storefinder/backend/go.mod @@ -0,0 +1,3 @@ +module github.com/foomo/squadron/exmpale/monorepo/storefinder/backend + +go 1.16 diff --git a/_examples/monorepo/squadrons/storefinder/backend/main.go b/_examples/monorepo/squadrons/storefinder/backend/main.go new file mode 100644 index 0000000..55ca898 --- /dev/null +++ b/_examples/monorepo/squadrons/storefinder/backend/main.go @@ -0,0 +1,13 @@ +package main + +import ( + "fmt" + "net/http" +) + +func main() { + http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + _, _ = fmt.Fprintf(w, "hello") + }) + _ = http.ListenAndServe(":80", nil) +} diff --git a/_examples/monorepo/squadrons/storefinder/backend/squadron.yaml b/_examples/monorepo/squadrons/storefinder/backend/squadron.yaml new file mode 100644 index 0000000..511e809 --- /dev/null +++ b/_examples/monorepo/squadrons/storefinder/backend/squadron.yaml @@ -0,0 +1,17 @@ +# Schema version +version: "2.0" + +squadron: + storefinder: + backend: + chart: <% env "PROJECT_ROOT" %>/../common/charts/backend + builds: + default: + tag: <% .Global.docker.tag | quote %> + image: <% .Global.docker.registry %>/storefinder-backend + context: <% env "PROJECT_ROOT" %>/squadrons/storefinder/backend + dockerfile: <% env "PROJECT_ROOT" %>/../common/docker/backend.Dockerfile + values: + image: + tag: <% .Global.docker.tag | quote %> + repository: <% .Squadron.storefinder.backend.builds.default.image %> diff --git a/_examples/monorepo/squadrons/storefinder/frontend/index.html b/_examples/monorepo/squadrons/storefinder/frontend/index.html new file mode 100644 index 0000000..f712531 --- /dev/null +++ b/_examples/monorepo/squadrons/storefinder/frontend/index.html @@ -0,0 +1,12 @@ + + + + + + + Document + + +

Storefinder

+ + diff --git a/_examples/monorepo/squadrons/storefinder/frontend/squadron.yaml b/_examples/monorepo/squadrons/storefinder/frontend/squadron.yaml new file mode 100644 index 0000000..6eb6297 --- /dev/null +++ b/_examples/monorepo/squadrons/storefinder/frontend/squadron.yaml @@ -0,0 +1,17 @@ +# Schema version +version: "2.0" + +squadron: + storefinder: + frontend: + chart: <% env "PROJECT_ROOT" %>/../common/charts/frontend + builds: + default: + tag: "<% .Global.docker.tag %>" + image: <% .Global.docker.registry %>/storefinder-frontend + context: <% env "PROJECT_ROOT" %>/squadrons/storefinder/frontend + dockerfile: <% env "PROJECT_ROOT" %>/../common/docker/frontend.Dockerfile + values: + image: + tag: "<% .Global.docker.tag %>" + repository: <% .Squadron.storefinder.frontend.builds.default.image %> diff --git a/example/helloworld/app/Dockerfile b/example/helloworld/app/Dockerfile deleted file mode 100644 index 7181694..0000000 --- a/example/helloworld/app/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM golang:alpine AS builder - -COPY main.go . - -RUN go build -o /helloworld . - -FROM alpine:latest - -COPY --from=builder /helloworld /helloworld - -ENTRYPOINT ["/helloworld"] \ No newline at end of file diff --git a/example/helloworld/chart/Chart.yaml b/example/helloworld/chart/Chart.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/example/helloworld/squadron.yaml b/example/helloworld/squadron.yaml deleted file mode 100644 index 8e6beeb..0000000 --- a/example/helloworld/squadron.yaml +++ /dev/null @@ -1,15 +0,0 @@ -version: "1.0" - -squadron: - app: - chart: ./chart - builds: - default: - tag: latest - context: ./app - image: helloworld/app - values: - image: "{{ .Squadron.app.builds.default.image }}:{{ .Squadron.app.builds.default.tag }}" - service: - ports: - - 80 diff --git a/example/monorepo/Makefile b/example/monorepo/Makefile deleted file mode 100644 index c188b47..0000000 --- a/example/monorepo/Makefile +++ /dev/null @@ -1,71 +0,0 @@ -.DEFAULT_GOAL:=help - -export PROJECT_ROOT=$(PWD) - -storefinder.%:files=./squadrons/squadron.yaml,./squadrons/storefinder/squadron.yaml,./squadrons/storefinder/frontend/squadron.yaml,./squadrons/storefinder/backend/squadron.yaml - -.PHONY: storefinder.frontend.config -## Show config -storefinder.frontend.config: - @squadron -f ${files} config - -.PHONY: storefinder.frontend.template -## Show config -storefinder.frontend.template: - @squadron -f ${files} template - -.PHONY: storefinder.frontend.generate -## Generate helm chart -storefinder.frontend.generate: - @squadron -f ${files} generate - -storefinder.%:files=./squadrons/squadron.yaml,./squadrons/storefinder/squadron.yaml,./squadrons/storefinder/frontend/squadron.yaml,./squadrons/storefinder/backend/squadron.yaml - -.PHONY: storefinder.backend.config -## Show config -storefinder.backend.config: - @squadron -f ${files} config - -.PHONY: storefinder.backend.template -## Show template -storefinder.backend.template: - @squadron -f ${files} template - -.PHONY: storefinder.backend.generate -## Generate helm chart -storefinder.backend.generate: - @squadron -f ${files} generate - -## === Utils === - -## Show help text -help: - @awk '{ \ - if ($$0 ~ /^.PHONY: [a-zA-Z\-\_0-9]+$$/) { \ - helpCommand = substr($$0, index($$0, ":") + 2); \ - if (helpMessage) { \ - printf "\033[36m%-23s\033[0m %s\n", \ - helpCommand, helpMessage; \ - helpMessage = ""; \ - } \ - } else if ($$0 ~ /^[a-zA-Z\-\_0-9.]+:/) { \ - helpCommand = substr($$0, 0, index($$0, ":")); \ - if (helpMessage) { \ - printf "\033[36m%-23s\033[0m %s\n", \ - helpCommand, helpMessage"\n"; \ - helpMessage = ""; \ - } \ - } else if ($$0 ~ /^##/) { \ - if (helpMessage) { \ - helpMessage = helpMessage"\n "substr($$0, 3); \ - } else { \ - helpMessage = substr($$0, 3); \ - } \ - } else { \ - if (helpMessage) { \ - print "\n "helpMessage"\n" \ - } \ - helpMessage = ""; \ - } \ - }' \ - $(MAKEFILE_LIST) diff --git a/example/monorepo/charts/backend/values.yaml b/example/monorepo/charts/backend/values.yaml deleted file mode 100644 index 20b7595..0000000 --- a/example/monorepo/charts/backend/values.yaml +++ /dev/null @@ -1,3 +0,0 @@ -image: {} -# tag: null -# repository: null diff --git a/example/monorepo/charts/frontend/values.yaml b/example/monorepo/charts/frontend/values.yaml deleted file mode 100644 index 20b7595..0000000 --- a/example/monorepo/charts/frontend/values.yaml +++ /dev/null @@ -1,3 +0,0 @@ -image: {} -# tag: null -# repository: null diff --git a/example/monorepo/squadrons/squadron.yaml b/example/monorepo/squadrons/squadron.yaml deleted file mode 100644 index 692719d..0000000 --- a/example/monorepo/squadrons/squadron.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Schema version -version: "1.0" - -name: monorepo - -global: - docker: - tag: "211206.0" - registry: monorepo - -squadron: -# mongodb: -# chart: -# name: mongodb -# repository: https://charts.bitnami.com/bitnami -# version: 10.11.2 -# values: -# fullnameOverride: catalogue-mongodb -# auth: -# enabled: false diff --git a/example/monorepo/squadrons/storefinder/backend/squadron.yaml b/example/monorepo/squadrons/storefinder/backend/squadron.yaml deleted file mode 100644 index 3592cd3..0000000 --- a/example/monorepo/squadrons/storefinder/backend/squadron.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# Schema version -version: "1.0" - -squadron: - backend: - chart: <% env "PROJECT_ROOT" %>/charts/backend - builds: - default: - tag: <% .Global.docker.tag | quote %> - image: <% .Global.docker.registry %>/storefinder-backend - context: <% env "PROJECT_ROOT" %>/squadrons/storefinder/backend - dockefile: <% env "PROJECT_ROOT" %>/docker/backend.Dockerfile - values: - image: - tag: <% .Global.docker.tag | quote %> - repository: <% .Squadron.backend.builds.default.image %> diff --git a/example/monorepo/squadrons/storefinder/frontend/squadron.yaml b/example/monorepo/squadrons/storefinder/frontend/squadron.yaml deleted file mode 100644 index 54c6ad5..0000000 --- a/example/monorepo/squadrons/storefinder/frontend/squadron.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# Schema version -version: "1.0" - -squadron: -# backend: -# chart: <% env "PROJECT_ROOT" %>/charts/frontend -# builds: -# default: -# tag: "<% .Global.docker.tag %>" -# image: <% .Global.docker.registry %>/storefinder-frontend -# context: <% env "PROJECT_ROOT" %>/squadrons/storefinder/frontend -# dockefile: <% env "PROJECT_ROOT" %>/docker/frontend.Dockerfile -# values: -# image: -# tag: "<% .Global.docker.tag %>" -# repository: <% .Squadron.frontend.builds.default.image %> diff --git a/example/monorepo/squadrons/storefinder/squadron.yaml b/example/monorepo/squadrons/storefinder/squadron.yaml deleted file mode 100644 index b0813bc..0000000 --- a/example/monorepo/squadrons/storefinder/squadron.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Schema version -version: "1.0" - -name: storefinder