helm/pkg/kube
Matt Butcher 0f332b67f1
fix: clear the discovery cache after CRDs are installed (#6332)
* fix: clear the discovery cache after CRDs are installed

This fixes an issue in which a chart could not contain both a CRD and an instance of that CRD. It works around a stale cache by force cache invalidation whenever a CRD is added.

Closes #6316

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* fix: wait for CRD to register before allowing CRDs to be installed

This fixes an issue with the previous version of this patch in which the CRD would not be available quickly enough.

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* feat: use Wait() to wait for CRDs to be ready

This forward-ports the CRD wait logic to Helm 3, and then uses that to wait for CRDs to be registered.

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* ref: moved the scheme modification to an appropriate place.

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* fix: turned warnings into fatal errors, fixed spelling, clear cache once

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2019-09-04 08:32:24 -06:00
..
fake Add IsReachable to /pkg/kube/client to see if connected to the internet 2019-08-27 04:11:04 +05:30
client.go fix: clear the discovery cache after CRDs are installed (#6332) 2019-09-04 08:32:24 -06:00
client_test.go ref(client): use three-way merge patch strategy 2019-08-02 09:07:51 -07:00
config.go chore(dep): bump kubernetes to 1.14.0 2019-03-25 14:01:01 -07:00
converter.go Fixed object typing for watching Jobs/hooks 2019-07-30 11:51:39 -06:00
factory.go chore(dep): bump kubernetes to 1.14.0 2019-03-25 14:01:01 -07:00
interface.go Add IsReachable to /pkg/kube/client to see if connected to the internet 2019-08-27 04:11:04 +05:30
resource.go ref(kube): Renames Result type to ResourceList 2019-07-30 11:51:39 -06:00
resource_test.go ref(kube): Renames Result type to ResourceList 2019-07-30 11:51:39 -06:00
result.go ref(*): Refactors kube client to be a bit more friendly 2019-07-30 11:51:39 -06:00
wait.go fix: clear the discovery cache after CRDs are installed (#6332) 2019-09-04 08:32:24 -06:00