Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareIndexFiles ¶ added in v1.0.0
func CompareIndexFiles(rootFs billy.Filesystem) error
CompareIndexFiles will load the current index.yaml file from the root filesystem and compare it with the index.yaml file from charts.rancher.io
func ValidatePullRequest ¶ added in v0.9.9
func ValidatePullRequest(token, prNum string, dep *lifecycle.Dependencies) error
ValidatePullRequest will execute the check a given pull request for the following:
- Checkpoint 0: release.yaml file is valid
- TODO: Checkpoint 1: Compare contents of assets/ to charts/
- TODO: Checkpoint 2: Compare assets against index.yaml
Types ¶
type Bump ¶ added in v1.1.0
Bump TODO: Doc this
type Command ¶
type Command struct { Chart string // The chart to forward-port Version string // The version to forward-port Command []string // The command to run to forward-port }
Command holds the necessary information to forward-port a chart
type ForwardPort ¶
type ForwardPort struct { VR *lifecycle.VersionRules // contains filtered or unexported fields }
ForwardPort holds the data and methods to forward-port charts
func CreateForwardPortStructure ¶
func CreateForwardPortStructure(ld *lifecycle.Dependencies, assetsToPort map[string][]lifecycle.Asset, forkURL string) (*ForwardPort, error)
CreateForwardPortStructure will create the ForwardPort struct with access to the necessary dependencies. It will also check if yq command is installed on the system.
func (*ForwardPort) ExecuteForwardPort ¶
func (f *ForwardPort) ExecuteForwardPort(chart string) error
ExecuteForwardPort will execute all steps to organize and create the forward-port PRs
type PullRequest ¶
type PullRequest struct {
// contains filtered or unexported fields
}
PullRequest represents a pull request to be created for each chart separately
type Release ¶ added in v0.9.6
type Release struct { VR *lifecycle.VersionRules AssetTgz string AssetPath string ChartVersion string Chart string ReleaseYamlPath string ForkRemoteURL string // contains filtered or unexported fields }
Release holds necessary metadata to release a chart version
func InitRelease ¶ added in v0.9.6
InitRelease will create the Release struct with access to the necessary dependencies.
func (*Release) PullAsset ¶ added in v0.9.6
PullAsset will execute the release porting for a chart in the repository
func (*Release) UpdateReleaseYaml ¶ added in v0.9.6
UpdateReleaseYaml reads and parse the release.yaml file to a struct, appends the new version and writes it back to the file.