mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-22 19:46:53 +10:00
bugfix rel.Config is nil
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
This commit is contained in:
@@ -199,6 +199,9 @@ func (o *UninstallOptions) runUninstall() error {
|
||||
}
|
||||
|
||||
func (o *UninstallOptions) chartAndOptionsFromRelease(rel *release.Release) (string, *chart.Chart, map[string]interface{}, error) {
|
||||
if rel.Config == nil {
|
||||
rel.Config = make(map[string]interface{})
|
||||
}
|
||||
// Overwrite the installCRDs flag so that crds are ONLY removed if the command flag is set
|
||||
rel.Config[installCRDsFlagName] = o.RemoveCrds
|
||||
|
||||
|
||||
Reference in New Issue
Block a user