Documentation ¶
Index ¶
- Constants
- type Manager
- func (m *Manager) CreateUnleash(ctx context.Context, team slug.Slug) (*model.Unleash, error)
- func (m *Manager) PromQuery(ctx context.Context, q string) (model.SampleValue, error)
- func (m Manager) Start(ctx context.Context, log logrus.FieldLogger) error
- func (m *Manager) Unleash(team string) (*model.Unleash, error)
- type Opt
Constants ¶
View Source
const ( UnleashTeamsEnvVar = "TEAMS_ALLOWED_TEAMS" // @TODO this should be moved to config ManagementClusterNamespace = "devteam" ManagementClusterChangeme = "dev" UnleashCustomImageRepo = "europe-north1-docker.pkg.dev/nais-io/nais/images/" UnleashCustomImageName = "unleash-v4" UnleashRequestCPU = "100m" UnleashRequestMemory = "128Mi" UnleashLimitMemory = "256Mi" SqlProxyImage = "gcr.io/cloudsql-docker/gce-proxy:1.19.1" SqlProxyRequestCPU = "10m" SqlProxyRequestMemory = "100Mi" SqlProxyLimitMemory = "100Mi" DatabasePoolMax = "3" DatabasePoolIdleTimeoutMs = "1000" LogLevel = "warn" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CreateUnleash ¶
@TODO check if unleash already exists @TODO create fqdnnetpolicy for unleash @TODO create sql database, sql user and database secret @TODO create remote unleash in team namespace
type Opt ¶
type Opt func(*settings)
func WithBifrostEnabled ¶
func WithBifrostEnabled() Opt
func WithClientsCreator ¶
Click to show internal directories.
Click to hide internal directories.