Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var PrivateARHelmHost = "https://us-docker.pkg.dev"
PrivateARHelmHost is the host name of the private AR used for testing
Functions ¶
func PrivateARHelmRegistry ¶
func PrivateARHelmRegistry() string
PrivateARHelmRegistry is the registry URL to the private AR used for testing. Cannot be assigned as a global variable due to GCPProject pointer, which gets evaluated after initialization.
Types ¶
type RemoteHelmChart ¶
type RemoteHelmChart struct { // Shell is a helper utility to execute shell commands in a test. Shell *testshell.TestShell // Host is the host URL, e.g. https://us-docker.pkg.dev Host string // Registry is the registry URL, e.g. oci://us-docker.pkg.dev/oss-prow-build-kpt-config-sync/config-sync-test-ar-helm Registry string // ChartName is the name of the helm chart ChartName string // ChartVersion is the version of the helm chart ChartVersion string // Dir is a local directory from which RemoteHelmChart will read, package, and push the chart from Dir string }
RemoteHelmChart represents a remote OCI-based helm chart
func NewRemoteHelmChart ¶
func NewRemoteHelmChart(shell *testshell.TestShell, host, registry, dir, chartName, version string) *RemoteHelmChart
NewRemoteHelmChart creates a RemoteHelmChart
func PushHelmChart ¶
func PushHelmChart(nt *nomostest.NT, helmchart, version string) (*RemoteHelmChart, error)
PushHelmChart pushes a new helm chart for use during an e2e test. Returns a reference to the RemoteHelmChart object and any errors that are encountered.
func (*RemoteHelmChart) CopyChartFromLocal ¶
func (r *RemoteHelmChart) CopyChartFromLocal(chartPath, originalChartName string) error
CopyChartFromLocal accepts a local path to a helm chart and recursively copies it to r.Dir, modifying the name of the copied chart from its original name to r.ChartName
func (*RemoteHelmChart) Push ¶
func (r *RemoteHelmChart) Push() error
Push will package and push the helm chart located at r.Dir to the remote registry.
func (*RemoteHelmChart) RegistryLogin ¶
func (r *RemoteHelmChart) RegistryLogin() error
RegistryLogin will log into the registry host specified by r.Host using local gcloud credentials
func (*RemoteHelmChart) UpdateVersion ¶
func (r *RemoteHelmChart) UpdateVersion(version string) error
UpdateVersion updates the local version of the helm chart to version