Commit Graph

232 Commits

Author SHA1 Message Date
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
stefanprodan 1832b2d11d Introduce source interface
- add source interface with `GetArtifact` and `GetInterval` funcs
- implement source interface for all types
- fix HelmChart requeue
2020-04-14 12:49:31 +03:00
Hidde Beydals dd688879ee Get message from truely ready conditions only 2020-04-14 11:36:50 +02:00
Hidde Beydals b0f4908af0 Use same logger during reconcile operations 2020-04-14 11:36:46 +02:00
Stefan Prodan 95acc78577
Merge pull request #19 from fluxcd/e2e-check-dirty
ci: Check if working tree is dirty
2020-04-13 20:50:32 +03:00
stefanprodan 71272ef7d9 ci: use go 1.14 2020-04-13 20:40:36 +03:00
stefanprodan 3bd15423e4 ci: Check if working tree is dirty
- run unit tests in a dedicated CI step
- check if working tree is dirty and fail CI build
2020-04-13 20:23:58 +03:00
Stefan Prodan 0e4e3cd660
Merge pull request #18 from fluxcd/artifact-path
Change artifact path format
2020-04-13 20:23:24 +03:00
stefanprodan e88d7219ca Change artifact path format
- move artifact path composition to API
- change path format to `<source-kind>/<source-namespace>/<source-name>/<artifact-filename>`
2020-04-13 19:52:30 +03:00
Hidde Beydals 041bb23c7a
Merge pull request #16 from fluxcd/internal-tests
internal: Helm and Git authentication helper tests
2020-04-13 18:00:54 +02:00
Stefan Prodan 0e82a434d8
Merge pull request #15 from fluxcd/ci-release
ci: Add release workflow
2020-04-13 18:54:13 +03:00
Hidde Beydals 582dfb234d internal/helm: add tests for getter helpers 2020-04-13 17:50:48 +02:00
stefanprodan caedca3598 ci: Add release workflow
- create GitHub release and link to changelog
- build and push container image to Docker Hub
- build kustomization and upload asset to GitHub release
2020-04-13 18:28:22 +03:00
Hidde Beydals 594cfd0b13 internal/git: add tests for auth method helpers 2020-04-13 16:51:24 +02:00
Hidde Beydals f8e0685af1
Merge pull request #14 from fluxcd/git-auth-helper
Internal helpers for Git auth methods from secrets
2020-04-13 13:44:00 +02:00
Hidde Beydals 9696bf7f29
Merge pull request #13 from fluxcd/helmchart-ownership
Set owner ref to HelmRepository on HelmChart
2020-04-13 13:41:28 +02:00
Hidde Beydals 90348ebf08 Internal helpers for Git auth methods from secrets 2020-04-13 13:19:23 +02:00
Hidde Beydals 23f0b38ac2 Add helmchart/finalizers RBAC rule for OpenShift 2020-04-13 13:12:41 +02:00
Hidde Beydals 194371c4c0 Set owner ref to HelmRepository on HelmChart 2020-04-13 12:29:13 +02:00
Hidde Beydals b7897b7144
Merge pull request #9 from fluxcd/helm-auth
Helm repository and chart HTTP and TLS auth
2020-04-13 11:58:04 +02:00
Hidde Beydals ea610829c3 Helm repository and chart HTTP and TLS auth 2020-04-13 11:47:51 +02:00
Stefan Prodan 580574dffc
Merge pull request #12 from fluxcd/gc-predicate
Move artifact gc to delete event predicate
2020-04-13 11:48:25 +03:00
Stefan Prodan 657b59223d
Merge pull request #11 from fluxcd/governance
Governance files
2020-04-13 11:47:57 +03:00
Hidde Beydals 1b391f4896 Move artifact gc to delete event predicate 2020-04-13 01:35:44 +02:00
Hidde Beydals 629da726c6 Rename RepositoryChange to SourceChange predicate 2020-04-13 01:11:07 +02:00
Hidde Beydals cf0261190c Add governance files like DCO, MAINTAINERS, CoC 2020-04-12 23:54:35 +02:00
Hidde Beydals e9c3aab0c3
Merge pull request #10 from fluxcd/factor-out-ctrl-kind
Factor out kind injection into controllers
2020-04-12 23:23:36 +02:00
Hidde Beydals 4bde6bf880 Prevent delete from wiping all artifacts for kind 2020-04-12 22:07:57 +02:00
Hidde Beydals 3e0810aefe Give namespace precedence in calc artifact path 2020-04-12 22:07:57 +02:00
Hidde Beydals 7e99998c5f Factor out injection of kind string in controllers 2020-04-12 22:07:53 +02:00
Hidde Beydals bb8ec6e328
Merge pull request #7 from fluxcd/helmchart
Introduce HelmChart API and controller
2020-04-12 18:55:44 +02:00
Hidde Beydals d378bd1852 Introduce HelmChart API and controller
- Add the HelmChart types and controller
- Semver expressions are found by utilizing Helm repository index
  helpers. As Helm makes use of `masterminds/semver`, the support
  for i.e. ranges less mature than the `GitRepository` implementation.
- Recorded semver is as defined in the metadata of the chart. The
  used name for the artifact does however include the checksum of the
  chart archive, as chart maintainers may not always properly apply
  semver.
- Switches to `sigs.k8s.io/yaml` for YAML operations as this among
  other things is able to properly unmarshal embedded structures.
- Directly requeues on transient errors instead of using the defined
  interval as a back-off strategy is applied on repeated failures.
2020-04-12 18:44:37 +02:00
Stefan Prodan 7a80807893
Merge pull request #8 from fluxcd/artifact-status
Add artifact type to API
2020-04-12 18:21:13 +03:00
stefanprodan f9a35a6613 Move status condition helpers to API 2020-04-12 18:12:28 +03:00
stefanprodan 2bbcd91544 Add artifact to Git and Helm repos status
- create index.yaml symlink for Helm repos
- set symlink URL in status
2020-04-12 17:39:07 +03:00
stefanprodan 461c015273 Add artifact type to API 2020-04-12 17:31:25 +03:00
Stefan Prodan fa6bccbc72
Merge pull request #6 from fluxcd/git-auth
Implement Git authentication
2020-04-12 17:30:07 +03:00
stefanprodan 41d36f54ae Wrap errors in git controller 2020-04-12 17:13:50 +03:00
stefanprodan 12d25ca47a Add symlink for latest Git artifact 2020-04-12 09:56:52 +03:00
stefanprodan 786071fe3c Add symlink helper to storage 2020-04-12 09:56:03 +03:00
stefanprodan 06af12739d Implement Git SSH authentication 2020-04-11 21:30:39 +03:00
stefanprodan bbc25c3de0 Implement Git HTTP authentication 2020-04-11 12:14:16 +03:00