chore: cleanup examples
This commit is contained in:
parent
b55afea477
commit
7e0550f190
9 changed files with 40 additions and 21 deletions
4
.github/workflows/docs.yml
vendored
4
.github/workflows/docs.yml
vendored
|
@ -1,8 +1,10 @@
|
|||
name: Deploy pages
|
||||
name: Docs
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
|
6
Tiltfile
6
Tiltfile
|
@ -59,7 +59,7 @@ k8s_resource(
|
|||
)
|
||||
|
||||
k8s_resource(
|
||||
objects=["core-sample:APIGateway:supabase-demo"],
|
||||
objects=["gateway-sample:APIGateway:supabase-demo"],
|
||||
extra_pod_selectors={"app.kubernetes.io/component": "api-gateway"},
|
||||
port_forwards=[8000, 19000],
|
||||
new_name='API Gateway',
|
||||
|
@ -69,7 +69,7 @@ k8s_resource(
|
|||
)
|
||||
|
||||
k8s_resource(
|
||||
objects=["core-sample:Dashboard:supabase-demo"],
|
||||
objects=["dashboard-sample:Dashboard:supabase-demo"],
|
||||
extra_pod_selectors={"app.kubernetes.io/component": "dashboard", "app.kubernetes.io/name": "studio"},
|
||||
discovery_strategy="selectors-only",
|
||||
port_forwards=[3000],
|
||||
|
@ -80,7 +80,7 @@ k8s_resource(
|
|||
)
|
||||
|
||||
k8s_resource(
|
||||
objects=["core-sample:Storage:supabase-demo"],
|
||||
objects=["storage-sample:Storage:supabase-demo"],
|
||||
new_name='Storage',
|
||||
resource_deps=[
|
||||
'supabase-controller-manager'
|
||||
|
|
|
@ -59,7 +59,7 @@ type DatabaseRoles struct {
|
|||
|
||||
type Database struct {
|
||||
DSN *string `json:"dsn,omitempty"`
|
||||
DSNSecretRef *corev1.SecretKeySelector `json:"dsnFrom,omitempty"`
|
||||
DSNSecretRef *corev1.SecretKeySelector `json:"dsnSecretRef,omitempty"`
|
||||
Roles DatabaseRoles `json:"roles,omitempty"`
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ limitations under the License.
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
|
|
@ -905,7 +905,7 @@ spec:
|
|||
properties:
|
||||
dsn:
|
||||
type: string
|
||||
dsnFrom:
|
||||
dsnSecretRef:
|
||||
description: SecretKeySelector selects a key of a Secret.
|
||||
properties:
|
||||
key:
|
||||
|
|
|
@ -4,9 +4,10 @@ metadata:
|
|||
labels:
|
||||
app.kubernetes.io/name: supabase-operator
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
name: core-sample
|
||||
name: gateway-sample
|
||||
spec:
|
||||
envoy:
|
||||
controlPlane:
|
||||
host: supabase-control-plane.supabase-system.svc
|
||||
port: 18000
|
||||
jwks:
|
||||
# will be created by Core resource operator if not present
|
||||
# just make sure the secret name is either based on the name of the core resource or explicitly set
|
||||
name: core-sample-jwt
|
||||
key: jwks.json
|
||||
|
|
|
@ -13,19 +13,27 @@ metadata:
|
|||
app.kubernetes.io/managed-by: kustomize
|
||||
name: core-sample
|
||||
spec:
|
||||
# public URL of the Supabase instance (API)
|
||||
# normally the Ingress/HTTPRoute endpoint
|
||||
externalUrl: http://localhost:8000/
|
||||
|
||||
# public URL of the frontend
|
||||
# could be the same as the externalUrl if you're using one Ingress/HTTPRoute for both
|
||||
# or a different one if you prefer to separate API and frontend URLs
|
||||
# will be used by Supabase Auth to redirect users after login
|
||||
siteUrl: http://localhost:3000/
|
||||
database:
|
||||
dsnFrom:
|
||||
dsnSecretRef:
|
||||
name: supabase-demo-credentials
|
||||
key: url
|
||||
auth:
|
||||
disableSignup: true
|
||||
disableSignup: false
|
||||
enableEmailAutoconfirm: true
|
||||
providers: {}
|
||||
postgrest:
|
||||
maxRows: 1000
|
||||
jwt:
|
||||
expiry: 3600
|
||||
secretRef:
|
||||
name: core-sample-jwt
|
||||
# name of the secret containing the JWT secret
|
||||
# will be created if not found, make sure to refernce this secret in the APIGateway, Dashboard and Storage
|
||||
secretName: core-sample-jwt
|
||||
|
|
|
@ -4,17 +4,20 @@ metadata:
|
|||
labels:
|
||||
app.kubernetes.io/name: supabase-operator
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
name: core-sample
|
||||
name: dashboard-sample
|
||||
spec:
|
||||
db:
|
||||
host: cluster-example-rw.supabase-demo.svc
|
||||
dbName: app
|
||||
dbCredentialsRef:
|
||||
# will be created by Core resource operator if not present
|
||||
# just make sure the secret name is either based on the name of the core resource or explicitly set
|
||||
# format <core-resource-name>-db-creds-supabase-admin
|
||||
secretName: core-sample-db-creds-supabase-admin
|
||||
studio:
|
||||
# external URL of the Supabase Studio (URL of Ingress or HTTPRoute)
|
||||
externalUrl: http://localhost:8000
|
||||
jwt:
|
||||
anonKey: anon_key
|
||||
secretKey: secret
|
||||
# will be created by Core resource operator if not present
|
||||
# just make sure the secret name is either based on the name of the core resource or explicitly set
|
||||
secretName: core-sample-jwt
|
||||
serviceKey: service_key
|
||||
|
|
|
@ -4,14 +4,19 @@ metadata:
|
|||
labels:
|
||||
app.kubernetes.io/name: supabase-operator
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
name: core-sample
|
||||
name: storage-sample
|
||||
spec:
|
||||
backendType: file
|
||||
db:
|
||||
host: cluster-example-rw.supabase-demo.svc
|
||||
dbName: app
|
||||
dbCredentialsRef:
|
||||
# will be created by Core resource operator if not present
|
||||
# just make sure the secret name is either based on the name of the core resource or explicitly set
|
||||
# format <core-resource-name>-db-creds-supabase-storage-admin
|
||||
secretName: core-sample-db-creds-supabase-storage-admin
|
||||
enableImageTransformation: true
|
||||
jwtAuth:
|
||||
# will be created by Core resource operator if not present
|
||||
# just make sure the secret name is either based on the name of the core resource or explicitly set
|
||||
secretName: core-sample-jwt
|
||||
|
|
Loading…
Add table
Reference in a new issue