previews

package
v0.0.213 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJXValuesFile

func CreateJXValuesFile(gitter gitclient.Interface, jxClient jxc.Interface, namespace, helmfile, previewNamespace, gitUser, gitToken string) (string, error)

CreateJXValuesFile creates the jx-values.yaml file from the dev environment

func DiscoverHelmfile

func DiscoverHelmfile(dir string) (string, error)

DiscoverHelmfile discovers the helmfile in the gitven directory

func GetOrCreatePreview

func GetOrCreatePreview(client versioned.Interface, ns string, pr *scm.PullRequest, destroyCmd v1alpha1.Command, gitURL, previewNamespace, path string) (*v1alpha1.Preview, bool, error)

GetOrCreatePreview lazy creates the preview client and/or the current namespace if not already defined

func LazyCreatePreviewClientAndNamespace

func LazyCreatePreviewClientAndNamespace(client versioned.Interface, ns string) (versioned.Interface, string, error)

LazyCreatePreviewClientAndNamespace lazy creates the preview client and/or the current namespace if not already defined

func Less

func Less(a *v1alpha1.Preview, b *v1alpha1.Preview) bool

Less compares two previews to sort them in order

func SortPreviews

func SortPreviews(resources []v1alpha1.Preview)

SortPreviews sorts the previews in order

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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