Commit Graph

426 Commits

Author SHA1 Message Date
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
stefanprodan 87193e1522 Remove deprecated bases from default kustomization 2020-08-21 10:26:46 +03:00
Hidde Beydals 0af4d7212d
Merge pull request #112 from fluxcd/makefile-target-fixes
Make various targets work after api pkg change
2020-08-20 10:53:55 +02:00
Hidde Beydals 157ad2f51a Make various targets work after api pkg change 2020-08-20 10:32:24 +02:00
Hidde Beydals 459d8218f7
Merge pull request #111 from fluxcd/drop-gitkit-pkg-replace
Upgrade fluxcd/pkg/gittestserver to v0.0.2
2020-08-19 10:53:25 +02:00
Hidde Beydals 8ee73572cf Upgrade fluxcd/pkg/gittestserver to v0.0.2
Which allows for the drop of the replace.
2020-08-19 10:40:16 +02:00
Stefan Prodan 2c66d4dd8b
Merge pull request #110 from fluxcd/release-v0.0.10
Release v0.0.10
2020-08-18 14:51:20 +03:00
stefanprodan f47eb995fe Release v0.0.10 2020-08-18 14:40:12 +03:00
Hidde Beydals 7ea5739691
Merge pull request #108 from fluxcd/pkg-testserver 2020-08-18 12:27:46 +02:00
Hidde Beydals 3475d741a3 Switch to dedicated git and helm testserver pkgs 2020-08-18 12:11:29 +02:00
Hidde Beydals 9d947b8efa Use testserver package from fluxcd/pkg 2020-08-18 12:11:29 +02:00
Stefan Prodan 720fef496e
Merge pull request #109 from fluxcd/fix-git-semver
Fix Git semver checkout
2020-08-18 11:51:11 +03:00
stefanprodan 5044d46b81 Fix Git semver checkout 2020-08-18 11:32:42 +03:00
Hidde Beydals c60134a959
Merge pull request #107 from fluxcd/dedicated-api-pkg
Make api package dedicated module
2020-08-17 19:05:15 +02:00
Hidde Beydals b75d613f3a Make api package dedicated module
As other controllers depend on source-controller because of the API
package, but this pulls in obsolete dependencies for the controllers.
By publishing the API package as a dedicated module while
using a (local) replace for the project itself, this should be
prevented.
2020-08-17 17:20:11 +02:00