Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgres: delete backup-config --yes-i-really-mean-it does not work? #192

Open
FrankEppink opened this issue Jul 6, 2022 · 2 comments · Fixed by #241
Open

postgres: delete backup-config --yes-i-really-mean-it does not work? #192

FrankEppink opened this issue Jul 6, 2022 · 2 comments · Fixed by #241

Comments

@FrankEppink
Copy link

FrankEppink commented Jul 6, 2022

When using cloudctl postgres backup-config delete <id> --yes-i-really-mean-it the security question asking the first and last part of the id still pops up.

$ cloudctl postgres backup-config delete --help
delete a backup configuration

Usage:
cloudctl postgres backup-config delete <backup-config> [flags]

Aliases:
delete, rm, destroy, remove, delete

Flags:
-h, --help help for delete

Global Flags:
--apitoken string api token to authenticate. Can be specified with CLOUDCTL_APITOKEN environment variable.
--kubeconfig string Path to the kube-config to use for authentication and authorization. Is updated by login. Uses default path if not specified.
--no-headers ommit headers in tables
--order string order by (comma separated) column(s)
-o, --output-format string output format (table|wide|markdown|json|yaml|template), wide is a table with more columns. (default "table")
--template string output template for template output-format, go template format.
For property names inspect the output of -o json for reference.
Example for clusters:

cloudctl cluster ls -o template --template "{{ .ID }} {{ .Name }}"

-u, --url string api server address. Can be specified with CLOUDCTL_URL environment variable.
--yes-i-really-mean-it skips security prompts (which can be dangerous to set blindly because actions can lead to data loss or additional costs)

$ cloudctl postgres backup-config delete ced......3e8a --yes-i-really-mean-it
Please answer some security questions to delete this postgres database backup
first part of ID: c...8
last part of ID: f...a
@TLINDEN
Copy link

TLINDEN commented Aug 24, 2023

The patch #241 only fixes this for deleting databases, not backup-configs. See the last example output in OPs original message.

@Gerrit91
Copy link
Contributor

@eberlep Maybe needs another PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants