conf

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigInstance

type ConfigInstance struct {
	Spec   v1alpha1.WorkflowSpec `yaml:"spec"`
	OnExit []v1alpha1.DAGTask    `yaml:"onExit"`
}

type GitProviderConfig

type GitProviderConfig struct {
	Provider            string `envconfig:"GIT_PROVIDER" required:"true"`
	Token               string `envconfig:"GIT_TOKEN" required:"true"`
	OrgName             string `envconfig:"GIT_ORG_NAME" required:"true"`
	OrgLevelWebhook     bool   `envconfig:"GIT_ORG_LEVEL_WEBHOOK" default:"false" required:"false"`
	RepoList            string `envconfig:"GIT_WEBHOOK_REPO_LIST" required:"false"`
	WebhookURL          string `envconfig:"GIT_WEBHOOK_URL" required:"false"`
	WebhookSecret       string `envconfig:"GIT_WEBHOOK_SECRET" required:"false"`
	WebhookAutoCleanup  bool   `envconfig:"GIT_WEBHOOK_AUTO_CLEANUP" default:"false" required:"false"`
	EnforceOrgBelonging bool   `envconfig:"GIT_ENFORCE_ORG_BELONGING" default:"false" required:"false"`
	OrgID               int64
	FullHealthCheck     bool `envconfig:"GIT_FULL_HEALTH_CHECK" default:"false" required:"false"`
}

func (*GitProviderConfig) GitConfLoad

func (cfg *GitProviderConfig) GitConfLoad() error

type GlobalConfig

func LoadConfig

func LoadConfig() (*GlobalConfig, error)

func (*GlobalConfig) Load

func (cfg *GlobalConfig) Load() error

type RookoutConfig

type RookoutConfig struct {
	Token        string `envconfig:"ROOKOUT_TOKEN" default:""`
	Labels       string `envconfig:"ROOKOUT_LABELS" default:"service:piper"`
	RemoteOrigin string `envconfig:"ROOKOUT_REMOTE_ORIGIN" default:"https://github.com/quickube/piper.git"`
}

func (*RookoutConfig) RookoutConfLoad

func (cfg *RookoutConfig) RookoutConfLoad() error

type WorkflowServerConfig

type WorkflowServerConfig struct {
	ArgoToken   string `envconfig:"ARGO_WORKFLOWS_TOKEN" required:"false"`
	ArgoAddress string `envconfig:"ARGO_WORKFLOWS_ADDRESS" required:"false"`
	CreateCRD   bool   `envconfig:"ARGO_WORKFLOWS_CREATE_CRD" default:"true"`
	Namespace   string `envconfig:"ARGO_WORKFLOWS_NAMESPACE" default:"default"`
	KubeConfig  string `envconfig:"KUBE_CONFIG" default:""`
}

func (*WorkflowServerConfig) ArgoConfLoad

func (cfg *WorkflowServerConfig) ArgoConfLoad() error

type WorkflowsConfig

type WorkflowsConfig struct {
	Configs map[string]*ConfigInstance
}

func (*WorkflowsConfig) WorkflowsSpecLoad

func (wfc *WorkflowsConfig) WorkflowsSpecLoad(configPath string) error

Jump to

Keyboard shortcuts

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