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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
|
6
Tiltfile
6
Tiltfile
|
@ -59,7 +59,7 @@ k8s_resource(
|
||||||
)
|
)
|
||||||
|
|
||||||
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"},
|
extra_pod_selectors={"app.kubernetes.io/component": "api-gateway"},
|
||||||
port_forwards=[8000, 19000],
|
port_forwards=[8000, 19000],
|
||||||
new_name='API Gateway',
|
new_name='API Gateway',
|
||||||
|
@ -69,7 +69,7 @@ k8s_resource(
|
||||||
)
|
)
|
||||||
|
|
||||||
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"},
|
extra_pod_selectors={"app.kubernetes.io/component": "dashboard", "app.kubernetes.io/name": "studio"},
|
||||||
discovery_strategy="selectors-only",
|
discovery_strategy="selectors-only",
|
||||||
port_forwards=[3000],
|
port_forwards=[3000],
|
||||||
|
@ -80,7 +80,7 @@ k8s_resource(
|
||||||
)
|
)
|
||||||
|
|
||||||
k8s_resource(
|
k8s_resource(
|
||||||
objects=["core-sample:Storage:supabase-demo"],
|
objects=["storage-sample:Storage:supabase-demo"],
|
||||||
new_name='Storage',
|
new_name='Storage',
|
||||||
resource_deps=[
|
resource_deps=[
|
||||||
'supabase-controller-manager'
|
'supabase-controller-manager'
|
||||||
|
|
|
@ -59,7 +59,7 @@ type DatabaseRoles struct {
|
||||||
|
|
||||||
type Database struct {
|
type Database struct {
|
||||||
DSN *string `json:"dsn,omitempty"`
|
DSN *string `json:"dsn,omitempty"`
|
||||||
DSNSecretRef *corev1.SecretKeySelector `json:"dsnFrom,omitempty"`
|
DSNSecretRef *corev1.SecretKeySelector `json:"dsnSecretRef,omitempty"`
|
||||||
Roles DatabaseRoles `json:"roles,omitempty"`
|
Roles DatabaseRoles `json:"roles,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ limitations under the License.
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/core/v1"
|
"k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
)
|
)
|
||||||
|
|
|
@ -905,7 +905,7 @@ spec:
|
||||||
properties:
|
properties:
|
||||||
dsn:
|
dsn:
|
||||||
type: string
|
type: string
|
||||||
dsnFrom:
|
dsnSecretRef:
|
||||||
description: SecretKeySelector selects a key of a Secret.
|
description: SecretKeySelector selects a key of a Secret.
|
||||||
properties:
|
properties:
|
||||||
key:
|
key:
|
||||||
|
|
|
@ -4,9 +4,10 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: supabase-operator
|
app.kubernetes.io/name: supabase-operator
|
||||||
app.kubernetes.io/managed-by: kustomize
|
app.kubernetes.io/managed-by: kustomize
|
||||||
name: core-sample
|
name: gateway-sample
|
||||||
spec:
|
spec:
|
||||||
envoy:
|
jwks:
|
||||||
controlPlane:
|
# will be created by Core resource operator if not present
|
||||||
host: supabase-control-plane.supabase-system.svc
|
# just make sure the secret name is either based on the name of the core resource or explicitly set
|
||||||
port: 18000
|
name: core-sample-jwt
|
||||||
|
key: jwks.json
|
||||||
|
|
|
@ -13,19 +13,27 @@ metadata:
|
||||||
app.kubernetes.io/managed-by: kustomize
|
app.kubernetes.io/managed-by: kustomize
|
||||||
name: core-sample
|
name: core-sample
|
||||||
spec:
|
spec:
|
||||||
|
# public URL of the Supabase instance (API)
|
||||||
|
# normally the Ingress/HTTPRoute endpoint
|
||||||
externalUrl: http://localhost:8000/
|
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/
|
siteUrl: http://localhost:3000/
|
||||||
database:
|
database:
|
||||||
dsnFrom:
|
dsnSecretRef:
|
||||||
name: supabase-demo-credentials
|
name: supabase-demo-credentials
|
||||||
key: url
|
key: url
|
||||||
auth:
|
auth:
|
||||||
disableSignup: true
|
disableSignup: false
|
||||||
enableEmailAutoconfirm: true
|
enableEmailAutoconfirm: true
|
||||||
providers: {}
|
providers: {}
|
||||||
postgrest:
|
postgrest:
|
||||||
maxRows: 1000
|
maxRows: 1000
|
||||||
jwt:
|
jwt:
|
||||||
expiry: 3600
|
expiry: 3600
|
||||||
secretRef:
|
# name of the secret containing the JWT secret
|
||||||
name: core-sample-jwt
|
# 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:
|
labels:
|
||||||
app.kubernetes.io/name: supabase-operator
|
app.kubernetes.io/name: supabase-operator
|
||||||
app.kubernetes.io/managed-by: kustomize
|
app.kubernetes.io/managed-by: kustomize
|
||||||
name: core-sample
|
name: dashboard-sample
|
||||||
spec:
|
spec:
|
||||||
db:
|
db:
|
||||||
host: cluster-example-rw.supabase-demo.svc
|
host: cluster-example-rw.supabase-demo.svc
|
||||||
dbName: app
|
dbName: app
|
||||||
dbCredentialsRef:
|
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
|
secretName: core-sample-db-creds-supabase-admin
|
||||||
studio:
|
studio:
|
||||||
|
# external URL of the Supabase Studio (URL of Ingress or HTTPRoute)
|
||||||
externalUrl: http://localhost:8000
|
externalUrl: http://localhost:8000
|
||||||
jwt:
|
jwt:
|
||||||
anonKey: anon_key
|
# will be created by Core resource operator if not present
|
||||||
secretKey: secret
|
# just make sure the secret name is either based on the name of the core resource or explicitly set
|
||||||
secretName: core-sample-jwt
|
secretName: core-sample-jwt
|
||||||
serviceKey: service_key
|
|
||||||
|
|
|
@ -4,14 +4,19 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: supabase-operator
|
app.kubernetes.io/name: supabase-operator
|
||||||
app.kubernetes.io/managed-by: kustomize
|
app.kubernetes.io/managed-by: kustomize
|
||||||
name: core-sample
|
name: storage-sample
|
||||||
spec:
|
spec:
|
||||||
backendType: file
|
backendType: file
|
||||||
db:
|
db:
|
||||||
host: cluster-example-rw.supabase-demo.svc
|
host: cluster-example-rw.supabase-demo.svc
|
||||||
dbName: app
|
dbName: app
|
||||||
dbCredentialsRef:
|
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
|
secretName: core-sample-db-creds-supabase-storage-admin
|
||||||
enableImageTransformation: true
|
enableImageTransformation: true
|
||||||
jwtAuth:
|
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
|
secretName: core-sample-jwt
|
||||||
|
|
Loading…
Add table
Reference in a new issue