source-controller/controllers
Dylan Arbour 27c385b957 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>
2021-10-08 11:07:11 +02:00
..
testdata Write chart data on identitical values overwrite 2021-04-21 14:50:03 +02:00
artifact.go Add include property to GitRepositories 2021-05-11 09:46:50 +02:00
artifact_test.go Add include property to GitRepositories 2021-05-11 09:46:50 +02:00
bucket_controller.go Drop deprecated `io/ioutil` 2021-07-29 09:58:00 +02:00
bucket_controller_test.go Drop deprecated `io/ioutil` 2021-07-29 09:58:00 +02:00
gitrepository_controller.go Drop deprecated `io/ioutil` 2021-07-29 09:58:00 +02:00
gitrepository_controller_test.go Drop deprecated `io/ioutil` 2021-07-29 09:58:00 +02:00
helmchart_controller.go Add ReconcileStrategy to HelmChart 2021-10-08 11:07:11 +02:00
helmchart_controller_test.go Add ReconcileStrategy to HelmChart 2021-10-08 11:07:11 +02:00
helmrepository_controller.go Update Helm to v3.6.1 2021-06-18 12:31:23 +02:00
helmrepository_controller_test.go Use LocalObjectReference from fluxcd/pkg/meta v0.7 2021-01-21 14:18:42 +02:00
source_predicate.go Upgrade controller-runtime to v0.7.0 2020-12-18 19:17:10 +01:00
storage.go storage: strip env specific data during archive 2021-08-05 12:42:40 +02:00
storage_test.go Drop deprecated `io/ioutil` 2021-07-29 09:58:00 +02:00
suite_test.go Drop deprecated `io/ioutil` 2021-07-29 09:58:00 +02:00