Stefan Prodan
acc95d8c50
Add upstream source and revision to logs and events
...
Enrich the successful reconciliation event message with the upstream opencontainers annotations
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-02 13:11:15 +03:00
Stefan Prodan
799d7df457
Add filter option when running tests
...
Allow running specific controller tests by specifying a prefix e.g.
GO_TEST_PREFIX=TestOCI make test-ctrl
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-02 13:11:12 +03:00
Somtochi Onyekwere
25b88256ef
Add tests for reconcile delete
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2022-08-02 13:11:08 +03:00
Somtochi Onyekwere
eb40efea1c
reconcile artifact
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2022-08-02 13:07:08 +03:00
Somtochi Onyekwere
648beef063
Add test for reconcileArtifact
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2022-08-02 13:07:08 +03:00
Somtochi Onyekwere
e42e9d086c
Add tests for getArtifactURL
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2022-08-02 13:07:08 +03:00
Somtochi Onyekwere
b072d78874
Add tests for oci controller
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2022-08-02 13:07:07 +03:00
Stefan Prodan
05f9c0ee2b
Add the OCI metadata to the internal artifact
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-02 13:07:07 +03:00
Stefan Prodan
5072091eb5
Remove the default tag value from the CRD
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-02 13:07:07 +03:00
Stefan Prodan
ada42eeaa7
Remove `spec.verify` from the API
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-02 13:07:07 +03:00
Stefan Prodan
4b0729203b
Add OCIRepository API spec to docs
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-02 13:07:07 +03:00
Stefan Prodan
9a6ff19487
Normalise error messages
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-02 13:07:07 +03:00
Rashed Kamal
942d92834b
OCIRepository client cert auth
...
Signed-off-by: Rashed Kamal <krashed@vmware.com>
2022-08-02 13:07:07 +03:00
Stefan Prodan
4506acb9d6
Use the internal pkg to handle errors
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-02 13:07:06 +03:00
Stefan Prodan
ded0c2d78b
Add `oci://` prefix
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-02 13:07:06 +03:00
rashedkvm
c9f5af7ddc
Implements basic auth with static credentials OCIRepository
...
Signed-off-by: rashedkvm <krashed@vmware.com>
2022-08-02 13:07:06 +03:00
Stefan Prodan
768adc2dd9
Implement OCIRepository ref.semver
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-02 13:07:06 +03:00
Stefan Prodan
07466730c0
Implement OCIRepository controller for public repos
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-02 13:07:06 +03:00
Stefan Prodan
46fe7a389c
Add OCIRepository kind to v1beta2 API
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-02 13:07:05 +03:00
Stefan Prodan
b1a494993a
Merge pull request #786 from fluxcd/update/azure-sdk
...
Update Azure Go SDK
2022-08-02 11:33:42 +03:00
Philip Laine
0d633470eb
Update Azure Go SDK
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2022-08-01 23:53:53 +02:00
Philip Laine
fdf6b01817
Update Azure Go SDK
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2022-08-01 12:27:01 +03:00
Stefan Prodan
574bb4c5c5
Merge pull request #853 from pjbgf/remove-musl
...
Remove MUSL and enable threadless libgit2 support
2022-08-01 12:03:03 +03:00
Paulo Gomes
f51f9d3305
Remove MUSL and enable threadless libgit2 support
...
Use of MUSL was a temporary solution to mitigate cross-platform
issues while building openssl and libssh2. Since Unmanaged transport has
been deprecated, openssl and libssh2 dependencies are no longer required
and by extension MUSL.
Enables libgit2 threadless support and provides a regression assurance
for fluxcd/image-automation-controller#339 .
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-31 18:38:27 +01:00
Stefan Prodan
d9dfb9d79a
Merge pull request #816 from fluxcd/go-1-18
...
Upgrade to Go 1.18
2022-07-27 19:35:58 +03:00
Stefan Prodan
f2772eb9d3
Update Go to 1.18 in CI
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-07-27 19:02:19 +03:00
Philip Laine
b47d468e8f
Upgrade to go 1.18
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2022-07-27 19:02:13 +03:00
Sunny
b7aa05ce66
Merge pull request #852 from fluxcd/cherry-pick-rel-v0.25.11
...
cherry-pick #851
2022-07-27 21:23:47 +05:30
Sunny
24df01c0ce
Release v0.25.11
...
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-07-27 21:08:52 +05:30
Stefan Prodan
02874571d5
Merge pull request #848 from souleb/merge-helmchart-reconcile-test
...
Merge HelmChart Reconcile tests
2022-07-27 17:02:25 +03:00
Soule BA
fba6477bc3
Merge HelmChart Reconcile tests
...
If implemented this merges
TestHelmChartReconciler_reconcileFromHelmRepository and
TestHelmChartReconciler_Reconcile
Signed-off-by: Soule BA <soule@weave.works>
2022-07-27 14:06:23 +02:00
Max Jonas Werner
5a036da87d
Merge pull request #846 from fluxcd/conditionally-fetch-oci-tags
...
Don't fetch tags when exact version is specified in `HelmChart`
2022-07-27 14:00:34 +02:00
Max Jonas Werner
b86572b98e
don't fetch tags when exact version is used in HelmRepository
...
Taking this shortcut has two benefits:
1. It allows charts to be fetched from AWS's public container registry
at public.ecr.aws
2. It makes reconciling a HelmChart faster by skipping one or more
potentially expensive API calls to the registry.
I adapted the unit tests to the new behavior that the
OCIChartRepository doesn't fail anymore for the case where a specific
chart version has been requested that doesn't actually exist in the
registry.
refs #845
Signed-off-by: Max Jonas Werner <max@e13.dev>
2022-07-27 13:25:43 +02:00
Stefan Prodan
0329b83ed4
Merge pull request #847 from fluxcd/remove-macos-1015
...
remove MacOS 10.15 from testing matrix
2022-07-27 14:04:23 +03:00
Max Jonas Werner
060d52d5f1
remove MacOS 10.15 from testing matrix
...
This version is not supported, anymore. More info at
https://github.com/actions/virtual-environments/issues/5583
Signed-off-by: Max Jonas Werner <max@e13.dev>
2022-07-27 12:21:16 +02:00
Paulo Gomes
cf1a27c0d7
Merge pull request #842 from aryan9600/remove-unmanaged-transport
...
libgit2: upgrade to golang-with-libgit2 v0.1.4
2022-07-26 12:05:30 +01:00
Sanskar Jaiswal
bd37bc3161
build: bump tonistiigi/xx version
...
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-26 15:10:46 +05:30
Sanskar Jaiswal
536bacbea3
libgit2: upgrade to golang-with-libgit2 v0.1.4
...
Upgrade to golang-with-libgit2 v0.1.4 and use libgit2 which is compiled
without being linked to libssh2 and openssl.
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-26 15:10:29 +05:30
Max Jonas Werner
3ad7bc9971
Merge pull request #838 from davinkevin/fix-openapi-url
...
fix(openapi): full regex for url to prevent error
2022-07-22 10:40:08 +02:00
Davin Kevin
889a505a4b
fix(openapi): full regex for url to prevent error
...
In IDEA, the previous pattern led to an error because the regex wasn't complete.
Signed-off-by: Davin Kevin <davin.kevin@gmail.com>
2022-07-22 08:26:30 +00:00
Paulo Gomes
3013b5fc3d
Merge pull request #698 from cwyl02/cwyl02/cache-helmrepo-early
...
feat: cache helmrepo early after reconcil
2022-07-21 19:19:18 +01:00
York Chen
d5a75f6b2f
feat: cache helmrepo early after reconcile
...
1. moved chartRepo.Unload() from reconcileSource() to the defer func in reconcileArtifact to allow caching index in memory
2. added step to init memory cache in reconcileArtifact()
3. added step to save helmrepo index into memory cache in reconcileArtifact()
Signed-off-by: York Chen <ychen@d2iq.com>
2022-07-21 18:17:26 +01:00
Sunny
a6072c3301
Merge pull request #819 from aryan9600/remove-unmanaged-transport
...
libgit2: decommission unmanaged transport
2022-07-20 19:26:53 +05:30
Sanskar Jaiswal
0978a7ab61
gitrepo: update reconciler to be injected with transport initialization knowledge
...
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-20 18:56:37 +05:30
Sanskar Jaiswal
39fd59781b
docs: remove managed transport section
...
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-20 18:56:37 +05:30
Sanskar Jaiswal
cd03c26083
libgit2: enforce timeouts for http transports
...
Attach context to HTTP requests at the transport level to honour
timeouts.
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-20 18:56:37 +05:30
Sanskar Jaiswal
a252532c65
libgit2: overwrite remote url if it exists
...
Update initRepoWithRemote() so that it overwrites the remote url with
the provided url if the remote already exists, instead of erroring out.
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-20 18:56:37 +05:30
Sanskar Jaiswal
f5ada743d5
libgit2: decommission unmanaged transport
...
Decommission libgit2 unmanaged transport and remove the related feature
gate, making managed transport the default.
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-20 18:56:37 +05:30
Paulo Gomes
8f3cf1276e
Merge pull request #840 from pjbgf/fail-fast
...
build: disable matrix fail-fast
2022-07-20 12:55:19 +01:00
Paulo Gomes
c12a56a8a7
build: disable matrix fail-fast
...
Intermittent issues are causing the test matrix to fail
and whenever that happens, all other matrix options are
automatically cancelled. This increases the amount of
retries needed in order to get all tests to pass.
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-20 12:10:23 +01:00