Commit Graph

123 Commits

Author SHA1 Message Date
Hidde Beydals 920d37fcda api: add timeout field to GitRepositorySpec
This commit adds a timeout field to the GitRepositorySpec to be used
during the git clone operation when reconciling the resource.
When no interval is defined the default timeout returned by the getter
is 20 seconds.

The timeout can not be added yet to the Helm related sources as it
is currently not possible to inject anything custom into the HTTP
client from the Helm HTTP getter except for the authentication
options built in. A submit has been submitted to make this possible
and is waiting for review.

This commit includes some context changes to the other reconcilers
to tidy them up and make them depend on a single background context.

It also includes some added docblocks that crossed my path.
2020-04-22 11:42:27 +02:00
Hidde Beydals 2f1390dda3
Merge pull request #28 from fluxcd/helmchart-tests 2020-04-17 20:55:07 +02:00
Hidde Beydals 236a6950cd controllers: test HelmChart missing HelmRepository 2020-04-17 20:39:33 +02:00
Hidde Beydals 7e7f1ccd89 controllers: test HelmChart secretKey usage 2020-04-17 20:29:45 +02:00
Hidde Beydals d36efa70dd controllers: slightly restructure HelmRepository tests 2020-04-17 19:21:55 +02:00
Hidde Beydals 6083d886ce controllers: add HelmChart reconciler tests 2020-04-17 19:21:48 +02:00
Hidde Beydals d3bc7472ab
Merge pull request #17 from fluxcd/controller-tests 2020-04-17 12:36:29 +02:00
Hidde Beydals 31656c2d62 controllers: test HelmRepository invalid URL 2020-04-17 12:26:42 +02:00
Hidde Beydals 8f09c453ab controllers: test HelmRepository missing secretRef 2020-04-17 12:17:04 +02:00
Hidde Beydals 3c70c8d333 controllers: test HelmRepository TLS auth 2020-04-17 10:41:24 +02:00
Hidde Beydals 1cc6464b73 controllers: test HelmRepository HTTP basic auth 2020-04-17 10:36:24 +02:00
Hidde Beydals a50ea436fa controllers: basic HelmRepository reconciler tests 2020-04-17 10:35:52 +02:00
stefanprodan 379729cb8b ci: Extract tag from GITHUB_REF 2020-04-16 14:55:55 +03:00
Stefan Prodan d14492bff4
Merge pull request #26 from fluxcd/release-v0.0.1-alpha.1
Release v0.0.1-alpha.1
2020-04-16 14:34:07 +03:00
stefanprodan 7c35de918d Release v0.0.1-alpha.1 2020-04-16 14:12:38 +03:00
Stefan Prodan ecc2c62ed7
Merge pull request #3 from fluxcd/spec-v1alpha1
Add source API spec v1
2020-04-16 13:27:40 +03:00
Hidde Beydals 000bf41dc2 Address comments 2020-04-16 13:12:27 +03:00
Hidde Beydals 8b4432fc5c Add impact to Helm Operator 2020-04-16 13:12:27 +03:00
stefanprodan 0084e56971 Add impact to Flux
- reword motivation by squaremo
2020-04-16 13:12:27 +03:00
stefanprodan 7323a45504 Add signature verification to Git spec 2020-04-16 13:12:27 +03:00
Hidde Beydals 51f82e72a8 Drop interval fallback for HelmChart 2020-04-16 13:12:27 +03:00
Hidde Beydals e0eb330d42 Add source interface spec 2020-04-16 13:12:27 +03:00
Hidde Beydals e002278e35 Improve comments 2020-04-16 13:12:27 +03:00
Hidde Beydals 55a6d5811e Move HelmChart spec to individual document 2020-04-16 13:12:27 +03:00
stefanprodan 086f6a350a Remove insecure TLS option for Helm spec 2020-04-16 13:12:27 +03:00
stefanprodan a490b25647 Add wait for condition example 2020-04-16 13:12:27 +03:00
stefanprodan 6baaa34b0a Add source synchronization to common spec 2020-04-16 13:12:27 +03:00
stefanprodan 44a5f21f3b Add link to semver ranges 2020-04-16 13:12:27 +03:00
stefanprodan fee4c261c6 Add artifact type to source status API 2020-04-16 13:12:27 +03:00
stefanprodan 1e5765ba4f Add condition reasons and auth required fields 2020-04-16 13:12:27 +03:00
Hidde Beydals 52a2ae80d1 Draft HelmRepository and HelmRelease specs 2020-04-16 13:12:27 +03:00
stefanprodan 134633266a Add semver automation motive 2020-04-16 13:12:27 +03:00
Stefan Prodan a9a73301dd Fix typos
Co-Authored-By: Michael Bridgen <michael@weave.works>
2020-04-16 13:12:27 +03:00
stefanprodan 6a1d0409cb Change the manifests transformation scope 2020-04-16 13:12:27 +03:00
stefanprodan 5ca2f9a4c9 Fix known_hosts typo in spec 2020-04-16 13:12:27 +03:00
stefanprodan 424c1cc097 Add commit pinning option to Git repository API 2020-04-16 13:12:27 +03:00
stefanprodan b4b85029fb Add source API spec proposal 2020-04-16 13:12:27 +03:00
Hidde Beydals 96c7ad502c
Merge pull request #25 from fluxcd/check-nil-cleanup
controllers: check if != nil before defering
2020-04-16 11:24:21 +02:00
Hidde Beydals ab3879d170 controllers: check if != nil before defering 2020-04-16 11:11:51 +02:00
Stefan Prodan 47c7197dfa
Merge pull request #24 from fluxcd/local-run
Fix http file server address on localhost
2020-04-15 13:13:37 +03:00
stefanprodan 521bae36dd Fix http file server address for local run
- use storage port in the artifacts URL
- create bin dir for local run
2020-04-15 12:42:53 +03:00
Stefan Prodan 1e3bc471d5
Merge pull request #23 from fluxcd/signature-verification
gitrepository: Implement PGP signature verification
2020-04-14 18:47:24 +03:00
stefanprodan 40c1851ffc Add verification failed reason 2020-04-14 18:35:23 +03:00
Stefan Prodan 440c70d010 Fix public key naming
Co-Authored-By: Hidde Beydals <hiddeco@users.noreply.github.com>
2020-04-14 18:26:59 +03:00
stefanprodan 96e289fda0 Implement PGP signature verification
- check if HEAD commit is PGP signed
- load GPG public keys from Kubernetes secret
- verify PGP signature
2020-04-14 18:25:25 +03:00
stefanprodan 8d67f3360b Add PGP signature verification to API 2020-04-14 18:25:25 +03:00
Hidde Beydals 00b494e024
Merge pull request #20 from fluxcd/api-matches-spec
api: corrections to match v1alpha1 spec
2020-04-14 17:06:07 +02:00
Hidde Beydals dbe3f4fa9c api: corrections to match v1alpha1 spec 2020-04-14 13:34:38 +02:00
Hidde Beydals 45da46216c
Merge pull request #21 from fluxcd/log-context
Use same logger during reconcile operations
2020-04-14 12:08:53 +02:00
Stefan Prodan c7dc608a59
Merge pull request #22 from fluxcd/source-interface
Introduce source interface
2020-04-14 12:58:09 +03:00