Documentation ¶
Index ¶
Constants ¶
const ReleaseYamlFileName = "release.yaml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompareGeneratedAssetsResponse ¶ added in v0.3.0
type CompareGeneratedAssetsResponse struct { // UntrackedInRelease represents charts that need to be added to the release.yaml UntrackedInRelease options.ReleaseOptions `yaml:"untrackedInRelease,omitempty"` // RemovedPostRelease represents charts that have been removed from the upstream RemovedPostRelease options.ReleaseOptions `yaml:"removedPostRelease,omitempty"` // ModifiedPostRelease represents charts that have been modified from the upstream ModifiedPostRelease options.ReleaseOptions `yaml:"modifiedPostRelease,omitempty"` }
CompareGeneratedAssetsResponse tracks resources that are added, deleted, and modified when comparing two charts repositories
func CompareGeneratedAssets ¶
func CompareGeneratedAssets(repoFs billy.Filesystem, u options.UpstreamOptions, branch string, releaseOptions options.ReleaseOptions) (CompareGeneratedAssetsResponse, error)
CompareGeneratedAssets checks to see if current assets and charts match upstream, aside from those indicated in the release.yaml It returns a boolean indicating if the comparison has passed or an error
func (CompareGeneratedAssetsResponse) DumpReleaseYaml ¶ added in v0.3.0
func (r CompareGeneratedAssetsResponse) DumpReleaseYaml(repoFs billy.Filesystem) error
DumpReleaseYaml takes the response collected by this CompareGeneratedAssetsResponse and automatically creates the appropriate release.yaml, assuming that the user does indeed intend to add, delete, or modify all assets that were marked in this comparison
func (CompareGeneratedAssetsResponse) LogDiscrepancies ¶ added in v0.3.0
func (r CompareGeneratedAssetsResponse) LogDiscrepancies()
LogDiscrepancies produces logs that can be used to pretty-print why a validation might have failed
func (CompareGeneratedAssetsResponse) PassedValidation ¶ added in v0.3.0
func (r CompareGeneratedAssetsResponse) PassedValidation() bool
PassedValidation returns whether the response seems to indicate that the chart repositories are in sync