Commit Graph

530 Commits

Author SHA1 Message Date
Stefan Prodan 32d4e77612
Merge pull request #212 from fluxcd/release-v0.3.0
Release v0.3.0
2020-11-19 19:22:11 +02:00
Stefan Prodan 81d8830aa4
Release v0.3.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-19 19:07:56 +02:00
Hidde Beydals 9c6c1a8547
Merge pull request #210 from fluxcd/reconcile-request-status
Add LastHandledReconcileAt to source statuses
2020-11-19 14:00:06 +01:00
Hidde Beydals 0b4586253c Add LastHandledReconcileAt to source statuses
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-19 13:21:59 +01:00
Stefan Prodan 55334695c1
Merge pull request #195 from relu/adopt-k8s-conditions
Refactor to adopt k8s standardized Condition type
2020-11-19 14:04:20 +02:00
Aurel Canciu b80f450b68
Switch to new pkg/apis/meta SetResourceCondition
Use SetResourceCondition as a generic method to set conditions for CRs,
implmeneting the ObjectWithStatusConditions interface used as input
type.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-11-19 13:08:33 +02:00
Aurel Canciu 69f9bbdaa6
Use SetStatusCondition vs FilterOutCondition
Change to rely on the upstream k8s api/meta SetStatusCondition to
set/update the resources status conditions rather than
FilterOutCondition from apis/meta which is due to be removed.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-11-19 13:08:33 +02:00
Aurel Canciu 00bb853d0e
Refactor to adopt k8s standardized Condition type
Updates to use metav1.Condition type and removes references for
deprecated corev1.Condition* constants and uses the new k8s api/meta
helpers in place of the old pkg/apis/meta types.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-11-19 13:08:33 +02:00
Hidde Beydals 35c6fd7884
Merge pull request #209 from fluxcd/helm-dep-manager
Move Helm dependency manager to `helm` package
2020-11-19 10:03:31 +01:00
Hidde Beydals a3f177328a Move Helm dependency manager to `helm` package
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-19 09:50:50 +01:00
Hidde Beydals 1297f8bab6
Merge pull request #208 from fluxcd/gc-bugfix 2020-11-19 09:50:21 +01:00
Hidde Beydals 2f50e3ff59 Make GC behavior depend on deletion timestamp
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-18 23:03:44 +01:00
Hidde Beydals 93d1559b50 Prevent GC from wiping artifacts in the same NS
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-18 22:56:08 +01:00
Stefan Prodan d326ae4547
Merge pull request #203 from fluxcd/release-v0.2.2
Release v0.2.2
2020-11-12 17:41:51 +02:00
Stefan Prodan 33a693060b
Release v0.2.2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-12 17:27:43 +02:00
Stefan Prodan 5fcbfd3a8b
Merge pull request #202 from fluxcd/patch-status
Patch status sub-resource
2020-11-12 17:22:26 +02:00
Stefan Prodan be818469ea
Print controller logs in CI
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-12 17:02:40 +02:00
Stefan Prodan 81d3ecf612
Patch status sub-resource
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-12 17:02:39 +02:00
Stefan Prodan d8c09239c4
Merge pull request #201 from fluxcd/kind-update
Update engineerd/setup-kind to v0.5.0
2020-11-12 12:30:37 +02:00
Stefan Prodan ef5749105d
Update engineerd/setup-kind to v0.5.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-12 12:07:35 +02:00
Stefan Prodan 58e39978f7
Merge pull request #198 from tvi/patch-1
docs: minor typo fix
2020-11-08 09:43:26 +02:00
Tomas Virgl d55b37e838 docs: minor typo fix
Signed-off-by: Tomas Virgl <tomas@virgl.net>
2020-11-08 00:59:09 +01:00
Stefan Prodan 0eecfe57cc
Merge pull request #179 from phillebaba/fix/default-values
Set default values in api objects
2020-11-03 16:50:17 +02:00
Philip Laine 0596513afd Add documentation for kind string constants
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-11-02 09:55:39 +01:00
Philip Laine c0ee546ce8 Generate CRDs
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-11-02 09:55:39 +01:00
Philip Laine 01d0053871 Fix duration default values
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-11-02 09:55:39 +01:00
Philip Laine d67dd6cd58 Set default values in api objects
Signed-off-by: Philip Laine <philip.laine@xenit.se>
2020-11-02 09:55:39 +01:00
Stefan Prodan aa49afbd8a
Merge pull request #190 from relu/k8s-v1.19
Update k8s to 1.19
2020-11-02 10:53:16 +02:00
Aurel Canciu 60d1dc8219
Update pkg components and k8s to 1.19
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-11-01 18:11:27 +02:00
Hidde Beydals aab1fb44ab
Merge pull request #189 from relu/helm-3.4
Helm dependency update to v3.4.0
2020-10-30 20:57:06 +01:00
Aurel Canciu adb9f86fee
Helm dependency update to v3.4.0
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-10-30 21:41:30 +02:00
Hidde Beydals 7ef207a8ba
Merge pull request #188 from fluxcd/release-v0.2.1
Release v0.2.1
2020-10-30 20:17:07 +01:00
Hidde Beydals 08c4254464 Release v0.2.1
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-30 19:59:21 +01:00
Hidde Beydals d7e3130cc0
Merge pull request #187 from relu/fix-aliased-subcharts-handling 2020-10-30 19:43:17 +01:00
Aurel Canciu 960ad882c7
Refactor dependency_manager_tests.go
Cleanup some bits especially in the local chart suite.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-10-30 19:16:28 +02:00
Aurel Canciu 946d1e6ac0
Remove use of chartutil.ProcessDependencies
It looks like the use of chartutil.ProcessDependencies in the HelmChart
Controller was not correct, this method seems to be used in Helm only
during install/upgrade. The intention was to load the dependencies but
this seems to not be needed as it's already done through the loaders
(loader.Load).

The use of this method caused a regression where Chart.yaml files would
be overwritten and registered subcharts that had aliases would be
renamed using the alias name. While this is an expected behaviour of
chartutil.ProcessDependencies it is not what the controller should do
to the chart during (re)packaging.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-10-30 19:16:28 +02:00
Hidde Beydals f60f7591e1
Merge pull request #186 from fluxcd/release-v0.2.0
Release v0.2.0
2020-10-29 12:49:08 +01:00
Hidde Beydals a3f7b1d5b2 Release v0.2.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-29 12:35:51 +01:00
Hidde Beydals 0c43076a67
Merge pull request #175 from relu/gitrepository-helm-deps 2020-10-28 20:32:30 +01:00
Aurel Canciu bfd8d4bc5a
Change copyright wording to accomodate convention
Re: fluxcd/toolkit#380

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-10-28 18:08:44 +02:00
Aurel Canciu f1362bd3a9
Implement DepdendencyManager for non-packaged
Non-packaged charts that don't have their dependencies present in
charts/ will now have these dependencies built using the
DependencyManager. The idea behind it is to replicate the logic
implemeneted in Helm's downloader.Manager with the support for already
existing HelmRepository resources and their chart retrieval capabilities.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-10-28 15:46:18 +02:00
Aurel Canciu 38317ab7c0
Extract HelmRepository secret retrieval
Method getHelmRepositorySecret on the HelmChartReconciler

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-10-28 15:27:11 +02:00
Aurel Canciu f3370d8004
Extract chart repo url normalization logic
Move the logic to helm/utils exported as func
NormalizeChartRepositoryURL

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-10-28 14:57:12 +02:00
Aurel Canciu ad995d80cc
Reorganize helm chart testdata for controllers
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-10-28 14:57:12 +02:00
Hidde Beydals 54aaef5380
Index HelmRepository resources by their URL
To facilitate an inexpensive lookup when collecting credentials and
index artifacts while working with chart dependencies.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-10-28 14:57:12 +02:00
Stefan Prodan c66425f5b5
Merge pull request #185 from fluxcd/rbac-finalizers
Add finalizers to RBAC
2020-10-28 14:53:52 +02:00
Stefan Prodan 08d98ff214
Add finalizers to RBAC
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-10-28 14:39:53 +02:00
Stefan Prodan f1c8f03599
Merge pull request #184 from fluxcd/runtime-update
Update runtime metrics
2020-10-28 14:22:20 +02:00
Stefan Prodan 08c86bb2d0
Update fluxcd/pkg/runtime to v0.1.2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-10-28 13:59:19 +02:00
Stefan Prodan ea976cf63a
Update fossa action
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-10-28 13:59:03 +02:00