Skip to content

Commit

Permalink
Add doc comment to removeCustomResources
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Eckert committed Nov 1, 2022
1 parent 2073acd commit 63aaf5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/cmd/uninstall/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ func (c *Command) uninstallHelmRelease(releaseName, namespace, releaseType strin
return nil
}

// removeCustomResources fetches a list of custom resource defintions managed
// by Consul and attempts to delete every custom resource for each definition.
// If the resources cannot be deleted directly, the finalizers on each resource
// are patched to be an empty list, freeing them to be deleted by Kubernetes.
func (c *Command) removeCustomResources(uiLogger action.DebugLog) error {
uiLogger("Deleting custom resources managed by Consul")

Expand Down

0 comments on commit 63aaf5b

Please sign in to comment.