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

No way to fetch username and password for kubernetes applications programmatically #389

Open
fernando-villalba opened this issue Apr 25, 2024 · 0 comments

Comments

@fernando-villalba
Copy link
Contributor

Issue

We need to have a way to programmatically get relevant information from installed apps/addons in the Kubernetes clusters.

For example if I want to programmatically fetch username and password of the database I added to the cluster in a script, it is not possible with the CLI, you need to go via the UI or other methods.

How to replicate

1. Create a cluster with an addon on the CLI and fetch the output

These three commands will create a cluster, install an app in the cluster and then show information about that app.

civo k3s create  --size g4s.kube.xsmall --nodes 1 test-fetch-output
civo kubernetes applications add postgresql:5GB --cluster test-fetch-output
civo k3s apps show Postgresql test-fetch-output

The output provided by the last command only serves to provide information. It does not give a password and username for the database.

Acceptance Criteria

Provide a command that outputs username, password and any other relevant configuration outputs.

This can be part of the show command with another flag, or yet another subcommand from civo kubernetes apps such as civo kubernetes apps config

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

No branches or pull requests

1 participant