Commit Graph

896 Commits

Author SHA1 Message Date
Hidde Beydals a1581ec185
Merge pull request #386 from fluxcd/armv7-goldlink-patch
Use Debian instead of Alpine for multi-arch builds
2021-06-17 16:28:39 +02:00
Hidde Beydals 44dd9d7e28
Merge pull request #387 from fluxcd/panic-non-nil-err
Panic on non-nil AddToScheme errors in main init
2021-06-17 16:14:41 +02:00
Hidde Beydals 7e6b88e91c Use Debian instead of Alpine in container image
This commit changes the base image for the build and controller
container images to Debian slim.

Reason for this is that it has proven to be hard to produce working
executables for AMD64, ARM64 and ARMv7 at all times using Alpine,
due to them being dynamically linked and compiled using CGO, and
Alpine having constraints like musl that create an extra barrier,
especially in combination with our exotic set of dependency
constraints.

There are a number of trade-offs we have to live with by doing this,
not limited to:

* An increased build time, the full release pipeline used to take 25-35
  minutes, based on the images we have build for testing purposes this
  seems to have become 35-40 minutes.
* An increased image size of roughly two times the (compressed) size of
  the Alpine based image.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-17 16:12:33 +02:00
Hidde Beydals 896489680e Panic on non-nil AddToScheme errors in main init
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-17 15:38:24 +02:00
Hidde Beydals 3af8962fd8
Merge pull request #382 from fluxcd/unpin-docker-dep
Unpin docker Go Module dependency
2021-06-10 17:57:36 +02:00
Hidde Beydals 2d8a540f0c Unpin docker Go Module dependency
No longer required as we do now depend on Helm v3.6.0, which no longer
pins the version.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-10 16:48:00 +02:00
Hidde Beydals 53ea50f1ba
Merge pull request #380 from fluxcd/patch-changelog
Patchup: add missing bit of text
2021-06-09 16:04:22 +02:00
Hidde Beydals 2e46791d2b Patchup: add missing bit of text
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-09 15:46:19 +02:00
Hidde Beydals d0d2c0e215
Merge pull request #379 from fluxcd/release-v0.14.0
Release v0.14.0
2021-06-09 15:25:23 +02:00
Hidde Beydals ffd018187d Release v0.14.0
This includes the `binutils-gold` patches required to make the Docker
images build properly.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-09 15:03:04 +02:00
Hidde Beydals 7f67fb7b86
Merge pull request #377 from fluxcd/armv7-gold-patch
Use `binutils-gold` in builder image
2021-06-09 14:58:43 +02:00
Hidde Beydals a0c0423acc
Merge pull request #378 from fluxcd/nightly-build-img-name 2021-06-09 13:01:16 +02:00
Hidde Beydals 827509e10f Use `binutils-gold` in builder image
There seems to have been a change in the dependencies that now causes
ARMv7 builds to fail:

```
    sigs.k8s.io/kustomize/kyaml/yaml/merge3=$WORK/b742/_pkg_.a
    sigs.k8s.io/kustomize/kyaml/yaml/internal/k8sgen/pkg/util/errors=$WORK/b678/_pkg_.a
    -importcfg $WORK/b001/importcfg.link -buildmode=exe
-buildid=YHfd11eGufJ7RVGSGz2z/H9JgY3lbjsdhQ8_r06Gz/HiYQEtSgCAIHJ7rrNYN6/YHfd11eGufJ7RVGSGz2z
-extld=gcc $WORK/b001/_pkg_.a
    exit status 1
    -c CGO_ENABLED=1 go build -x -o source-controller main.go]: exit
code: 2
```

After trying various things, including downgrading Go, using
packages from `edge`, using `gcc-go` to get a "grouped" version of
the dependencies, it seems that using `binutils-gold` solves the issue
and produces a working build for all our target architectures.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-09 12:59:20 +02:00
Hidde Beydals 8acb8cd688 Use `github.repository` property for image name
As the `github.event.repository.name` property is not always available,
for example when the action gets triggered by a cron job.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-09 11:49:20 +02:00
Stefan Prodan 39e9602ada
Merge pull request #376 from fluxcd/nightly-builds
Add nightly builds workflow
2021-06-08 20:58:47 +03:00
Stefan Prodan 203263fcfd
Add nightly builds workflow
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-06-08 19:42:46 +03:00
Hidde Beydals 1aa997cb3c
Merge pull request #375 from fluxcd/release-v0.14.0
Release v0.14.0
2021-06-08 14:48:37 +02:00
Hidde Beydals 3c1a27a7c3 Release v0.14.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-08 14:19:05 +02:00
Hidde Beydals 1c08b176f0
Merge pull request #374 from fluxcd/dep-update
Update K8s, controller-runtime and fluxcd/pkg deps
2021-06-08 14:06:47 +02:00
Hidde Beydals a76b10cebb Update K8s, controller-runtime and fluxcd/pkg deps
Controller-runtime has been updated to `v0.9.0`, K8s dependencies to
`v0.21.1`, and all `fluxcd/pkg` and other dependencies to the versions
that have matching dependencies and/or build constraints.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-08 13:41:34 +02:00
Stefan Prodan bfd72479a6
Merge pull request #372 from fluxcd/git-timeout
Reinstate Git cloning timeout
2021-06-02 17:59:06 +03:00
Stefan Prodan b8128cf58b
Reinstate Git cloning timeout
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-06-02 14:21:29 +03:00
Hidde Beydals 4087834e8e
Merge pull request #371 from fluxcd/release-v0.13.2
Release v0.13.2
2021-06-02 12:22:48 +02:00
Hidde Beydals bbbb3174cd Release v0.13.2
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-02 12:03:26 +02:00
Hidde Beydals c251785f69
Merge pull request #370 from fluxcd/go-git-patch 2021-06-02 12:02:26 +02:00
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