From 9ccd2f146718c74b79ae9e684854e41bebc2afea Mon Sep 17 00:00:00 2001 From: Krunal Hingu Date: Mon, 1 Apr 2024 14:01:23 +0530 Subject: [PATCH] removed forceAdopt refernces --- cmd/helm/install.go | 1 - cmd/helm/upgrade.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/cmd/helm/install.go b/cmd/helm/install.go index 08cc99df6..23ff29d95 100644 --- a/cmd/helm/install.go +++ b/cmd/helm/install.go @@ -201,7 +201,6 @@ func addInstallFlags(cmd *cobra.Command, f *pflag.FlagSet, client *action.Instal f.StringToStringVarP(&client.Labels, "labels", "l", nil, "Labels that would be added to release metadata. Should be divided by comma.") f.BoolVar(&client.EnableDNS, "enable-dns", false, "enable DNS lookups when rendering templates") f.BoolVar(&client.HideNotes, "hide-notes", false, "if set, do not show notes in install output. Does not affect presence in chart metadata") - f.BoolVar(&client.ForceAdopt, "force-adopt", false, "force adopt resources that were created outside helm") addValueOptionsFlags(f, valueOpts) addChartPathOptionsFlags(f, &client.ChartPathOptions) diff --git a/cmd/helm/upgrade.go b/cmd/helm/upgrade.go index 0edd84ee3..108550cbf 100644 --- a/cmd/helm/upgrade.go +++ b/cmd/helm/upgrade.go @@ -128,7 +128,6 @@ func newUpgradeCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { fmt.Fprintf(out, "Release %q does not exist. Installing it now.\n", args[0]) } instClient := action.NewInstall(cfg) - instClient.ForceAdopt = client.Adopt instClient.CreateNamespace = createNamespace instClient.ChartPathOptions = client.ChartPathOptions instClient.Force = client.Force @@ -281,7 +280,6 @@ func newUpgradeCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { f.StringVar(&client.Description, "description", "", "add a custom description") f.BoolVar(&client.DependencyUpdate, "dependency-update", false, "update dependencies if they are missing before installing the chart") f.BoolVar(&client.EnableDNS, "enable-dns", false, "enable DNS lookups when rendering templates") - f.BoolVar(&client.Adopt, "force-adopt", false, "force adopt resources that were created outside helm") addChartPathOptionsFlags(f, &client.ChartPathOptions) addValueOptionsFlags(f, valueOpts) bindOutputFlag(cmd, &outfmt)