|
|
|
@ -186,6 +186,7 @@ func (i *Install) installCRDs(crds []chart.CRD) error {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if i.cfg.RESTClientGetter != nil {
|
|
|
|
// If we have already gathered the capabilities, we need to invalidate
|
|
|
|
// If we have already gathered the capabilities, we need to invalidate
|
|
|
|
// the cache so that the new CRDs are recognized. This should only be
|
|
|
|
// the cache so that the new CRDs are recognized. This should only be
|
|
|
|
// the case when an action configuration is reused for multiple actions,
|
|
|
|
// the case when an action configuration is reused for multiple actions,
|
|
|
|
@ -196,12 +197,12 @@ func (i *Install) installCRDs(crds []chart.CRD) error {
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if discoveryClient != nil {
|
|
|
|
i.cfg.Log("Clearing discovery cache")
|
|
|
|
i.cfg.Log("Clearing discovery cache")
|
|
|
|
discoveryClient.Invalidate()
|
|
|
|
discoveryClient.Invalidate()
|
|
|
|
|
|
|
|
|
|
|
|
_, _ = discoveryClient.ServerGroups()
|
|
|
|
_, _ = discoveryClient.ServerGroups()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Invalidate the REST mapper, since it will not have the new CRDs
|
|
|
|
// Invalidate the REST mapper, since it will not have the new CRDs
|
|
|
|
// present.
|
|
|
|
// present.
|
|
|
|
@ -214,6 +215,7 @@ func (i *Install) installCRDs(crds []chart.CRD) error {
|
|
|
|
resettable.Reset()
|
|
|
|
resettable.Reset()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|