Documentation ¶
Index ¶
- Constants
- func AddApplication(kubeClient kubernetes.Interface, repos []string, ns, draftPack string) error
- func AddEnvironment(kubeClient kubernetes.Interface, repos []string, ...) error
- func AddProtection(kubeClient kubernetes.Interface, repos []string, context string, ns string) error
- type Kind
- type Options
- func (o *Options) AddProwConfig() error
- func (o *Options) AddProwPlugins() error
- func (o *Options) GetAllBranchProtectionContexts(org string, repo string) ([]string, error)
- func (o *Options) GetBranchProtectionContexts(org string, repo string) ([]string, error)
- func (o *Options) GetProwConfig() (*config.Config, bool, error)
- type Owners
- type OwnersAliases
Constants ¶
View Source
const ( Hook = "hook" BuilderBaseImage = "jenkinsxio/builder-base:0.0.604" Application Kind = "APPLICATION" Environment Kind = "ENVIRONMENT" Protection Kind = "PROTECTION" ServerlessJenkins = "serverless-jenkins" ComplianceCheck = "compliance-check" PromotionBuild = "promotion-build" KnativeBuildAgent = "knative-build" KubernetesAgent = "kubernetes" // TODO latest is the wrong thing to do here JXImage = "jenkinsxio/jx" )
View Source
const ProwConfigMapName = "config"
Variables ¶
This section is empty.
Functions ¶
func AddApplication ¶
func AddApplication(kubeClient kubernetes.Interface, repos []string, ns, draftPack string) error
func AddEnvironment ¶
func AddEnvironment(kubeClient kubernetes.Interface, repos []string, ns, environmentNamespace string) error
func AddProtection ¶
Types ¶
type Options ¶
type Options struct { KubeClient kubernetes.Interface Repos []string NS string Kind Kind DraftPack string EnvironmentNamespace string Context string }
Options for Prow
func (*Options) AddProwConfig ¶
AddProwConfig adds config to Prow
func (*Options) AddProwPlugins ¶
AddProwPlugins adds plugins to prow
func (*Options) GetAllBranchProtectionContexts ¶ added in v1.3.476
func (*Options) GetBranchProtectionContexts ¶ added in v1.3.476
type OwnersAliases ¶
type OwnersAliases struct { Aliases []string `yaml:"aliases"` BestApprovers []string `yaml:"best-approvers"` BestReviewers []string `yaml:"best-reviewers"` }
OwnersAliases keept the prow OWNERS_ALIASES data
Click to show internal directories.
Click to hide internal directories.