rancher-partner-charts/packages
Trinath Somanchi 1fa3ebb4de Make patch - F5 2022-05-11 11:50:35 +05:30
..
ambassador Fix ambassador patch 2021-06-23 18:50:19 -07:00
artifactory-ha Bump version of released charts w/ invalid semver 2021-08-18 13:33:21 -07:00
artifactory-jcr Bump version of released charts w/ invalid semver 2021-08-18 13:33:21 -07:00
aws-event-sources Hiding aws-event-sources chart 2022-05-05 03:18:02 -04:00
citrix-adc-istio-ingress-gateway Make patch 2021-11-22 18:12:42 -05:00
citrix-cpx-istio-sidecar-injector Make patch 2021-11-22 18:12:42 -05:00
citrix-cpx-with-ingress-controller Fix citrix-cpx-with-ingress-controller patch 2021-06-23 18:50:20 -07:00
citrix-ingress-controller Changes in package to add chart 2021-11-02 15:55:21 +05:30
cloudcasa Adding CloudCasa v3.0.0 2022-02-15 16:25:54 +05:30
cockroachdb Fix cockroachdb patch 2021-06-23 18:50:21 -07:00
codefresh Added Codefresh Runner Helm Chart 2021-12-20 11:48:52 -05:00
confluent-for-kubernetes Commit package yaml, read mes and patch. 2021-09-03 16:11:16 -04:00
csi-wekafs Bump csi-wekafs due to small change in Chart.yaml 2021-08-18 13:24:50 -07:00
datadog Exclude requirements.lock from datadog and bump 2021-08-18 13:24:50 -07:00
datawiza-access-broker Changes in package to add chart 2022-01-14 12:55:43 +08:00
dynatrace-oneagent-operator Make patch 2021-11-30 23:45:32 -05:00
external-secrets-operator Make Prepare, Make Patch, For External Secrets Operator 2022-05-03 10:09:14 +00:00
f5-container-ingress-services Make patch - F5 2022-05-11 11:50:35 +05:30
falcon-sensor Fix falcon-sensor patch and clean up overlay 2021-06-23 18:50:21 -07:00
federatorai Changes in package to add or update chart 2022-03-21 17:12:40 +08:00
fpga-operator Update fpga-operator package 2022-02-01 00:27:49 +02:00
gluu feat(gluu): patch helm package 2022-03-16 12:28:57 +00:00
haproxy Update HAProxy to 1.17.10 2021-12-01 06:04:52 +00:00
hpe-csi-driver rancher-c1 2022-04-22 14:29:55 -07:00
hpe-flexvolume-driver Bump version of released charts w/ invalid semver 2021-08-18 13:33:21 -07:00
instana-agent Fix instana-agent patch 2021-06-23 18:50:22 -07:00
k8s-triliovault-operator TVK 2.9.0 package and patch file 2022-05-09 07:09:32 +00:00
k10 Update k10 chart to version 4.5.14 2022-04-23 12:56:28 +00:00
kong first commit 2021-08-30 20:35:04 -03:00
kongmesh first commit 2022-01-31 10:34:48 -03:00
kubecost update package version and patch Chart.yaml 2022-01-10 13:48:43 -06:00
linkerd Linkerd chart 2021-09-30 16:51:22 -05:00
nats Add nats package 2021-12-06 08:46:46 -07:00
neuvector updating NeuVector chart version to 1.9.1 2022-02-23 16:15:44 -08:00
nginx-ingress Update nginx-ingress chart version to 2.2.0 2022-04-13 09:57:20 +01:00
nginx-service-mesh Add NSM package for v1.4.0 2022-03-03 08:48:48 -07:00
nutanix-csi-snapshot add nutanix-csi-snapshot 1.0.0 2022-01-05 16:55:25 +01:00
nutanix-csi-storage update nutanix sto 2.5.2 2022-03-24 10:35:14 +01:00
ondat-operator Update ondat-operator package dir 2022-02-24 16:42:52 +00:00
openebs OpenEBS: Updated with 3.0.0 chart 2021-10-18 12:09:40 +05:30
pixie add pixie package 2022-05-03 10:40:20 -07:00
portshift-operator Bump version of released charts w/ invalid semver 2021-08-18 13:33:21 -07:00
portworx update charts 2022-04-12 23:42:32 -06:00
sextant feat(sextant): make patch 2022-03-16 11:49:11 +00:00
shipa ran make clean to remove extra files 2022-04-27 14:33:27 -04:00
softiron Add SoftIron Chart overlay 2021-12-15 07:55:12 -05:00
speedscale-operator add speedscale-operator version 0.11.43 2022-02-18 12:52:56 -05:00
streamsets Add display annotation and kubeVersion to streamsets 2021-09-02 18:24:44 -07:00
sysdig Fix sysdig patch 2021-06-23 18:51:29 -07:00
traefik Update Traefik chart version to 10.19.0 2022-03-28 14:09:36 +02:00
triggermesh TriggerMesh Cloud Native Integration Platform 2022-01-18 22:36:24 +11:00
universal-crossplane universal-crossplane: add v1.5.2001 2022-04-21 08:12:46 -04:00
vals-operator Vals-Operator-0.5.0: make charts 2022-03-04 10:35:14 +00:00
ziti-host add openziti ziti-host 2022-03-12 22:09:01 -05:00
README.md Initialize new scripts and make minor changes 2021-06-23 18:50:15 -07:00

README.md

Packages

What is a Package?

A Package represents a grouping of one or more Helm Charts. It is declared within packages/<package>/package.yaml with the following spec:

version: # The version of the generated chart. This value will override the upstream chart's version. Mutually exclusive with packageVersion
packageVersion: 1 # The value range is from 1 to 99. Mutually exclusive with version
workingDir: # The directory within your package that will contain your working copy of the chart (e.g. charts)
url: # A URL pointing to an UpstreamConfiguration
subdirectory: # Optional field for a specific subdirectory for all upstreams
commit: # Optional field for a specific commit if your URL point to a Github Repository
additionalCharts:
# These contain other charts that you would like to package alongside this chart
- workingDir: # same as above
  upstreamOptions:
    # Mutually exclusive with crdOptions
    url: # same as above
    subdirectory: # optional, same as above
    commit: # optional, same as above
  crdOptions:
    # Mutually exclusive with upstreamOptions
    templateDirectory: # A directory within packages/<package>/template that will contain a template for your CRD chart
    crdDirectory: # Where to place your CRDs within a CRD chart (e.g. crds for default charts)
    addCRDValidationToMainChart: # Whether to add additional validation to your main chart to check that the CRD chart is installed.

As seen in the spec above, every Package must have exactly one Chart designated as a main Chart (multiple main Charts are not supported at this time) and all other Charts will be considered AdditionalCharts.

UpstreamOptions

Charts or AdditionalCharts can provide UpstreamOptions with the following possible configurations:

  • Chart Archive: provide the url and optionally subdirectory
  • Github Repository: provide the url (e.g. https://github.com/rancher/charts-build-scripts.git) and optionally a subdirectory and a commit
  • Package: provide a url: packages/<package> and the main Chart from that package can be pulled. You should ensure that a loop is not introduced.
  • Local: provide url: local and the package will assume the contents of workingDir are exactly the chart you want to use.

[AdditionalCharts] CRDOptions

AdditionalCharts can provide CRDOptions instead of UpstreamOptions. These CRDOptions allow the scripts to automatically construct a CRD chart from your main Chart's contents based on the template provided.

A CRD Chart is a Helm Chart whose sole purpose is to install CRDs onto a cluster before the main Chart is installed.

You should not need a CRD chart if your main chart has the following qualities:

  1. Your main chart does not install any CRDs.
  2. Even if your main chart installs CRDs, it never installs resources of that kind as part of the release. In this case, CRDs can just remain in your templates/ directory to be managed by Helm.
  3. Neither option from above applies to you, but you do not need to facilitate automatically upgrading CRDs or providing a way for a user to cleanly delete CRDs via a second Helm release. In this case, the current Helm feature of having your CRDs placed in the crds/ directory should work for you.

Directory Structure

packages/
  <package>/
    package.yaml # A file that represents your package's overall configuration
    generated-changes/
      additional-charts/
        # Contains one directory per additional chart, keeping track of its dependencies and patches
        <additionalChart>/
          generated-changes/
            # Same as above, but no more additionalCharts
      dependencies/
        # Contains one directory per dependency.
        <dependency>
          dependency.yaml # The UpstreamConfiguration of a particular dependency
      exclude/
        # Files that were excluded from upstream verbatim. Follows the same directory structure as the chart
      overlay/
        # Files that were overlaid onto upstream verbatim. Follows the same directory structure as the chart
      patch/
        # Files that were patches from upstream. Follows the same directory structure as the chart and contains Unified Unix Diffs
    templates/ 
      # Contains any templates. Currently only used by CRDOptions

Developer Workflow

Developers will use the following commands to work with packages:

  • make prepare: Pulls in your charts from upstream and creates a basic generated-changes/ directory with your dependencies from upstream

  • make patch: Updates your generated-changes/ to reflect the difference between upstream and the current working directory of your branch. Requires prepare

  • make charts: Runs prepare and then exports your charts to assets/ and charts/ and generates or updates your index.yaml. This is expected to be run before submitting a PR. Once this has been run and pushed to a branch, a Rancher Helm Repository that points to a branch that has these directories with the index.yaml should be able to find and deploy working copies of your chart.

  • make clean: Cleans up all the working directories of charts to get your repository ready for a PR

To update your working copy of the charts-build-scripts after rebasing against upstream, run:

  • make pull-scripts: Pulls in the version of the charts-build-scripts indicated in scripts

To check whether the new packages you are introducing will cause any issues with upstream that contains already released charts, run:

  • make validate: Validates your current repository branch against all the repository branches indicated in your configuration.yaml

Common Workflow

  • Make or update the packages/<package>/package.yaml to point to your upstream and set any other chart options
  • Run PACKAGE=<package> make prepare to pull in your upstream repositories
    • Note: On a prepare, the charts-build-scripts will automatically replace your charts existing dependencies with dependencies that will show up in generated-changes/dependencies/<dependency>/dependency.yaml. Since the spec of this file follows the UpstreamConfiguration described above, you can modify this to point your dependencies to a local chart (rooted at generated-changes/dependencies/<dependency>/), another package, a Chart archive (e.g. point it to a newer version of the dependency), or a Github Repository (at a subdirectory / commit).
    • Note: As part of replacing your dependencies, the Chart.yaml and requirements.yaml are considered "Managed Files". These files are prone to having conflicts and may need to be deleted / recreated on a prepare if there are conflicts. Please open up an issue if you encounter frequent bugs with these files so that we can take a look.
  • Make changes to the relevant working directories
  • Run PACKAGE=<package> make patch to save your changes
  • Run make clean. Make a commit with your packages/ changes
  • Run make charts. Make a commit with your charts/ changes
  • Test your changes by pushing it to a branch. Once it is available at such a branch, it can be picked up by any tools that can point to Github based Helm Repositories (e.g. Rancher Cluster Explorer Apps & Marketplace).
    • Note: If you encounter bugs on testing and need to modify your commits, it is recommended that you continue to keep your packages/ changes and charts/ changes separate. Ideally, you should have 1+ commits that modify the packages/ directory for reviewers to view and 1 commit that modifies the charts/ directory as a generated changes commit.
  • Once you are ready to make a PR, ensure the last commit contains only the generated make charts changes and submit a PR. The PR workflow will automatically run make validate to ensure that your current repository wouldn't introduce any conflicts during a release.
  • Open up a PR with your changes.

Troubleshooting

Open up an issue on https://github.com/rancher/charts-build-scripts

Maintainers