Back to

package preview

v1.3.981 (5ccee8e)
Latest Go to latest
Published: Jun 25, 2020 | License: Apache-2.0 | Module:



const (
	DOCKER_REGISTRY                        = "DOCKER_REGISTRY"
	ORG                                    = "ORG"
	REPO_OWNER                             = "REPO_OWNER"
	REPO_NAME                              = "REPO_NAME"
	APP_NAME                               = "APP_NAME"
	PREVIEW_VERSION                        = "PREVIEW_VERSION"

func NewCmdPreview

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

NewCmdPreview creates a command object for the "create" command

type PreviewOptions

type PreviewOptions struct {

	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

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

	HelmValuesConfig config.HelmValuesConfig

	SkipAvailabilityCheck bool
	// contains filtered or unexported fields

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

type PreviewRequirementsYaml

type PreviewRequirementsYaml struct {
	Preview config.RequirementsValues `json:"preview,omitempty"`

PreviewRequirementsYaml the yaml file to inject into the helm chart for the preview

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier