Documentation ¶
Index ¶
- Constants
- func AddApplication(kubeClient kubernetes.Interface, repos []string, ns, draftPack string, ...) error
- func AddDummyApplication(client kubernetes.Interface, devNamespace string, settings *v1.TeamSettings) 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 prowapi.ProwJob) (prowapi.ProwJob, error)
- func DeleteApplication(kubeClient kubernetes.Interface, repos []string, ns string) error
- func NewProwJob(spec prowapi.ProwJobSpec, labels map[string]string) prowapi.ProwJob
- 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) (job.Postsubmit, error)
- func (o *Options) GetProwConfig() (*config.Config, bool, error)
- func (o *Options) GetReleaseJobs() ([]string, error)
- func (o *Options) LoadPluginConfig() (*plugins.Configuration, error)
- func (o *Options) LoadProwConfig() (*config.Config, error)
- func (o *Options) LoadProwConfigFromFile() (*config.Config, error)
- func (o *Options) LoadProwPluginsFromFile() (*plugins.Configuration, error)
- func (o *Options) RemoveProwConfig() error
- type Owners
- type OwnersAliases
- type Prow
- type PullRefs
Constants ¶
const ( ConfigMapName = "config" PluginsConfigMapName = "plugins" ExternalPluginsFilename = "external-plugins.yaml" ConfigFilename = "config.yaml" PluginsFilename = "plugins.yaml" )
ConfigMapName, PluginsConfigMapName are the names of the configmaps which store prow related config
const (
TektonAgent = "tekton"
)
Variables ¶
This section is empty.
Functions ¶
func AddApplication ¶
func AddApplication(kubeClient kubernetes.Interface, repos []string, ns, draftPack string, teamSettings *v1.TeamSettings) error
AddApplication adds an app git repo config
func AddDummyApplication ¶
func AddDummyApplication(client kubernetes.Interface, devNamespace string, settings *v1.TeamSettings) error
AddDummyApplication creates the dummy prow jenkins app
func AddEnvironment ¶
func AddEnvironment(kubeClient kubernetes.Interface, repos []string, ns, environmentNamespace string, teamSettings *v1.TeamSettings, remoteEnvironment bool) error
AddEnvironment adds an environment git repo config
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 AddProtection(kubeClient kubernetes.Interface, repos []string, context string, ns string, teamSettings *v1.TeamSettings) error
AddProtection adds a protection entry in the prow config
func CreateProwJob ¶
func CreateProwJob(client kubernetes.Interface, ns string, j prowapi.ProwJob) (prowapi.ProwJob, error)
CreateProwJob creates a new ProbJob resource for the Prow build controller to run
func DeleteApplication ¶
func DeleteApplication(kubeClient kubernetes.Interface, repos []string, ns string) error
DeleteApplication will delete the Prow configuration for a given set of repositories
func NewProwJob ¶
NewProwJob initializes a ProwJob out of a ProwJobSpec.
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 Agent string IgnoreBranch bool PluginsFileLocation string ConfigFileLocation 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) (job.Postsubmit, error)
func (*Options) GetReleaseJobs ¶
func (*Options) LoadPluginConfig ¶
func (o *Options) LoadPluginConfig() (*plugins.Configuration, error)
LoadPluginConfig loads prow plugins from a configmap
func (*Options) LoadProwConfig ¶
LoadProwConfig loads prow config from configmap
func (*Options) LoadProwConfigFromFile ¶
LoadProwConfigFromFile loads prow config from a file
func (*Options) LoadProwPluginsFromFile ¶
func (o *Options) LoadProwPluginsFromFile() (*plugins.Configuration, error)
LoadProwPluginsFromFile loads prow plugins from a file
func (*Options) RemoveProwConfig ¶
RemoveProwConfig deletes a config (normally a repository integration) from Prow
type OwnersAliases ¶
type OwnersAliases struct { Aliases []string `json:"aliases"` BestApprovers []string `json:"best-approvers"` BestReviewers []string `json:"best-reviewers"` }
OwnersAliases keept the prow OWNERS_ALIASES data
type Prow ¶
type Prow struct { Version string Chart string SetValues string ReleaseName string HMACToken string OAUTHToken string }
Prow keeps install information for prow chart
type PullRefs ¶
PullRefs is the result of parsing the Prow PULL_REFS
func ParsePullRefs ¶
ParsePullRefs parses the Prow PULL_REFS env var formatted string and converts to a map of branch:sha