make flux uninstall warning much stronger

Nearly sure it is not intended to delete helmreleases.helm.fluxcd.io
HelmReleases when users run `helm uninstall`, but the effect is there
currently, so until the behavior change needed is made clear, a more
strongly worded warning might be appropriate such as this. (See #811)

Is there any way this could be fixed? I would expect `flux uninstall` to
only remove resources that come from Flux v2 CRDs, not Helm Operator HRs
pull/884/head
Kingdon Barrett 4 years ago
parent 34edbf469e
commit 49b158181e

@ -78,7 +78,7 @@ func uninstallCmdRun(cmd *cobra.Command, args []string) error {
if !uninstallArgs.dryRun && !uninstallArgs.silent {
prompt := promptui.Prompt{
Label: fmt.Sprintf("Are you sure you want to delete the %s namespace", rootArgs.namespace),
Label: fmt.Sprintf("Are you sure you want to delete the %s namespace (including all Flux CRDs and resources, as well as Flux v1 helm.fluxcd.io HelmReleases)", rootArgs.namespace),
IsConfirm: true,
}
if _, err := prompt.Run(); err != nil {

Loading…
Cancel
Save