prow

package
v1.3.551 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

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"
)
View Source
const (
	ProwConfigMapName        = "config"
	ProwPluginsConfigMapName = "plugins"
	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 AddProtection

func AddProtection(kubeClient kubernetes.Interface, repos []string, context string, ns string) error

Types

type Kind added in v1.3.246

type Kind string

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

func (o *Options) AddProwConfig() error

AddProwConfig adds config to Prow

func (*Options) AddProwPlugins

func (o *Options) AddProwPlugins() error

AddProwPlugins adds plugins to prow

func (*Options) GetAllBranchProtectionContexts added in v1.3.476

func (o *Options) GetAllBranchProtectionContexts(org string, repo string) ([]string, error)

func (*Options) GetBranchProtectionContexts added in v1.3.476

func (o *Options) GetBranchProtectionContexts(org string, repo string) ([]string, error)

func (*Options) GetBuildSpec added in v1.3.540

func (o *Options) GetBuildSpec(org, repo, branch string) (*build.BuildSpec, error)

func (*Options) GetProwConfig

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

func (*Options) GetReleaseJobs

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

type Owners

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

Owners keeps the prow OWNERS data

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

Jump to

Keyboard shortcuts

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