Documentation ¶
Index ¶
- type Options
- func (o *Options) AddFlags(cmd *cobra.Command)
- func (o *Options) CreateHelmfileEnvVars(fn func(string) (string, error)) (map[string]string, error)
- func (o *Options) DiscoverPreviewHelmfile() error
- func (o *Options) IfPodIsFailedShareLogs(pod *corev1.Pod, previewNamespace string) error
- func (o *Options) ProcessHelmfileSyncTimeoutOrReturnOriginalError(syncError error) error
- func (o *Options) Run() error
- func (o *Options) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { scmhelpers.PullRequestOptions PreviewHelmfile string PreviewNamespace string Namespace string PreviewService string DockerRegistry string BuildNumber string Version string GitUser string PreviewURLPath string // PullRequestBranch used for testing to fake out the pull request branch name PullRequestBranch string PreviewURLTimeout time.Duration NoComment bool NoWatchNamespace bool Debug bool GitClient gitclient.Interface PreviewClient versioned.Interface KubeClient kubernetes.Interface JXClient jxc.Interface KServeClient kserve.Interface CommandRunner cmdrunner.CommandRunner OutputEnvVars map[string]string WatchNamespaceCommand *exec.Cmd Preview *v1alpha1.Preview }
Options the CLI options for
func NewCmdPreviewCreate ¶
NewCmdPreviewCreate creates a command object for the command
func (*Options) CreateHelmfileEnvVars ¶ added in v0.0.183
func (*Options) DiscoverPreviewHelmfile ¶
DiscoverPreviewHelmfile if there is no helmfile configured lets find the charts folder and default the preview helmfile to that then generate a helmfile.yaml if its missing
func (*Options) IfPodIsFailedShareLogs ¶ added in v0.2.0
func (*Options) ProcessHelmfileSyncTimeoutOrReturnOriginalError ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.