mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-23 08:01:48 +00:00
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
This commit is contained in:
parent
34edbf469e
commit
49b158181e
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ func uninstallCmdRun(cmd *cobra.Command, args []string) error {
|
||||||
|
|
||||||
if !uninstallArgs.dryRun && !uninstallArgs.silent {
|
if !uninstallArgs.dryRun && !uninstallArgs.silent {
|
||||||
prompt := promptui.Prompt{
|
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,
|
IsConfirm: true,
|
||||||
}
|
}
|
||||||
if _, err := prompt.Run(); err != nil {
|
if _, err := prompt.Run(); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue