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"` Url string `envconfig:"GIT_URL" required:"false"` 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 ¶
type GlobalConfig struct { GitProviderConfig WorkflowServerConfig RookoutConfig WorkflowsConfig }
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
Click to show internal directories.
Click to hide internal directories.