Documentation ¶
Index ¶
- Constants
- func AddApplication(kubeClient kubernetes.Interface, repos []string, ns, draftPack string) error
- func AddEnvironment(kubeClient kubernetes.Interface, repos []string, ...) error
- func AddExternalPlugins(kubeClient kubernetes.Interface, repos []string, ns string, ...) error
- func AddProtection(kubeClient kubernetes.Interface, repos []string, context string, ns string) error
- func CreateProwJob(client kubernetes.Interface, ns string, j prow.ProwJob) (prow.ProwJob, error)
- func DeleteApplication(kubeClient kubernetes.Interface, repos []string, ns string) error
- type ExternalPlugins
- type Options
- func (o *Options) AddExternalProwPlugins(adds []plugins.ExternalPlugin) error
- func (o *Options) AddProwConfig() error
- func (o *Options) AddProwPlugins() error
- func (o *Options) GetPostSubmitJob(org, repo, branch string) (config.Postsubmit, error)
- func (o *Options) GetProwConfig() (*config.Config, bool, error)
- func (o *Options) GetReleaseJobs() ([]string, error)
- func (o *Options) RemoveProwConfig() error
- type Owners
- type OwnersAliases
Constants ¶
View Source
const ( Hook = "hook" KnativeBuildAgent = "knative-build" KubernetesAgent = "kubernetes" )
View Source
const ( ProwConfigMapName = "config" ProwPluginsConfigMapName = "plugins" ProwExternalPluginsFilename = "external-plugins.yaml" ProwConfigFilename = "config.yaml" ProwPluginsFilename = "plugins.yaml" )
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 AddExternalPlugins ¶
func AddExternalPlugins(kubeClient kubernetes.Interface, repos []string, ns string, add ...plugins.ExternalPlugin) error
AddExternalPlugins adds one or more external plugins to the specified repos. If repos is nil, then the external plugins will be added to all repos that have plugins
func AddProtection ¶
func CreateProwJob ¶
func DeleteApplication ¶
func DeleteApplication(kubeClient kubernetes.Interface, repos []string, ns string) error
DeleteApplication will delete the Prow configuration for a given set of repositories
Types ¶
type ExternalPlugins ¶
type ExternalPlugins struct {
Items []plugins.ExternalPlugin
}
type Options ¶
type Options struct { KubeClient kubernetes.Interface Repos []string NS string Kind prowconfig.Kind DraftPack string EnvironmentNamespace string Context string }
Options for Prow
func (*Options) AddExternalProwPlugins ¶
func (o *Options) AddExternalProwPlugins(adds []plugins.ExternalPlugin) error
func (*Options) AddProwConfig ¶
AddProwConfig adds config to Prow
func (*Options) AddProwPlugins ¶
AddProwPlugins adds plugins and external plugins to prow for any repos defined in o.Repos, or for all repos which have plugins if o.Repos is nil
func (*Options) GetPostSubmitJob ¶
func (o *Options) GetPostSubmitJob(org, repo, branch string) (config.Postsubmit, error)
func (*Options) GetReleaseJobs ¶
func (*Options) RemoveProwConfig ¶
RemoveProwConfig deletes a config (normally a repository integration) from Prow
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.