preview

package
v2.1.155 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOCKER_REGISTRY                        = "DOCKER_REGISTRY"
	JENKINS_X_DOCKER_REGISTRY_SERVICE_HOST = "JENKINS_X_DOCKER_REGISTRY_SERVICE_HOST"
	JENKINS_X_DOCKER_REGISTRY_SERVICE_PORT = "JENKINS_X_DOCKER_REGISTRY_SERVICE_PORT"
	ORG                                    = "ORG"
	REPO_OWNER                             = "REPO_OWNER"
	REPO_NAME                              = "REPO_NAME"
	APP_NAME                               = "APP_NAME"
	DOCKER_REGISTRY_ORG                    = "DOCKER_REGISTRY_ORG"
	PREVIEW_VERSION                        = "PREVIEW_VERSION"
)

Variables

This section is empty.

Functions

func NewCmdPreview

func NewCmdPreview(commonOpts *opts.CommonOptions) *cobra.Command

NewCmdPreview creates a command object for the "create" command

Types

type PreviewOptions

type PreviewOptions struct {
	promote.PromoteOptions

	Name                   string
	Label                  string
	Namespace              string
	DevNamespace           string
	Cluster                string
	PullRequestURL         string
	PullRequest            string
	SourceURL              string
	SourceRef              string
	Dir                    string
	PostPreviewJobTimeout  string
	PostPreviewJobPollTime string
	PreviewHealthTimeout   string

	PullRequestName string
	GitConfDir      string
	GitProvider     gits.GitProvider
	GitInfo         *gits.GitRepository
	NoComment       bool
	SingleComment   bool

	// calculated fields
	PostPreviewJobTimeoutDuration time.Duration
	PostPreviewJobPollDuration    time.Duration
	PreviewHealthTimeoutDuration  time.Duration

	HelmValuesConfig config.HelmValuesConfig

	SkipAvailabilityCheck bool
}

PreviewOptions the options for viewing running PRs

func (*PreviewOptions) AddPreviewOptions

func (o *PreviewOptions) AddPreviewOptions(cmd *cobra.Command)

func (*PreviewOptions) DefaultValues

func (o *PreviewOptions) DefaultValues(ns string, warnMissingName bool) error

func (*PreviewOptions) GetPreviewValuesConfig

func (o *PreviewOptions) GetPreviewValuesConfig(projectConfig *config.ProjectConfig, domain string) (*config.PreviewValuesConfig, error)

GetPreviewValuesConfig returns the PreviewValuesConfig to use as extraValues for helm

func (*PreviewOptions) Run

func (o *PreviewOptions) Run() error

Run implements the command

func (*PreviewOptions) RunPostPreviewSteps

func (o *PreviewOptions) RunPostPreviewSteps(kubeClient kubernetes.Interface, ns string, url string, pipeline string, build string, application string) error

RunPostPreviewSteps lets run any post-preview steps that are configured for all apps in a team

Jump to

Keyboard shortcuts

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