Commit Graph

299 Commits

Author SHA1 Message Date
Hidde Beydals f0b9d2e890 Update image-reflector-controller to v0.10.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-10 15:04:34 +02:00
Hidde Beydals c0bcae4f8c Update dependencies
- Go 1.16
- `sigs.k8s.io/controller-runtime` to `v0.9.0`
- `fluxcd/source-controller` to `v0.14.0`
- `fluxcd/pkg/*` to packages compatible with Go 1.16 and
   controller-runtime v0.9.0

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-10 10:40:28 +02:00
Hidde Beydals 7c0bc1c85a
Merge pull request #184 from fluxcd/nightly-builds 2021-06-09 18:56:40 +02:00
Hidde Beydals 9c223fa73c Allow RC releases
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-09 18:41:20 +02:00
Hidde Beydals 373e4dca4d Add nightly builds workflow
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-06-09 18:40:20 +02:00
Stefan Prodan 9ed4051d1e
Merge pull request #182 from fluxcd/go-yaml-update
Update go-yaml with changes to indentation style
2021-06-09 15:59:52 +03:00
Stefan Prodan 30030bbaf0
Update go-yaml with changes to indentation style
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-06-09 10:54:51 +03:00
Stefan Prodan 905a466c2f
Merge pull request #179 from fluxcd/release-v0.11.0
Release v0.11.0
2021-06-02 19:05:52 +03:00
Stefan Prodan 97fba8f7fb
Release v0.11.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-06-02 18:42:08 +03:00
Stefan Prodan abd69661a6
Merge pull request #177 from fluxcd/commit-to-merged-branch
Use libgit2 for clone, fetch, push
2021-06-02 18:09:36 +03:00
Michael Bridgen 7378ad7ae7 Change note regarding git implementation field
The implementation is now ignored, in favour of just using libgit2.

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-06-02 15:00:36 +01:00
Michael Bridgen 0b63def4fd Use libgit2 for clone, fetch, push
source-controller/pkg/git does shallow clones when using the go-git
implementation, and apparently this causes problems when fetching a
branch that has been merged at the origin:

    https://github.com/fluxcd/image-automation-controller/issues/164

So far as I can tell, getting a shallow clone breaks the automation,
no matter whether go-git or libgit2 is used for operations after
cloning. So: just use libgit2 for cloning, which means non-shallow
clones; and, for fetch and push, since there's no functional
difference between the implementations for those.

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-06-02 15:00:36 +01:00
Stefan Prodan f656b847c2
Merge pull request #175 from fluxcd/release-v0.10.1
Release v0.10.1
2021-06-02 13:50:45 +03:00
Stefan Prodan 5fa4817405
Release v0.10.1
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-06-02 13:39:34 +03:00
Stefan Prodan 026271cb44
Merge pull request #174 from fluxcd/go-git-v5.4.2
Update go-git to v5.4.2
2021-06-02 13:36:54 +03:00
Stefan Prodan eabcc43614
Update go-git to v5.4.2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-06-02 13:26:18 +03:00
Hidde Beydals 0ad5d28ec4
Merge pull request #171 from fluxcd/release-v0.10.0
Release v0.10.0
2021-05-26 15:34:55 +02:00
Hidde Beydals 8ef62fabd9 Release v0.10.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-05-26 15:21:47 +02:00
Hidde Beydals 0d71be87f4
Merge pull request #170 from fluxcd/update-api-deps
Update source-controller/api to v0.13.0
2021-05-26 15:16:48 +02:00
Hidde Beydals aad03ca025 Update source-controller/api to v0.13.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-05-26 15:04:20 +02:00
Hidde Beydals e641607028
Merge pull request #169 from fluxcd/update-deps 2021-05-26 15:00:08 +02:00
Hidde Beydals 3a1f6026b8 Switch to `github.com/ProtonMail/go-crypto/openpgp`
As `golang.org/x/crypto/openpgp` has been deprecated (see
https://github.com/golang/go/issues/44226 for details), and this is the
most active/used fork.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-05-26 14:47:27 +02:00
Hidde Beydals d976c904ae Update source-controller to v0.13.0
To pull in Git package changes from
https://github.com/fluxcd/source-controller/pull/365.

Ref: https://github.com/fluxcd/flux2/issues/1443

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-05-26 14:33:24 +02:00
Stefan Prodan b6d767a204
Merge pull request #163 from fluxcd/release-v0.9.1
Release v0.9.1
2021-05-06 16:36:58 +03:00
Stefan Prodan c71ea97d62
Release v0.9.1
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-05-06 16:26:03 +03:00
Stefan Prodan 473e003a71
Merge pull request #162 from fluxcd/fix-image-name-marker
Fix image name marker
2021-05-06 16:02:31 +03:00
Aurel Canciu c3fe4e0a77
Fix resolving image name for marker name attribute
The image name was incorrectly extracted from the given reference,
yielding a trimmed version of the string and breaking the resulting
replacement value.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2021-05-06 15:40:29 +03:00
Aurel Canciu 7ad4047319
Switch to kube-openapi/spec flavor
Upgraded kyaml to v0.10.19

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2021-05-06 14:03:49 +03:00
Hidde Beydals 9280bb05ff
Merge pull request #156 from fluxcd/spec-v1alpha2-change-table
spec: formatting `v1alpha1` -> `v1alpha2` table
2021-04-22 12:30:31 +02:00
Hidde Beydals 4a71491565 spec: formatting `v1alpha1` -> `v1alpha2` table
The previous format seems to have been a mixture of the format accepted
by most Markdown parsers, and the format Org Mode for Emacs likes.

Anyhow, we breathe Markdown.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-04-22 12:15:37 +02:00
Hidde Beydals a5958f289d
Merge pull request #155 from fluxcd/release-0.9.0 2021-04-22 10:52:52 +02:00
Hidde Beydals 5b5da6ba39 Add report, license and release badges to README
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-04-22 10:37:29 +02:00
Hidde Beydals bad04cfbd9 Release v0.9.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-04-22 10:35:48 +02:00
Stefan Prodan c7d35e4fac
Merge pull request #154 from fluxcd/source-controller-v0.12.0
Update source-controller/api to v0.12.0
2021-04-22 11:18:48 +03:00
Stefan Prodan 9e7111be0f
Update source-controller/api to v0.12.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-04-22 10:59:47 +03:00
Stefan Prodan 4068372e2a
Merge pull request #153 from fluxcd/image-policy-v1alpha2
Move to ImagePolicy v1alpha2
2021-04-22 10:20:44 +03:00
Stefan Prodan 833b50fdee
Move to ImagePolicy v1alpha2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-04-22 10:03:22 +03:00
Stefan Prodan 7c39649434
Merge pull request #139 from fluxcd/v1alpha2-api
Add v1alpha2 API version
2021-04-22 09:45:51 +03:00
Michael Bridgen f746a110c2 Add guide to migrating to v1alpha2
This commit adds a step-by-step guide to rewriting specs for v1alpha2.

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-04-13 11:01:45 +01:00
Michael Bridgen b0fc4155fe Write a specification explainer for v1alpha2
This mostly adapts the material in the v1alpha1 spec explainer doc to
the different structure of the v1alpha2 types.

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-04-13 11:01:45 +01:00
Michael Bridgen 1c33a2d45f Generate docs for v1alpha2
This switches the API doc generation from v1alpha1, to v1alpha2.

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-04-13 11:01:45 +01:00
Michael Bridgen ebb2d6abea Use sourcev1.GitRepositoryRef
This changes the API so that the checkout field has a ref, the same as
GItRepository. This means you can check out a branch or a tag or a
particular commit. Most of these won't work unless you supply a branch
to push to as well.

An addtional change is that you can leave out the checkout altogether,
and the ref will default to that given in the GitRepository, or its
default. In the latter case, again you will need to provide a push
branch.

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-04-13 11:01:42 +01:00
Michael Bridgen b28c5ccc04 Split author email and name into separate fields
This is a bit neater to read and write, and since I'm making breaking
changes anyway.

The name is now optional; an email is enough.

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-04-13 10:50:01 +01:00
Michael Bridgen cd8a2e97b8 Flip the controller and tests to API v1alpha2
This finishes the v1alpha2 API, and rewrites everything needed so that
the controller supports it and the tests pass. For the most part, that
is just changing the location of fields. However, there's a few
notable extras:

 - check that the `sourceRef` is a git repo (that's the default), and
   that a `.spec.git` is supplied;

 - change a test that blindly patched an update object, so that it
   first gets the object it's patching. Previously, it succeeded
   because it was OK to patch everything to empty strings, but that's
   no longer the case since SourceReference.Kind is an enum.

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-04-13 10:45:58 +01:00
Michael Bridgen f28a0c40ff Add v1alpha2 API version
This adds a v1alpha2 API, without changing the controller or tests to
use it (yet). The new API has roughly the desired shape, per
https://github.com/fluxcd/flux2/discussions/1124, but supporting only
things that the controller supports now.

It's necessary to give the v1alpha1 type a `storageversion` marker so
that 1. code generation keeps working, and 2. tests still work, since
they still expect v1alphav1 types. v1alpha1 will be removed once the
controller and tests are ported to v1alpha2.

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-04-13 10:30:51 +01:00
Stefan Prodan 448a3135ab
Merge pull request #147 from dholbach/add-cii
add CII badge
2021-04-08 13:58:54 +03:00
Daniel Holbach e0cf208eda add CII badge
ref: https://bestpractices.coreinfrastructure.org/en/projects/4789

Signed-off-by: Daniel Holbach <daniel@weave.works>
2021-04-08 12:22:42 +02:00
Stefan Prodan 3919d11a6b
Merge pull request #145 from fluxcd/release-v0.8.0
Release v0.8.0
2021-04-06 18:43:50 +03:00
Stefan Prodan 1332f65372
Release v0.8.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-04-06 17:27:40 +03:00
Michael Bridgen 2a48f6d3a3
Merge pull request #144 from fluxcd/images-in-templates
Ensure that an unchanged image is not in update result
2021-04-06 12:18:54 +01:00