Commit Graph

530 Commits

Author SHA1 Message Date
Hidde Beydals c602c5d850
Merge pull request #234 from fluxcd/release-v0.5.2
Release v0.5.2
2020-12-11 14:47:42 +01:00
Hidde Beydals 6520490c62 Release v0.5.2
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-11 14:33:22 +01:00
Hidde Beydals b335878a16
Merge pull request #233 from fluxcd/storage-addr
Allow overwrite of advertised storage addr
2020-12-11 14:20:53 +01:00
Hidde Beydals fa71f3269b Allow overwrite of advertised storage addr
The added `--storage-adv-addr` flag allows overwriting the HTTP address
advertised in the status objects of the sources. This allows for finer
grain configuration in setups where a modified service is used, or where
the DNS resolution differs from the Kubernetes defaults.

When the flag is omitted, an attempt is made to determine the address
based on the configured `--storage-addr` and the `HOSTNAME`.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-11 14:07:27 +01:00
Hidde Beydals 5843c52526
Merge pull request #232 from fluxcd/release-v0.5.1
Release v0.5.1
2020-12-10 00:35:23 +01:00
Hidde Beydals e8888e2896 Release v0.5.1
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-10 00:22:32 +01:00
Philip Laine af4e48937a
Merge pull request #231 from fluxcd/arm-debug
Upgrade to `musl>=1.2.0` to be able to provide ARMv7 build
2020-12-10 00:19:43 +01:00
Hidde Beydals 3feda81109 Tweak `musl` and `libgit2{-dev}` dependencies
* Use semver tidles to deal with future patch releases
* Install just `libgit2` in runtime container
* Add TODO / explanation for `musl` `1.2.x` dependency

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-10 00:05:58 +01:00
Philip Laine 7945f95180 Install musl edge version
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2020-12-10 00:05:50 +01:00
Hidde Beydals 00309185ec
Merge pull request #230 from fluxcd/release-v0.5.0 2020-12-09 21:19:01 +01:00
Hidde Beydals 3fdd95713c Release v0.5.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-09 19:15:20 +01:00
Hidde Beydals 6cc038b20b Remove date from CHANGELOG version titles
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-09 18:55:51 +01:00
Hidde Beydals 3fbc5013fd
Merge pull request #229 from fluxcd/upgrade-deps 2020-12-09 18:42:12 +01:00
Hidde Beydals 830b350339 Upgrade dependencies
* `github.com/fluxcd/pkg/apis/meta` to `v0.5.0`
* `github.com/fluxcd/pkg/helmtestserver` to `v0.1.0`
* `github.com/fluxcd/pkg/runtime` to `v0.4.0`
* `helm.sh/helm/v3` to `v3.4.2`
* `k8s.io/{api,apimachinery,client-go}` to `v0.19.4`
* `sigs.k8s.io/controller-runtime` to `v0.6.4`

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-09 18:22:27 +01:00
Hidde Beydals 010893bb91
Merge pull request #228 from fluxcd/libgit2-from-src 2020-12-09 17:16:10 +01:00
Hidde Beydals 38e2e58c54 Use semver tidle range for `libgit2-dev` package
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-09 17:00:17 +01:00
Hidde Beydals 88c76c50a3 Document how to build libgit2 from source
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-09 17:00:17 +01:00
Hidde Beydals 2dd77724fc
Merge pull request #227 from fluxcd/chart-name-validation
Validate provided name for charts from HelmRepos
2020-12-09 15:53:25 +01:00
Hidde Beydals 5f3c014966 Validate provided name for charts from HelmRepos
Following the rules described in
https://helm.sh/docs/chart_best_practices/conventions/#chart-names.

This guards against people following the wrong guidance of Artifactory,
that supports and promotes repository indexes with e.g. '/' in the
chart names.

In a future version this should be moved to a validation webhook, but
there are still discussions ongoing around the TLS certificates for
this.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-09 15:37:10 +01:00
Philip Laine 86712ff441
Merge pull request #213 from phillebaba/feature/git2go
Add git2go option to enable Azure DevOps
2020-12-08 12:45:43 +01:00
Philip Laine 847499be5e Add libgit2 install instructions
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-12-08 12:09:12 +01:00
Philip Laine f044ebc253 Rename git2go option to libgit2
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-12-06 23:19:57 +01:00
Philip Laine 1b4eacc588 Refactor argument name to enable git2go
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-12-04 10:07:17 +01:00
Philip Laine cb12736a84 Update pkg git server
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-12-03 12:56:38 +01:00
Philip Laine 47e4e54550 Add test to show that libgit2 fails with self signed test
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2020-12-02 23:28:32 +01:00
Philip Laine 6344528e4f Fix smaller issues
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2020-12-02 20:18:29 +01:00
Philip Laine 5ff65d7ae7 Add user support to git2go implementation
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2020-12-02 20:18:29 +01:00
Philip Laine 934f5df668 Remove manifests run on dev deploy
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-12-02 20:18:29 +01:00
Philip Laine 873c349647 Add libgit2 dev dependencies
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-12-02 20:18:29 +01:00
Philip Laine 00b4010096 Add libgit2 to test dockerfile
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-12-02 20:18:29 +01:00
Philip Laine 5da36ec864 Add docs for v2 compatibility
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-12-02 20:18:29 +01:00
Philip Laine 4af072aec0 Generate docs
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-12-02 20:18:29 +01:00
Philip Laine 2cb3754953 Add support for gitv2 servers
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-12-02 20:18:29 +01:00
Michael Bridgen aed11a171f
Merge pull request #222 from fluxcd/flux2-team
Share maintainers from fluxcd/flux2
2020-12-01 13:16:00 +00:00
Michael Bridgen f4dd3308fe Share maintainers from fluxcd/flux2
See https://github.com/fluxcd/flux2/discussions/515.

Signed-off-by: Michael Bridgen <mikeb@squaremobius.net>
2020-12-01 12:20:27 +00:00
Hidde Beydals 34c6c1e5e8
Merge pull request #223 from fluxcd/respect-ssh-user
Respect configured user in SSH Git repository URL
2020-11-30 16:42:49 +01:00
Hidde Beydals 67b10aad22 Respect configured user in SSH Git repository URL
We had a hardcoded assumption that the SSH user for a Git repository is
always "git". This is however not true in all scenarios, for example
when one is making use of Gerrit for team code collaboration, as users
there have their own username for (SSH) Git operations.

This commit changes the logic of the auth strategy helpers to:

1. Select the auth strategy based on the protocol of the parsed URL,
   instead of a simple rely on a correct prefix.
2. Use the user information from the parsed URL to configure the user
   for the public key authentication strategy, with a fallback to `git`
   if none is defined.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-30 16:26:23 +01:00
Stefan Prodan 1ea9999c2c
Merge pull request #219 from relu/gha-golang-container
Use golang image to run tests step
2020-11-28 11:32:37 +02:00
Aurel Canciu 27420c0454
Use golang image to run tests step
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-11-27 15:00:54 +02:00
Hidde Beydals e7acdabc79
Merge pull request #221 from fluxcd/release-v0.4.1
Release v0.4.1
2020-11-26 18:42:45 +01:00
Hidde Beydals 0e44d13870 Release v0.4.1
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-26 18:30:04 +01:00
Hidde Beydals a81e1ed3f9
Merge pull request #220 from fluxcd/req-helmchart-for-helmrepo
List HelmChart for GitRepository change
2020-11-26 18:27:16 +01:00
Hidde Beydals 254de30f6a List HelmChart for GitRepository change
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-26 18:03:04 +01:00
Hidde Beydals 3a3954fd8b
Merge pull request #218 from fluxcd/release-v0.4.0
Release v0.4.0
2020-11-26 15:07:02 +01:00
Hidde Beydals e19bb4e62d Release v0.4.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-26 14:41:56 +01:00
Hidde Beydals 9bd54a76ca
Merge pull request #217 from fluxcd/watch-upstream-chart-sources
Watch chart sources for revision changes
2020-11-26 14:29:45 +01:00
Hidde Beydals 0c904a1879 Watch chart sources for revision changes
To enqueue a new reconciliation for the HelmChart sources as soon as
the revision of their upstream source changes.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-26 13:02:55 +01:00
Stefan Prodan fdbd71b066
Merge pull request #215 from fluxcd/suspend
Implement source suspension
2020-11-26 13:11:40 +02:00
Stefan Prodan 5579dc8c96
Implement source suspension
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-26 12:58:00 +02:00
Stefan Prodan 07d09e2c2e
Add suspend field to Source API
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-26 12:49:12 +02:00