stefanprodan
e92cbbdd45
Migrate to fluxcd/pkg
2020-06-30 17:30:21 +03:00
Hidde Beydals
39ee34897a
Replace tar/gzip shell-out with Go implementation
2020-06-06 19:15:52 +02:00
Hidde Beydals
77822bd4d1
controllers: simple GitRepository test
2020-05-29 14:24:31 +02:00
Hidde Beydals
e880a45474
controllers: control tar ignores w/ exclude files
...
This commit changes the file excludes for tarballs generated for
Git repository artifacts from a fixed set of strings to include
exclusion files files. It currently takes `.sourceignore` and
in the root of the given directory into account.
In addition to this the Git VCS related files that are ignored have
been extended to not only include the .git/ directory, but also the
.gitignore, .gitmodules and .gitattributes files. Mimicking part of
the --exclude-vcs flag not available on all tar versions.
2020-05-13 19:45:31 +02:00
stefanprodan
9540efe9de
git: add archive integrity check
2020-04-27 13:39:36 +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
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
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
786071fe3c
Add symlink helper to storage
2020-04-12 09:56:03 +03:00
stefanprodan
d1f76995ab
Add ready condition helpers
2020-04-10 22:44:09 +03:00
stefanprodan
98deb3fa54
Add file lock helper to Storage
...
- use https://github.com/golang/go/tree/master/src/cmd/go/internal/lockedfile
2020-04-10 16:08:05 +03:00
stefanprodan
9dae1c43d7
Use storage helper in HelmRepositoryReconciler
...
- move checksum and file write operations to Storage
- implement GC
2020-04-10 15:16:31 +03:00
stefanprodan
d1fb8e1ade
Add storage helpers
...
- add storage and artifact types
- extract fs operations to storage functions
- construct artifact paths from Kubernetes objects metadata
2020-04-10 11:51:15 +03:00