Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reconcile strategy for HelmCharts #308

Merged
merged 1 commit into from
Oct 8, 2021
Merged

Add reconcile strategy for HelmCharts #308

merged 1 commit into from
Oct 8, 2021

Commits on Oct 8, 2021

  1. Add ReconcileStrategy to HelmChart

    This commit adds a `ReconcileStrategy` field to the `HelmChart` resource, which
    allows defining when a new chart should be packaged and/or published if it
    originates from a `Bucket` or `GitRepository` resource.
    
    The two available strategies are:
    
    - `ChartVersion`: creates a new artifact when the version of the Helm chart as
      defined in the `Chart.yaml` from the Source is different from the current
      version.
    - `Revision`: creates a new artifact when the revision of the Source is
      different from the current revision.
    
    For the `Revision` strategy, the (checksum part of the) revision of the
    artifact the chart originatesfrom is added as SemVer metadata.
    
    A chart from a `GitRepository` with Artifact revision
    `main/f0faacd5164a875ebdbd9e3fab778f49c5aadbbc` and a chart with e.g. SemVer
    `0.1.0` will be published as `0.1.0+f0faacd5164a875ebdbd9e3fab778f49c5aadbbc`.
    
    A chart from a `Bucket` with Artifact revision
    `f0faacd5164a875ebdbd9e3fab778f49c5aadbbc` and a chart with e.g. SemVer `0.1.0`
    will be published as `0.1.0+f0faacd5164a875ebdbd9e3fab778f49c5aadbbc`.
    
    Signed-off-by: Dylan Arbour <arbourd@users.noreply.github.com>
    arbourd authored and hiddeco committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    27c385b View commit details
    Browse the repository at this point in the history