configuration

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArmadaConfig

type ArmadaConfig struct {
	AnonymousAuth bool

	GrpcPort               uint16
	HttpPort               uint16
	MetricsPort            uint16
	CorsAllowedOrigins     []string
	PriorityHalfTime       time.Duration
	Redis                  redis.UniversalOptions
	EventsKafka            KafkaConfig
	EventsNats             NatsConfig
	EventsRedis            redis.UniversalOptions
	BasicAuth              BasicAuthenticationConfig
	OpenIdAuth             OpenIdAuthenticationConfig
	Kerberos               KerberosAuthenticationConfig
	PermissionGroupMapping map[permissions.Permission][]string
	PermissionScopeMapping map[permissions.Permission][]string
	PermissionClaimMapping map[permissions.Permission][]string

	Scheduling      SchedulingConfig
	QueueManagement QueueManagementConfig
	EventRetention  EventRetentionPolicy
	Metrics         MetricsConfig
}

type BasicAuthenticationConfig

type BasicAuthenticationConfig struct {
	Users map[string]UserInfo
}

type EventRetentionPolicy added in v0.0.11

type EventRetentionPolicy struct {
	ExpiryEnabled     bool
	RetentionDuration time.Duration
}

type KafkaConfig added in v0.1.6

type KafkaConfig struct {
	Brokers                  []string
	Topic                    string
	ConsumerGroupID          string
	JobStatusConsumerGroupID string
}

type KerberosAuthenticationConfig added in v0.0.5

type KerberosAuthenticationConfig struct {
	KeytabLocation string
	PrincipalName  string
	UserNameSuffix string
}

type LeaseSettings added in v0.1.0

type LeaseSettings struct {
	ExpireAfter        time.Duration
	ExpiryLoopInterval time.Duration
}

type MetricsConfig added in v0.1.23

type MetricsConfig struct {
	RefreshInterval time.Duration
}

type NatsConfig added in v0.1.6

type NatsConfig struct {
	Servers        []string
	ClusterID      string
	Subject        string
	QueueGroup     string
	JobStatusGroup string
}

type OpenIdAuthenticationConfig

type OpenIdAuthenticationConfig struct {
	ProviderUrl string
	GroupsClaim string

	// If your OIDC provider signs token with key intended solely for this application and audience claim does not
	// contain any clientId, you can disable client ID check.
	// Otherwise clientId is required
	SkipClientIDCheck bool
	ClientId          string
}

type QueueManagementConfig added in v0.1.20

type QueueManagementConfig struct {
	AutoCreateQueues      bool
	DefaultPriorityFactor float64
}

type SchedulingConfig added in v0.0.2

type SchedulingConfig struct {
	UseProbabilisticSchedulingForAllResources bool
	QueueLeaseBatchSize                       uint
	MinimumResourceToSchedule                 common.ComputeResourcesFloat
	MaximalClusterFractionToSchedule          map[string]float64
	MaximalResourceFractionToSchedulePerQueue map[string]float64
	MaximalResourceFractionPerQueue           map[string]float64
	Lease                                     LeaseSettings
	DefaultJobLimits                          common.ComputeResources
	MaxRetries                                uint // Maximum number of retries before a Job is failed
	ResourceScarcity                          map[string]float64
	PoolResourceScarcity                      map[string]map[string]float64
}

func (*SchedulingConfig) GetResourceScarcity added in v0.1.25

func (c *SchedulingConfig) GetResourceScarcity(pool string) map[string]float64

type UserInfo

type UserInfo struct {
	Password string
	Groups   []string
}

Jump to

Keyboard shortcuts

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