From 198c44b8abe88b487b0e39f79d5cf50b7dbc1ecb Mon Sep 17 00:00:00 2001 From: Arik Kfir Date: Tue, 5 Sep 2023 17:02:11 +0300 Subject: [PATCH] feat: switch to Telepresence based developer story (#37) This change changes the codebase to be Telepresence-friendly by: - creating IntelliJ IDEA modules and run configurations - moving the deployment manifests to the arikkfir/delivery repository - removing Skaffold usage (replaced by Telepresence) --- README.md | 135 ++++----------------- deploy/base/app/backend.yaml | 114 ------------------ deploy/base/app/frontend.yaml | 97 --------------- deploy/base/app/kustomization.yaml | 10 -- deploy/base/app/kustomizeconfig.yaml | 29 ----- deploy/base/app/migrations.yaml | 41 ------- deploy/base/kustomization.yaml | 9 -- deploy/base/neo4j/deployment.yaml | 137 --------------------- deploy/base/neo4j/kustomization.yaml | 11 -- deploy/base/neo4j/kustomizeconfig.yaml | 29 ----- deploy/base/neo4j/persistence.yaml | 25 ---- deploy/base/neo4j/rbac.yaml | 4 - deploy/base/neo4j/service.yaml | 49 -------- deploy/base/redis/deployment.yaml | 73 ----------- deploy/base/redis/kustomization.yaml | 11 -- deploy/base/redis/kustomizeconfig.yaml | 29 ----- deploy/base/redis/persistence.yaml | 12 -- deploy/base/redis/rbac.yaml | 4 - deploy/base/redis/service.yaml | 28 ----- deploy/cluster/certificate.yaml | 47 -------- deploy/cluster/dnsrecord.yaml | 14 --- deploy/cluster/gcp-iam.yaml | 74 ------------ deploy/cluster/kustomization.yaml | 129 -------------------- deploy/cluster/secrets.yaml | 31 ----- deploy/etc/kind-cluster-config.yaml | 18 --- deploy/etc/skaffold-traefik.yaml | 17 --- deploy/etc/traefik-values.yaml | 77 ------------ deploy/local/backend-config.env | 3 - deploy/local/frontend-config.env | 0 deploy/local/kustomization.yaml | 160 ------------------------- skaffold.yaml | 61 ---------- 31 files changed, 26 insertions(+), 1452 deletions(-) delete mode 100644 deploy/base/app/backend.yaml delete mode 100644 deploy/base/app/frontend.yaml delete mode 100644 deploy/base/app/kustomization.yaml delete mode 100644 deploy/base/app/kustomizeconfig.yaml delete mode 100644 deploy/base/app/migrations.yaml delete mode 100644 deploy/base/kustomization.yaml delete mode 100644 deploy/base/neo4j/deployment.yaml delete mode 100644 deploy/base/neo4j/kustomization.yaml delete mode 100644 deploy/base/neo4j/kustomizeconfig.yaml delete mode 100644 deploy/base/neo4j/persistence.yaml delete mode 100644 deploy/base/neo4j/rbac.yaml delete mode 100644 deploy/base/neo4j/service.yaml delete mode 100644 deploy/base/redis/deployment.yaml delete mode 100644 deploy/base/redis/kustomization.yaml delete mode 100644 deploy/base/redis/kustomizeconfig.yaml delete mode 100644 deploy/base/redis/persistence.yaml delete mode 100644 deploy/base/redis/rbac.yaml delete mode 100644 deploy/base/redis/service.yaml delete mode 100644 deploy/cluster/certificate.yaml delete mode 100644 deploy/cluster/dnsrecord.yaml delete mode 100644 deploy/cluster/gcp-iam.yaml delete mode 100644 deploy/cluster/kustomization.yaml delete mode 100644 deploy/cluster/secrets.yaml delete mode 100644 deploy/etc/kind-cluster-config.yaml delete mode 100644 deploy/etc/skaffold-traefik.yaml delete mode 100644 deploy/etc/traefik-values.yaml delete mode 100644 deploy/local/backend-config.env delete mode 100644 deploy/local/frontend-config.env delete mode 100644 deploy/local/kustomization.yaml delete mode 100644 skaffold.yaml diff --git a/README.md b/README.md index 8168a441..05292998 100644 --- a/README.md +++ b/README.md @@ -2,135 +2,52 @@ GreenSTAR is an accounting application built for the new generation. -- https://app.admin.greenstar.kfirs.com -- https://app.greenstar.kfirs.com -- https://app.operations.greenstar.kfirs.com - -(the above do not work yet) - ## Local development environment ### Prerequisite tools ```shell -$ brew install jq yq # JSON and YAML manipulation -$ brew install go node # Programming languages -$ brew install kubernetes-cli kustomize helm kind # Kubernetes tools -$ brew install skaffold # Kubernetes development tool -$ brew install dnsmasq mkcert # For local TLS domains +$ brew install jq yq # Just useful tools for JSON and YAML manipulation +$ brew install go node # Programming languages +$ brew install kubernetes-cli # Kubernetes CLI ``` -### Local testing domains - -Given that the application has multiple components, and each needs to be addressable separately via a separate domain, -we need to use the same convention even when running locally. - -To do that, we will utilize `dnsmasq` to resolve the `greenstar.test` domain to localhost. To do that, perform the -following actions (once): +### Telepresence setup -```shell -$ cat >> /opt/homebrew/etc/dnsmasq.conf < deploy/local/backend-secrets.env < deploy/local/frontend-secrets.env <