Commit Graph

238 Commits

Author SHA1 Message Date
Stefan Prodan 6a51152c7f
Add namespace to API docs examples
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-10-13 17:41:49 +03:00
Stefan Prodan 6402c7d775
Merge pull request #109 from fluxcd/metrics
Implement Prometheus instrumentation
2020-10-13 17:35:17 +03:00
Stefan Prodan 1819f143a9
Implement Prometheus instrumentation
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-10-13 16:24:56 +03:00
Stefan Prodan 6a04f769b2
Update fluxcd/pkg/runtime to v0.1.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-10-13 15:33:46 +03:00
Hidde Beydals fc783db8c4
Merge pull request #107 from fluxcd/build/fluxcd-pkg-main
Use GitHub actions from fluxcd/pkg@main
2020-10-06 09:56:24 +02:00
Hidde Beydals faf6212d23 Use GitHub actions from fluxcd/pkg@main
As `master` was replaced with `main`.
2020-10-06 09:39:53 +02:00
Hidde Beydals 6f3014a977
Merge pull request #106 from fluxcd/main-branch
Set default branch to main
2020-10-05 15:11:05 +02:00
Hidde Beydals d55f82f35f
Merge pull request #105 from fluxcd/prevent-nil-pointer-deref
Prevent possible future nil pointer dereference
2020-10-05 15:09:10 +02:00
Hidde Beydals 580d9acadd Set default branch to main 2020-10-05 14:55:51 +02:00
Hidde Beydals 2fb64a1095 Prevent possible future nil pointer dereference
As the existing logic relied on other conditions that caused the
`released` to never be nil, but this may not be true for future
iterations, which makes this a case of better safe than sorry.
2020-10-05 14:03:44 +02:00
Hidde Beydals 371e54c1f3
Merge pull request #103 from fluxcd/release-v0.1.1
Release v0.1.1
2020-10-02 19:45:59 +02:00
Hidde Beydals ba5ce3a9ec Release v0.1.1 2020-10-02 19:31:43 +02:00
Hidde Beydals e079429d09
Merge pull request #102 from fluxcd/fix-target-namespace
Configure release namespace in runner constructor
2020-10-02 19:25:33 +02:00
Hidde Beydals 899e8bedc7 Configure release namespace in runner constructor 2020-10-02 19:05:45 +02:00
Hidde Beydals 4379ef33a8
Merge pull request #100 from fluxcd/release-v0.1.0
Release v0.1.0
2020-09-30 20:24:52 +02:00
Hidde Beydals 55f7e39a0c Release v0.1.0 2020-09-30 20:09:15 +02:00
Hidde Beydals 77399d533f
Merge pull request #99 from fluxcd/api/v0.1.0
Promote the helm.toolkit.fluxcd.io API to v2beta1
2020-09-30 19:52:46 +02:00
Hidde Beydals accd4762fe Promote API to v2beta1 2020-09-30 19:37:23 +02:00
Sean Eagan 9e3760af57
Merge pull request #98 from seaneagan/last-observed-time-doc-fix
Remove leftover `lastObservedTime` references
2020-09-30 09:10:35 -05:00
Sean Eagan f391ea1935 Remove leftover `lastObservedTime` references
See #94
2020-09-30 08:52:42 -05:00
Hidde Beydals 4ddd98a578
Merge pull request #93 from seaneagan/helmrelease-doc-updates 2020-09-30 15:18:19 +02:00
Hidde Beydals f50dca208b Explicitly document `targetNamespace` behaviour 2020-09-30 15:03:49 +02:00
Sean Eagan 763329d190 Document HelmRelease desired state transitions
This documents what is considered a desired state transition, and
the resulting upgrade and status condition semantics.
2020-09-30 14:24:51 +02:00
Sean Eagan d8c0c38203 Address review comments 2020-09-30 14:24:51 +02:00
Sean Eagan 60e1d06c1a Rework status condition documentation 2020-09-30 14:24:51 +02:00
Sean Eagan 84897cb86d Documentation improvements
- Add note about `dependsOn` and update ordering
- Replace references to "operator" with "controller" for consistency
- Add values override docs
2020-09-30 14:24:47 +02:00
Hidde Beydals 9d54528105
Merge pull request #97 from fluxcd/impl-meta-api
Implement `fluxcd/pkg/apis/meta` in APIs
2020-09-30 12:30:06 +02:00
Hidde Beydals 8129c49b9c Implement `fluxcd/pkg/apis/meta` in APIs 2020-09-30 12:14:51 +02:00
Hidde Beydals ddcbd1c88e
Merge pull request #94 from fluxcd/last-handled-reconcile-at
Record last handled reconcile at annotation
2020-09-29 11:35:39 +02:00
Hidde Beydals d554a92f81 Record last handled reconcile at annotation
This makes it possible for e.g. the GOTK CLI to observe if the
controller has handled the resource since the manual reconciliation
request was made. It replaces the `LastObservedTime` status field,
as this was prone to time skew issues and does not offer much additional
value over the timestamps of the conditions.
2020-09-29 10:58:04 +02:00
Sean Eagan a6e8e3d4b2
Merge pull request #95 from seaneagan/fix-requeue-duration-log
Fix logging for next run delay
2020-09-28 12:06:29 -05:00
Sean Eagan 30a8f936e2 Fix logging for next run delay
We were logging the spec interval duration, which was incorrect:

1. On failures, which use exponential backoff
2. On dependency not ready, which uses a separately defined static interval.

This changes to log result.RequeueAfter directly when set.
2020-09-28 09:36:29 -05:00
Hidde Beydals 9b1c951ac1
Merge pull request #92 from fluxcd/refactor-controller 2020-09-28 14:36:35 +02:00
Hidde Beydals d80de0af02 Use single version of values reference on merge
This ensures that a subsequent update to a values reference during
the merging process does not result in an unexpected mixture of old(er)
and new values.
2020-09-28 14:06:56 +02:00
Hidde Beydals 68a8f62a41 Use `ObserveLastRelease` in garbage collector
Which uses `Last()` instead of `Deployed()` to ensure we garbage
collect Helm releases with statuses other than `deployed`,
e.g. `failed`.
2020-09-25 16:18:15 +02:00
Hidde Beydals 4a9a04aa4f Factor out and restructure various elements
* Move `ReleaseRevision` function to util
* Rename `release` method to `reconileRelease` to match
  `reconcileChart`
* Refactor chart artifact download to make use of a temporary file,
  which is removed as soon as the tarbal has been loaded into memory
2020-09-25 16:03:44 +02:00
Hidde Beydals 46d8776b18 Remove reconciliation lock
As the observed generation is now pushed before syncing the resource
(https://github.com/fluxcd/helm-operator/issues/437), and the
controller runtime queue guarantuees there are no consistency
issues (see: https://openkruise.io/en-us/blog/blog2.html).
2020-09-25 15:40:45 +02:00
Hidde Beydals 69ced56bb7 Split HelmChart and HelmRelease garbage collection 2020-09-25 15:40:45 +02:00
Hidde Beydals 7cf267c15c Factor out util functions 2020-09-25 15:40:45 +02:00
Hidde Beydals c526837d76 Factor out Helm actions into runner package 2020-09-25 15:40:41 +02:00
Hidde Beydals 1eea1bdc04
Merge pull request #91 from fluxcd/release-v0.0.10
Release v0.0.10
2020-09-23 14:22:17 +02:00
Hidde Beydals df0f80d894 Release v0.0.10 2020-09-23 14:03:49 +02:00
Hidde Beydals d8dce8122a
Merge pull request #90 from fluxcd/upgrade-dependencies
Upgrade Helm and source-controller dependencies
2020-09-23 13:55:22 +02:00
Hidde Beydals da3299e93d Upgrade Helm and source-controller dependencies
* helm.sh/helm/v3 to v3.3.4
* github.com/fluxcd/source-controller/api to v0.0.18
2020-09-23 12:30:24 +02:00
Hidde Beydals 37d2c8c0a9
Merge pull request #88 from fluxcd/enhancement/optional-valuesreference
Support optional values references
2020-09-23 11:37:14 +02:00
Hidde Beydals 1a88b40936 Support optional values references
This commit adds support for optional values references, as discussions
have brought to light that there are some valid use cases in which
having this option is desirable. For example to allow a user to extend
behaviour at a later date with their own repository without modifying
the HelmRelease object.

When a values reference is marked as optional, not found errors for the
value reference are ignored, but any ValuesKey, TargetPath or transient
error will still result in a reconciliation failure.
2020-09-23 10:00:52 +02:00
Hidde Beydals 9515d1b574
Merge pull request #89 from fluxcd/helmchart-bucket
Support Helm charts from Bucket sources
2020-09-23 10:00:15 +02:00
Hidde Beydals 2e4dbecd1e Support Helm charts from Bucket sources 2020-09-23 09:28:44 +02:00
Hidde Beydals 522b650824
Merge pull request #87 from fluxcd/release-v0.0.9
Release v0.0.9
2020-09-22 12:42:48 +02:00
Hidde Beydals a4f21f2f00 Release v0.0.9 2020-09-22 12:29:29 +02:00