diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index 2fccf64..c980f10 --- a/build.sh +++ b/build.sh @@ -1,13 +1,5 @@ #!/bin/bash +# -helm package ./charts/supabase -d build/ -helm repo index ./ -# sed 's+build+head+g' ./index.yaml > ./index.yaml - -# Crossplatform sed workaround from: https://unix.stackexchange.com/questions/92895/how-can-i-achieve-portability-with-sed-i-in-place-editing -case $(sed --help 2>&1) in - *GNU*) set sed -i;; - *) set sed -i '';; -esac - -"$@" -e 's+build+https://supabase-community.github.io/supabase-kubernetes/build+g' ./index.yaml +helm package charts/supabase -d build/ +helm repo index build --url https://raw.githubusercontent.com/supabase-community/supabase-kubernetes/master/build \ No newline at end of file diff --git a/build/index.yaml b/build/index.yaml new file mode 100644 index 0000000..464d991 --- /dev/null +++ b/build/index.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +entries: + supabase: + - apiVersion: v2 + created: "2022-05-03T00:27:57.900418979+10:00" + dependencies: + - alias: database + condition: database.enabled + name: postgresql + repository: https://charts.bitnami.com/bitnami + version: 10.13.15 + description: The open source Firebase alternative. + digest: f8e7ea20f97d238588ba6ddd3afe3f829db3388812c148aaf7a9080591823935 + name: supabase + type: application + urls: + - https://raw.githubusercontent.com/supabase-community/supabase-kubernetes/master/build/supabase-0.0.2.tgz + version: 0.0.2 +generated: "2022-05-03T00:27:57.895750437+10:00" diff --git a/build/supabase-0.0.1.tgz b/build/supabase-0.0.1.tgz deleted file mode 100644 index 95739d0..0000000 Binary files a/build/supabase-0.0.1.tgz and /dev/null differ diff --git a/build/supabase-0.0.2.tgz b/build/supabase-0.0.2.tgz new file mode 100644 index 0000000..4a5f680 Binary files /dev/null and b/build/supabase-0.0.2.tgz differ diff --git a/charts/supabase/Chart.yaml b/charts/supabase/Chart.yaml index 5eb915b..7c3b4c7 100644 --- a/charts/supabase/Chart.yaml +++ b/charts/supabase/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.1 +version: 0.0.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/supabase/README.md b/charts/supabase/README.md index a9eece5..c3f9363 100644 --- a/charts/supabase/README.md +++ b/charts/supabase/README.md @@ -26,7 +26,7 @@ You can create a copy of this file and update the following values: - `NAMESPACE`: Namespace used for the helm release. ```bash -helm repo add supabase https://supabase-community.github.io/supabase-kubernetes +helm repo add supabase https://raw.githubusercontent.com/supabase-community/supabase-kubernetes/fix/kong-config/build helm install RELEASE_NAME supabase/supabase --namespace NAMESPACE -f your-values.yaml --create-namespace ``` diff --git a/charts/supabase/values.example.yaml b/charts/supabase/values.example.yaml deleted file mode 100644 index ee386a4..0000000 --- a/charts/supabase/values.example.yaml +++ /dev/null @@ -1,93 +0,0 @@ -database: - postgresqlPassword: MY_SUPER_EXAMPLE_HARD_PASSWORD - -studio: - enable: true - environment: - SUPABASE_URL: http://api.localhost - STUDIO_PG_META_URL: http://example-supabase-kong.example-namespace.svc.cluster.local:8000/pg - SUPABASE_ANON_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTY0MDMwMDQwMCwiZXhwIjoxNzk4MDY2ODAwfQ.JaEiRNdyxX3Pk6XupxauDazXeadLTgTHz5cV7joUrQE" - SUPABASE_SERVICE_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic2VydmljZV9yb2xlIiwiaWF0IjoxNjQwMzAwNDAwLCJleHAiOjE3OTgwNjY4MDB9.sUJPVrhMsSaLgizyCWIgNOIRmjavxDB4Lm3hzb4dC5U" - - ingress: - enabled: 'true' - className: "" - annotations: - kubernetes.io/ingress.class: nginx - nginx.ingress.kubernetes.io/rewrite-target: / - hosts: - - host: studio.localhost - paths: - - path: / - pathType: Prefix - backend: - serviceName: api - servicePort: 3000 - -# Auth Service -auth: - environment: - GOTRUE_DB_DATABASE_URL: postgres://postgres:MY_SUPER_EXAMPLE_HARD_PASSWORD@example-database.example-namespace.svc.cluster.local:5432/postgres?search_path=auth - GOTRUE_SITE_URL: http://studio.localhost - GOTRUE_URI_ALLOW_LIST: "" - GOTRUE_DISABLE_SIGNUP: "false" - GOTRUE_JWT_SECRET: "your-super-secret-jwt-token-with-at-least-32-characters-long" - GOTRUE_JWT_EXP: "3600" - GOTRUE_EXTERNAL_EMAIL_ENABLED: "true" - GOTRUE_MAILER_AUTOCONFIRM: "true" - GOTRUE_SMTP_ADMIN_EMAIL: "admin@example.com" - GOTRUE_SMTP_HOST: "mail" - GOTRUE_SMTP_PORT: "2500" - GOTRUE_SMTP_USER: "fake_mail_user" - GOTRUE_SMTP_PASS: "fake_mail_password" - GOTRUE_SMTP_SENDER_NAME: "fake_sender" - GOTRUE_EXTERNAL_PHONE_ENABLED: "false" - GOTRUE_SMS_AUTOCONFIRM: "false" - -rest: - environment: - PGRST_DB_URI: postgres://postgres:MY_SUPER_EXAMPLE_HARD_PASSWORD@example-database.example-namespace.svc.cluster.local:5432/postgres - PGRST_JWT_SECRET: "your-super-secret-jwt-token-with-at-least-32-characters-long" - -realtime: - environment: - DB_HOST: example-database.example-namespace.svc.cluster.local - DB_PORT: "5432" - DB_NAME: postgres - DB_USER: postgres - DB_PASSWORD: MY_SUPER_EXAMPLE_HARD_PASSWORD - DB_SSL: "false" - JWT_SECRET: "your-super-secret-jwt-token-with-at-least-32-characters-long" - -meta: - environment: - PG_META_DB_HOST: example-database.example-namespace.svc.cluster.local - PG_META_DB_PASSWORD: MY_SUPER_EXAMPLE_HARD_PASSWORD - -storage: - environment: - ANON_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTY0MDMwMDQwMCwiZXhwIjoxNzk4MDY2ODAwfQ.JaEiRNdyxX3Pk6XupxauDazXeadLTgTHz5cV7joUrQE" - SERVICE_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic2VydmljZV9yb2xlIiwiaWF0IjoxNjQwMzAwNDAwLCJleHAiOjE3OTgwNjY4MDB9.sUJPVrhMsSaLgizyCWIgNOIRmjavxDB4Lm3hzb4dC5U" - POSTGREST_URL: http://example-supabase-rest.example-namespace.svc.cluster.local:3000 - PGRST_JWT_SECRET: "your-super-secret-jwt-token-with-at-least-32-characters-long" - DATABASE_URL: postgres://postgres:MY_SUPER_EXAMPLE_HARD_PASSWORD@example-database.example-namespace.svc.cluster.local:5432/postgres - PGOPTIONS: -c search_path=storage,public - -kong: - ingress: - enabled: 'true' - className: "" - annotations: - kubernetes.io/ingress.class: nginx - nginx.ingress.kubernetes.io/rewrite-target: / - hosts: - - host: api.localhost - paths: - - path: / - pathType: Prefix - backend: - serviceName: api - servicePort: 80 - credentials: - anonKey: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTY0MDMwMDQwMCwiZXhwIjoxNzk4MDY2ODAwfQ.JaEiRNdyxX3Pk6XupxauDazXeadLTgTHz5cV7joUrQE" - serviceRoleKey: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic2VydmljZV9yb2xlIiwiaWF0IjoxNjQwMzAwNDAwLCJleHAiOjE3OTgwNjY4MDB9.sUJPVrhMsSaLgizyCWIgNOIRmjavxDB4Lm3hzb4dC5U" diff --git a/charts/supabase/values.yaml b/charts/supabase/values.yaml index 71a705e..75fdf6f 100644 --- a/charts/supabase/values.yaml +++ b/charts/supabase/values.yaml @@ -596,6 +596,10 @@ kong: affinity: {} + credentials: + anonKey: "" + serviceRoleKey: "" + config: {} # config: | # _format_version: "1.1" diff --git a/index.yaml b/index.yaml deleted file mode 100644 index 46e8900..0000000 --- a/index.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -entries: - supabase: - - apiVersion: v2 - created: "2022-01-14T23:19:40.869662+01:00" - dependencies: - - alias: database - name: postgresql - repository: https://charts.bitnami.com/bitnami - version: 10.13.15 - description: The open source Firebase alternative. - digest: cb1010f10ac873aecfbbe835b02ac2af9f1c18af10497de4fa42829625c814c7 - name: supabase - type: application - urls: - - https://koji-sas.github.io/supabase-kubernetes/build/supabase-0.0.1.tgz - version: 0.0.1 -generated: "2022-01-14T23:19:40.865169+01:00"