Skip to content

Commit

Permalink
fix purge istio and gateway api resources
Browse files Browse the repository at this point in the history
  • Loading branch information
2456868764 committed Nov 8, 2023
1 parent a3fcd02 commit 90ca29c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/cmd/hgctl/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ func uninstall(writer io.Writer, uiArgs *uninstallArgs) error {
}

if profile.Global.Install == helm.InstallK8s || profile.Global.Install == helm.InstallLocalK8s {
profile.Global.EnableIstioAPI = uiArgs.purgeResources
profile.Global.EnableGatewayAPI = uiArgs.purgeResources
if profile.Global.EnableIstioAPI {
profile.Global.EnableIstioAPI = uiArgs.purgeResources
}
if profile.Global.EnableGatewayAPI {
profile.Global.EnableGatewayAPI = uiArgs.purgeResources
}
}

err = uninstallManifests(profile, writer, uiArgs)
Expand Down

0 comments on commit 90ca29c

Please sign in to comment.