Skip to content

Releases: rancher/charts-build-scripts

v0.3.1

06 Jan 01:12
a67c676
Compare
Choose a tag to compare

Makes minor fix to support nested tgz and tar comparisions: #69

v0.3.0

04 Jan 18:22
b21b7fd
Compare
Choose a tag to compare

Major changes:

  • More and better docs: all docs have been rewritten and moved to the docs/ directory. These new docs (especially developing.md) are geared around making it far easier for new developers to understand how to work with the scripts.
  • Support for nested packages: instead of forcing all packages to live in packages/PACKAGE, you can now nest packages within folders. This feature can be used to nest versions of packages, e.g. packages/longhorn/longhorn-1.1 and packages/longhorn/longhorn-1.2. In addition, the PACKAGE env var now supports preparing all packages under the path defined (e.g. PACKAGE=longhorn would prepare both versions of longhorn in the example given above).
  • charts/ and assets/ directories are indexed on Chart, not Package: For example, now if you prepare packages/my-longhorn/longhorn-1.1 and packages/my-longhorn/longhorn-1.2, both charts will be located under charts/longhorn/VERSION and assets/longhorn/CHART-VERSION.tgz; the name of the package that generated the chart (e.g. my-longhorn) will not be considered.
  • Moving to rancher/system-charts model for releases: Instead of using specific scripts that need to be run for a release to move contents from a dev branch to a release branch, the dev branch will simply be a fork of the release branch.
  • make zip, make unzip, make index: to make it easier to work with charts that have already been released, utility commands have been provided to automatically dump the contents of charts/ into assets/ (i.e. make zip), dump the contents of assets/ into charts/ (i.e. make unzip), or update the index.yaml while preserving changes such as timestamps (e.g. make index).
  • Complete redesign of make validate and introducing release.yaml: The validation process has been refactored to support the new single branch system-charts model and a new release.yaml file will need to be updated every time a chart is added, updated, or modified from the perspective of the release branch. Please see the docs for more information!
  • Standardized Chart.yaml patches: Before producing a patch, the upstream chart's Chart.yaml is standardized (e.g. orders annotations and keys alphabetically) to ensure that the patches produced are more clean.

Experimental major features:

  • Local caching for GitHub-Repo-based Packages: setting USE_CACHE=1 will ensure that any GH repo that is pulled will be cached in ./.charts-build-scripts/.cache/.gitrepos/*, which speeds up make prepare, make patch, and make charts
  • Support for non-Helm sources (e.g. manifests): package.yaml now supports pointing to a set of manifests.

Misc updates:

  • make list: a new utility command that allows you to list packages that are currently being targeted by the script, based on the contents of the PACKAGE env var
  • make standardize: a new utility command that standardizes any repository with Helm charts under charts/ to a charts-build-scripts friendly repository. Used under the hood for the new validate process.
  • make charts and make clean do not fail if no packages are found
  • packageVersions are now enforced to be 1+
  • ./bin/charts-build-scripts validate now supports --local or --remote validation
  • make prepare will fail if the commit hash is invalid
  • Added a migration script to cherry-pick changes on Git to the packages/ directory
  • ./scripts/pull-scripts is more friendly to dev builds
  • ./scripts/package-ci can now be run from the repository root

v0.2.4

17 Nov 19:29
c86797f
Compare
Choose a tag to compare
Merge pull request #66 from jiaqiluo/fix-regenerated-crd-tgz-in-valid…

v0.2.3

16 Nov 18:02
6df1a12
Compare
Choose a tag to compare
Merge pull request #64 from jiaqiluo/compress-crd-files

v0.2.2

18 Aug 20:13
e11e8fb
Compare
Choose a tag to compare

Enhancements:

  • Add optional repository-level configuration flag to omitBuildMetadataOnExport that removes the automatically appended +up annotation from all charts. See #57

v0.2.1: Merge pull request #49 from aiyengar2/remove_github_workflow_from_update

08 Jun 19:04
020c08a
Compare
Choose a tag to compare

Enhancements:

  • Update Go to v1.16
  • The make pull-scripts command runs faster now
  • The +upstream-version part is omitted if the upstream chart version is the same as our chart version.

New Features:

  • The new version field in the package.yaml can be used to set the chart's version, and it will override the chart's original version or packageVersion.

Fixes:

  • Fix the bug where the overlay file is left in the charts/<package-name> directory after the file is removed from the packages/<package-name>/generated-changes/overlay directory

v0.2.0

17 May 21:09
cae97e4
Compare
Choose a tag to compare

Highlights:

  • Cleaned up code for unused stuff and created some helper functions to reduce redundant code
  • Removed make sync, make rebase
  • Renamed make docs to make template
  • Heavily simplified make validate and removed a ton of files that were overly complex due to new requirements. See below for more details
  • Modified scripts and templates to document the new features
  • Updated versioning for semver compliance for Helm 3.5.2
  • Added a package-ci script that can be used to validate that charts-build-script changes don't break basic functionality
  • Minor bugfixes

#38

v0.1.0

18 Mar 21:27
545db5a
Compare
Choose a tag to compare

Breaking Change

Due to c4f9b8f, the output of make prepare may be different than before for local and forked charts. Some manual changes may be required to upgrade to the new scripts version.