config

package
v0.23.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FGA                              FGAConfig
	KCP                              KCPConfig
	APIExportEndpointSliceName       string
	CoreModulePath                   string
	BaseDomain                       string
	GroupClaim                       string
	UserClaim                        string
	DevelopmentAllowUnverifiedEmails bool
	WorkspacePath                    string
	WorkspaceTypeName                string
	DomainCALookup                   bool
	MigrateAuthorizationModels       bool
	HttpClientTimeoutSeconds         int
	SetDefaultPassword               bool
	AllowMemberTuplesEnabled         bool
	IDP                              IDPConfig
	Keycloak                         KeycloakConfig
	Initializer                      InitializerConfig
	Webhooks                         WebhooksConfig
}

Config struct to hold the app config

func NewConfig added in v0.23.1

func NewConfig() Config

func (*Config) AddFlags added in v0.23.1

func (c *Config) AddFlags(fs *pflag.FlagSet)

func (Config) InitializerName added in v0.6.0

func (config Config) InitializerName() string

func (Config) TerminatorName added in v0.22.13

func (config Config) TerminatorName() string

type FGAConfig added in v0.23.1

type FGAConfig struct {
	Target          string
	ObjectType      string
	ParentRelation  string
	CreatorRelation string
}

type IDPConfig added in v0.23.1

type IDPConfig struct {
	RealmDenyList []string

	SMTPServer  string
	SMTPPort    int
	FromAddress string

	SSL      bool
	StartTLS bool

	SMTPUser     string
	SMTPPassword string

	AdditionalRedirectURLs    []string
	KubectlClientRedirectURLs []string

	AccessTokenLifespan int
	RegistrationAllowed bool
}

type InitContainerClientConfig added in v0.16.0

type InitContainerClientConfig struct {
	Name      string                 `mapstructure:"name" yaml:"name"`
	SecretRef corev1.SecretReference `mapstructure:"secretRef" yaml:"secretRef"`
}

type InitContainerConfig added in v0.16.0

type InitContainerConfig struct {
	ConfigFile string `mapstructure:"config-file" default:"/config/config.yaml"`
}

func NewInitContainerConfig added in v0.23.1

func NewInitContainerConfig() InitContainerConfig

func (*InitContainerConfig) AddFlags added in v0.23.1

func (c *InitContainerConfig) AddFlags(fs *pflag.FlagSet)

type InitContainerConfiguration added in v0.16.0

type InitContainerConfiguration struct {
	KeycloakBaseURL  string                      `mapstructure:"keycloakBaseURL"`
	KeycloakClientID string                      `mapstructure:"keycloakClientID" default:"admin-cli"`
	KeycloakUser     string                      `mapstructure:"keycloakUser" default:"admin"`
	PasswordFile     string                      `mapstructure:"passwordFile" default:"/secrets/keycloak-password"`
	Clients          []InitContainerClientConfig `mapstructure:"clients"`
}

type InitializerConfig added in v0.21.1

type InitializerConfig struct {
	WorkspaceInitializerEnabled bool
	IDPEnabled                  bool
	InviteEnabled               bool
	WorkspaceAuthEnabled        bool
}

type KCPConfig added in v0.23.1

type KCPConfig struct {
	Kubeconfig string
}

type KeycloakConfig added in v0.23.13

type KeycloakConfig struct {
	BaseURL      string
	ClientID     string
	ClientSecret string
}

type WebhooksConfig added in v0.22.9

type WebhooksConfig struct {
	Enabled bool
	Port    int
	CertDir string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL