Commit Graph

1121 Commits

Author SHA1 Message Date
Stefan Prodan 2819924c78
Add e2e tests for large Git repositories
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-06-02 12:45:38 +03:00
Hidde Beydals e1682da795 Update go-git to v5.4.2
This should resolve `object not found` and
`empty git-upload-pack given` errors that were thrown for Git
repositories that used to work fine before the `v0.13.0` release.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-02 11:20:23 +02:00
Stefan Prodan b1eac92dfb
Merge pull request #368 from fluxcd/release-v0.13.1
Release v0.13.1
2021-05-28 11:32:22 +03:00
Stefan Prodan b3aa9548ec
Release v0.13.1
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-05-28 11:17:27 +03:00
Stefan Prodan 48efbd1a43
Merge pull request #367 from fluxcd/fix-include
Fix GitRepository include for nested paths
2021-05-28 10:30:45 +03:00
Stefan Prodan add5444f16
Fix GitRepository include for nested paths
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-05-28 01:17:40 +03:00
Stefan Prodan fd636d6c39
Merge pull request #366 from fluxcd/release-v0.13.0
Release v0.13.0
2021-05-26 15:01:58 +03:00
Stefan Prodan 145a82a429
Release v0.13.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-05-26 14:45:14 +03:00
Stefan Prodan 909d98b9bc
Merge pull request #365 from fluxcd/go-git-v5.4.1
Update Git packages
2021-05-26 14:22:27 +03:00
Stefan Prodan 4f5b958806
Update libgit2/git2go to v31.4.14
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-05-26 14:08:01 +03:00
Stefan Prodan 79b180376d
Update go-git to v5.4.1
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-05-26 14:06:41 +03:00
Philip Laine 2dc713258d
Merge pull request #348 from fluxcd/feature/include-source
Add include property to GitRepositories
2021-05-11 17:23:35 +02:00
Philip Laine fcf7048992 Add include property to GitRepositories
Signed-off-by: Philip Laine <philip.laine@gmail.com>
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2021-05-11 09:46:50 +02:00
Hidde Beydals 16c9af5261
Merge pull request #358 from fluxcd/release-v0.12.2
Release v0.12.2
2021-05-10 16:30:28 +02:00
Hidde Beydals ba5bd31572 Release v0.12.2
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-05-10 16:14:52 +02:00
Hidde Beydals 347f5773eb
Merge pull request #356 from fluxcd/split-bucket-path 2021-05-06 10:42:18 +02:00
Hidde Beydals 67ebe24873 Split bucket item key by `/` to satisfy matcher
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-04-30 19:40:32 +02:00
Hidde Beydals de775f6b17
Merge pull request #352 from fluxcd/release-v0.12.1
Release v0.12.1
2021-04-23 11:49:26 +02:00
Hidde Beydals fe995a74bf Release v0.12.1
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-04-23 11:35:34 +02:00
Hidde Beydals a6f3458f06
Merge pull request #351 from fluxcd/fix-ignore-domain-gitrepo
Configure ignore domain for GitRepository rules
2021-04-23 11:25:23 +02:00
Hidde Beydals 8c27e0ad5a Configure ignore domain for GitRepository rules
Unlike Bucket resources which are matched by key as presented by S3,
ignore rules for GitRepository objects do have a domain: the temporary
directory of the Git repository.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-04-23 11:01:15 +02:00
Stefan Prodan 14cf3489f9
Merge pull request #347 from fluxcd/release-v0.12.0
Release v0.12.0
2021-04-21 18:11:28 +03:00
Stefan Prodan bd0f1fdd19
Release v0.12.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-04-21 17:57:50 +03:00
Stefan Prodan b5b9cb4565
Merge pull request #345 from fluxcd/empty-chart-fix
Write chart data on identitical values overwrite
2021-04-21 16:05:29 +03:00
Hidde Beydals 917300dc79 Write chart data on identitical values overwrite
This likely happened because the byte buffer response was already
being read by the chart loader, making it empty by the time the
artifact was written to storage.

As an alternative, and because it makes the code a tiny bit less
obnoxious: write the data to a temp file first, and later decide
what file to copy over and use as an stored artifact.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-04-21 14:50:03 +02:00
Stefan Prodan c60e31eefc
Merge pull request #344 from fluxcd/runtime-v0.11
Update fluxcd/pkg/runtime to v0.11.0
2021-04-21 15:32:49 +03:00
Stefan Prodan cb491c9f10
Update fluxcd/pkg/runtime to v0.11.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-04-21 15:04:16 +03:00
Stefan Prodan 82fdc24363
Merge pull request #339 from SomtochiAma/private-keyy-passwd
Switch to `crypto/ssh` for parsing of private keys
2021-04-19 18:22:11 +03:00
Somtochi Onyekwere ee43942afb Test for Method fails with some private keys
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-04-19 15:58:18 +01:00
Hidde Beydals f56c96fff6
Merge pull request #305 from arbourd/values-files 2021-04-19 15:31:53 +02:00
Dylan Arbour 4a834e1d2d Add `ValuesFiles` to HelmChart spec
Signed-off-by: Dylan Arbour <arbourd@users.noreply.github.com>
2021-04-19 09:16:53 -04:00
Stefan Prodan 3508bc3e6e
Merge pull request #342 from fluxcd/fluxcd/pkg/runtime-v0.10.2
Update fluxcd/pkg/runtime to v0.10.2
2021-04-19 16:14:23 +03:00
Stefan Prodan 51a62a6043
Update fluxcd/pkg/runtime to v0.10.2
Followup: https://github.com/fluxcd/pkg/pull/96

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-04-19 15:05:40 +03:00
Hidde Beydals 08afc35b19
Merge pull request #334 from abhinav454/patch-1 2021-04-15 16:19:23 +02:00
abhinav454 ae24285596 Add shortNames to api resources
Signed-off-by: abhinav454 <43758739+abhinav454@users.noreply.github.com>
2021-04-15 09:03:56 -04:00
Stefan Prodan e0e5672ef3
Merge pull request #340 from fluxcd/helm-v3.5.4
Update Helm to v3.5.4
2021-04-15 13:03:49 +03:00
Stefan Prodan d7c90a533d
Update Helm to v3.5.4
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-04-15 11:57:01 +03:00
Hidde Beydals 1494626396
Merge pull request #337 from fluxcd/efficient-bucket-download 2021-04-14 10:17:50 +02:00
Hidde Beydals d3bcc6a66b Update Go to 1.16
This commit updates Go to 1.16, a required change because of the use of
`os.WriteFile` in one of the tests introduced by commit
b5004a93bc.

Normally _just_ this would not justify the change, but given the
introduction of breaking changes (and thereby forcing a MINOR update
anyway), and the various file{system, path} improvements introduced in
Go 1.16 like
[`filepath#WalkDir`](https://golang.org/pkg/path/filepath/#WalkDir),
going ahead with this should be fine.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-04-13 16:35:41 +02:00
Hidde Beydals b5004a93bc Make Storage#Archive file filtering configurable
This commit makes the filtering applied during the archiving
configurable by introducing an optional `ArchiveFileFilter`
callback argument and a `SourceIgnoreFilter` implementation.

`SourceIgnoreFilter` filters out files matching
sourceignore.VCSPatterns and any of the provided patterns.
If an empty gitignore.Pattern slice is given, the matcher is set to
sourceignore.NewDefaultMatcher.

The `GitRepository` now loads the ignore patterns before archiving
the repository contents by calling `sourceignore.LoadIgnorePatterns`
and other helpers. The loading behavior is **breaking** as
`.sourceignore` files in the (subdirectories of the) repository are
now still taken into account if `spec.ignore` for a resource is
defined, overwriting is still possible by creating an overwriting
rule in the `spec.ignore` of the resource.

This change also makes it possible for the `BucketReconciler` to not
configure a callback at all and prevent looking for ignore
matches twice. To finalize the bucket refactor, a change to the
reconciler has been made to look for a `.sourceignore` file in
the root of the bucket to provide an additional way of configuring
(global) exclusions.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-04-13 15:34:20 +02:00
Hidde Beydals cca2c4a362 Check ignore matches before Bucket item downloads
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-04-13 15:34:20 +02:00
Hidde Beydals 069328990c
Merge pull request #338 from SomtochiAma/private-keyy-passwd 2021-04-12 17:44:36 +02:00
Somtochi Onyekwere d3d1917e5e Add tests for libgit2
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-04-12 16:31:42 +01:00
Somtochi Onyekwere e82c8e8b70 Use password in git method for secret
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2021-04-12 15:52:51 +01:00
Hidde Beydals 47492c40df
Merge pull request #332 from arbourd/add-values-test 2021-04-09 08:09:45 +02:00
Dylan Arbour c0bd4ab7d0 Test values overrides
Adds a test that loads the helmChart from the updated resource and
verifies that `testOverride` (the value overrode in the test fixtures)
changes from `false` to `true`.

Signed-off-by: Dylan Arbour <arbourd@users.noreply.github.com>
2021-04-08 18:57:05 -04:00
Stefan Prodan 6f0825c002
Merge pull request #335 from dholbach/add-cii
add CII badge
2021-04-08 13:57:19 +03:00
Daniel Holbach 81199ac30e add CII badge
ref: https://bestpractices.coreinfrastructure.org/en/projects/4786

Signed-off-by: Daniel Holbach <daniel@weave.works>
2021-04-08 12:13:56 +02:00
Stefan Prodan 971dcf410e
Merge pull request #330 from fluxcd/release-v0.11.0
Release v0.11.0
2021-03-31 18:31:22 +03:00
Stefan Prodan 89c37039fb
Release v0.11.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-03-31 17:42:40 +03:00