Documentation ¶
Index ¶
- Constants
- func NewCmdPreview(commonOpts *opts.CommonOptions) *cobra.Command
- type PreviewOptions
- func (o *PreviewOptions) AddPreviewOptions(cmd *cobra.Command)
- func (o *PreviewOptions) DefaultValues(ns string, warnMissingName bool) error
- func (o *PreviewOptions) GetPreviewValuesConfig(projectConfig *config.ProjectConfig, domain string) (*config.PreviewValuesConfig, error)
- func (o *PreviewOptions) Run() error
- func (o *PreviewOptions) RunPostPreviewSteps(kubeClient kubernetes.Interface, ns string, url string, pipeline string, ...) error
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) 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
Click to show internal directories.
Click to hide internal directories.