Peter Kurfer
647f602c79
- added Core CRD to manage DB migrations & configuration, PostgREST and GoTrue (auth) - added APIGateway CRD to manage Envoy proxy - added Dashboard CRD to manage (so far) pg-meta and (soon) studio deployments - implemented basic Envoy control plane based on K8s watcher
26 lines
542 B
Go
26 lines
542 B
Go
package supabase
|
|
|
|
import "strings"
|
|
|
|
type DBRole string
|
|
|
|
func (r DBRole) String() string {
|
|
return string(r)
|
|
}
|
|
|
|
func (r DBRole) K8sString() string {
|
|
return strings.ReplaceAll(r.String(), "_", "-")
|
|
}
|
|
|
|
func (r DBRole) Bytes() []byte {
|
|
s := string(r)
|
|
return []byte(s)
|
|
}
|
|
|
|
const (
|
|
DBRoleAuthenticator DBRole = "authenticator"
|
|
DBRoleAuthAdmin DBRole = "supabase_auth_admin"
|
|
DBRoleFunctionsAdmin DBRole = "supabase_functions_admin"
|
|
DBRoleStorageAdmin DBRole = "supabase_storage_admin"
|
|
DBRoleSupabaseAdmin DBRole = "supabase_admin"
|
|
)
|