Commit Graph

340 Commits

Author SHA1 Message Date
Hidde Beydals b5d869db03 Include PATCH rule for events in manager-role
During high custom resource count / low interval tests, I was greated
with a `cannot patch resource "events"` message. This happened due to
event compaction, where it will perform a patch instead of a create.
By giving the role the permission to do so this should no longer pose
a problem.
2020-09-10 21:17:10 +02:00
Hidde Beydals 7f0c99cf03 Tweak `make manifest` target to reenable RBAC gen 2020-09-10 21:17:06 +02:00
Hidde Beydals c8631888a0
Merge pull request #133 from fluxcd/storage/atomic-file-write 2020-09-10 14:46:34 +02:00
Hidde Beydals f08febdffa Bump build-push-action version 2020-09-10 14:21:16 +02:00
Hidde Beydals d03f4fa4c4 Change advertised artifact URLs on hostname change 2020-09-10 14:13:46 +02:00
Hidde Beydals 7a3a5938d3 Mark resources as progressing on spec changes 2020-09-10 14:13:41 +02:00
Hidde Beydals 42706a342b Calculate checksums during file writes 2020-09-10 13:00:08 +02:00
Hidde Beydals 1ab12869ac Make storage file writes atomic 2020-09-10 12:02:32 +02:00
Hidde Beydals d4830bc0f7
Merge pull request #137 from fluxcd/use-pkg-for-runtime-bits
Use pkg/runtime for predicate and logger
2020-09-09 20:54:41 +02:00
Michael Bridgen 901463eaaa Use pkg/runtime for predicate and logger 2020-09-09 17:57:16 +01:00
Hidde Beydals 783892bd3a
Merge pull request #136 from fluxcd/artifact-local-path
storage: actually record relative path in artifact
2020-09-09 17:08:37 +02:00
Hidde Beydals 68ccf2598f storage: actually record relative path in artifact 2020-09-09 16:32:25 +02:00
Stefan Prodan 255d0b7c16
Merge pull request #135 from fluxcd/info-log
Configure manager logging and set level to info
2020-09-09 15:38:03 +03:00
stefanprodan 86c8b0c9bd Configure manager logging and set level to info 2020-09-09 15:22:03 +03:00
Hidde Beydals ec51edae43
Merge pull request #134 from fluxcd/artifact-api-improvements 2020-09-09 14:10:33 +02:00
Hidde Beydals 68947cfca6 controllers: resolve issue with gc on delete
When a delete of a resource is requested a `deletionTimestamp` is set
on the resource by the requester, this also results in a generation
change of the resource.

If the resource is under reconciliation while this timestamp is set, and
had not produced an artifact earlier on, this becomes a problem as the
artifact metadata is used to determine what should be garbage collected
on a deletion, resulting in stray files for resources that are no longer
present.

To resolve this for now, we always create a new artifact object for the
resource when `all==true` on the GC method call, and no longer rely on
the presence of the artifact object on the resource itself.
2020-09-09 13:41:56 +02:00
Hidde Beydals 99b74da044 api/artifact: add checksum field to artifact
This includes a change to how the revision for HelmRepository sources is
recorded, as this will now equal to the generated timestamp from the index
in RFC3339Nano format.
2020-09-09 13:41:56 +02:00
Hidde Beydals 0b752178b1 storage: only store relative path in artifact
As the storage base directory is determined during runtime, and
artifacts may live longer than that if they are e.g. stored in a
persistent volume but the mount path configuration changes.
2020-09-08 17:21:56 +02:00
Hidde Beydals f8c4bd31ca api/artifact: add ArtifactDir helper func
To make it easier to construct just the directory path for the
artifact (relative to the storage base path).
2020-09-08 15:16:58 +02:00
Stefan Prodan ecaa98012f
Merge pull request #132 from fluxcd/release-v0.0.14
Release v0.0.14
2020-09-04 15:54:09 +03:00
stefanprodan 5126da855e Release v0.0.14 2020-09-04 15:41:12 +03:00
Hidde Beydals 0ff76c49fb
Merge pull request #129 from fluxcd/doc/spec-helmchart-example
doc/spec: update HelmChart examples
2020-09-04 14:37:29 +02:00
Hidde Beydals ce1b80e122 spec: update HelmChart examples 2020-09-04 14:25:58 +02:00
Stefan Prodan ed27b24fca
Merge pull request #130 from fluxcd/arm64
Publish amd64/arm64 images to GHCR
2020-09-04 13:54:28 +03:00
stefanprodan d927a1e4aa Publish amd64/arm64 images to GHCR 2020-09-04 13:41:50 +03:00
Hidde Beydals a266bd5f99
Merge pull request #128 from fluxcd/upgrade-helm-dep
Upgrade Helm dependency
2020-09-02 12:43:18 +02:00
Hidde Beydals 8f08ce20a4 Upgrade Helm dependency
* helm.sh/helm/v3 to v3.3.1
2020-09-01 20:32:10 +02:00
Hidde Beydals b29a5b2642
Merge pull request #126 from fluxcd/release-v0.0.13
Release v0.0.13
2020-09-01 17:12:39 +02:00
Hidde Beydals 91fa9acdc3 Release v0.0.13 2020-09-01 16:53:29 +02:00
Hidde Beydals 5e45e54bdf
Merge pull request #125 from fluxcd/bugfix/storage-helm 2020-09-01 16:34:56 +02:00
Hidde Beydals 2c4dcfe72d helmchart: use dir of artifact path on package run 2020-09-01 16:08:20 +02:00
Hidde Beydals b7603f9fd3 storage: change logic of `ArtifactExist` method
Given that:

* The produced artifact as advertisted in the path should always
  be a regular file (including the exclusion of symlinks).
* The produced artifact should be readable, so any type of error
  should count as "does not exist".

We should use `os.Lstat` to not follow symlinks; return `false`
on any error we run in to, or return if the file mode information
reports a regular file.
2020-09-01 16:01:19 +02:00
Hidde Beydals 0ae11b6d3f
Merge pull request #123 from fluxcd/release-v0.0.12
Release v0.0.12
2020-08-31 17:31:12 +02:00
Hidde Beydals c229af95b0 Release v0.0.12 2020-08-31 17:16:32 +02:00
Hidde Beydals c4d9756c01
Merge pull request #117 from fluxcd/helm/charts-from-git
Support Helm charts from GitRepository sources
2020-08-31 16:34:02 +02:00
Hidde Beydals 24f47ac183 Support Helm charts from GitRepository sources 2020-08-31 16:21:53 +02:00
Stefan Prodan 05867db66f
Merge pull request #122 from fluxcd/dns-fix
Add minimal nsswitch.conf
2020-08-31 15:48:24 +03:00
stefanprodan 4e243ca4de Add minimal nsswitch.conf 2020-08-31 15:21:48 +03:00
Stefan Prodan 478c7ece74
Merge pull request #121 from fluxcd/git-example-titles
Add sections to Git examples
2020-08-31 13:32:10 +03:00
stefanprodan 600006293d Add sections to Git examples 2020-08-31 13:17:50 +03:00
Hidde Beydals 3c3d381e4e
Merge pull request #118 from fluxcd/relative-chart-url-fix
Support Helm repository indexes with relative URLs
2020-08-31 10:32:26 +02:00
Hidde Beydals f4d047a4a2 Support Helm repository indexes with relative URLs 2020-08-31 10:18:30 +02:00
Hidde Beydals 3af8670e3f
Merge pull request #119 from fluxcd/helm/semver-ranges 2020-08-31 10:18:03 +02:00
Hidde Beydals f35dcc3656 Upgrade blang/semver from v3.5.0 to v4.0.0
v4.0.0 is fully compatible with Go Modules.
2020-08-31 10:03:47 +02:00
Hidde Beydals d38b8fe193 Support proper semver ranges for Helm charts
This commit changes the semver range parser to `blang/semver`, which
is also used to parse semver tags for GitRepository sources.
2020-08-31 10:03:47 +02:00
Hidde Beydals 25f0552ef9
Merge pull request #116 from fluxcd/git/checkout-semver-fix
Drop single branch strategy for SemVer checkout
2020-08-31 09:58:56 +02:00
Hidde Beydals 668e0223dd Drop single branch strategy for SemVer checkout
As this will result in a checkout failure when the default branch on the
remote is not `master`. Surfaced due to Contour switching from `master` to
`main` overnight.
2020-08-26 11:39:06 +02:00
Stefan Prodan 8950d43799
Merge pull request #114 from fluxcd/logger-pkg
Use logger package from fluxcd/pkg
2020-08-21 12:30:16 +03:00
stefanprodan 227c9c88f9 Use logger package from fluxcd/pkg
Update client-go to v0.18.8 and controller-runtime to v0.6.2
2020-08-21 12:10:01 +03:00
Stefan Prodan 688ca1d863
Merge pull request #113 from fluxcd/fix-kustomization
Remove deprecated bases from default kustomization
2020-08-21 10:58:13 +03:00