prow

package
v1.3.1119 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 17 Imported by: 3

Documentation

Index

Constants

View Source
const (
	Hook = "hook"

	KnativeBuildAgent = "knative-build"
	TektonAgent       = "tekton"
	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, teamSettings *v1.TeamSettings) error

AddApplication adds an app git repo config

func AddEnvironment

func AddEnvironment(kubeClient kubernetes.Interface, repos []string, ns, environmentNamespace string, teamSettings *v1.TeamSettings) 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 added in v1.3.997

func NewProwJob(spec prowapi.ProwJobSpec, labels map[string]string) prowapi.ProwJob

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
}

Options for Prow

func (*Options) AddExternalProwPlugins

func (o *Options) AddExternalProwPlugins(adds []plugins.ExternalPlugin) error

func (*Options) AddProwConfig

func (o *Options) AddProwConfig() error

AddProwConfig adds config to Prow

func (*Options) AddProwPlugins

func (o *Options) AddProwPlugins() error

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) GetProwConfig

func (o *Options) GetProwConfig() (*config.Config, bool, error)

func (*Options) GetReleaseJobs

func (o *Options) GetReleaseJobs() ([]string, error)

func (*Options) RemoveProwConfig

func (o *Options) RemoveProwConfig() error

RemoveProwConfig deletes a config (normally a repository integration) from Prow

type Owners

type Owners struct {
	Approvers []string `json:"approvers"`
	Reviewers []string `json:"reviewers"`
}

Owners keeps the prow OWNERS data

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 PullRefs added in v1.3.927

type PullRefs struct {
	BaseBranch string
	BaseSha    string
	ToMerge    map[string]string
}

PullRefs is the result of parsing the prow PULL_REFS

func ParsePullRefs added in v1.3.886

func ParsePullRefs(pullRefs string) (*PullRefs, error)

ParsePullRefs parses the Prow PULL_REFS env var formatted string and converts to a map of branch:sha

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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