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

CP-21576: Add Config command for Listing Kubernetes Services #27

Merged
merged 10 commits into from
Sep 9, 2024

Conversation

bdrennz
Copy link
Contributor

@bdrennz bdrennz commented Sep 5, 2024

This PR adds a new command, list-services, to the config suite. The command finds all the active services within the a given Cluster. Users have the option to specify a --kubeconfig, or by the configuration found in the current directory.

Testing:

(system) ➜  cloudzero-agent-validator git:(cp-21576) ./bin/cloudzero-agent-validator config list-services --kubeconfig /tmp/bdren.kubeconfig                                                                                                        <aws:cz-research.Engineering> <region:us-east-1>(⎈|arn:aws:eks:us-east-1:975482786146:cluster/bdren:default)
Services in all namespaces:
 - cz-prom-agent-kube-state-metrics (Namespace: default)
 - cz-prom-agent-prometheus-node-exporter (Namespace: default)
 - kubernetes (Namespace: default)
 - cz-prom-agent-kube-prometh-kubelet (Namespace: kube-system)
 - kube-dns (Namespace: kube-system)
 - metrics-server (Namespace: kube-system)
 - my-otel-demo-adservice (Namespace: otel)
 - my-otel-demo-cartservice (Namespace: otel)
 - my-otel-demo-checkoutservice (Namespace: otel)
 - my-otel-demo-currencyservice (Namespace: otel)
 - my-otel-demo-emailservice (Namespace: otel)
 - my-otel-demo-featureflagservice (Namespace: otel)
 - my-otel-demo-ffspostgres (Namespace: otel)
 - my-otel-demo-frontend (Namespace: otel)
 - my-otel-demo-frontendproxy (Namespace: otel)
 - my-otel-demo-grafana (Namespace: otel)
 - my-otel-demo-jaeger-agent (Namespace: otel)
 - my-otel-demo-jaeger-collector (Namespace: otel)
 - my-otel-demo-jaeger-query (Namespace: otel)
 - my-otel-demo-kafka (Namespace: otel)
 - my-otel-demo-loadgenerator (Namespace: otel)
 - my-otel-demo-otelcol (Namespace: otel)
 - my-otel-demo-paymentservice (Namespace: otel)
 - my-otel-demo-productcatalogservice (Namespace: otel)
 - my-otel-demo-prometheus-server (Namespace: otel)
 - my-otel-demo-quoteservice (Namespace: otel)
 - my-otel-demo-recommendationservice (Namespace: otel)
 - my-otel-demo-redis (Namespace: otel)
 - my-otel-demo-shippingservice (Namespace: otel)
 - otel-demo-opensearch (Namespace: otel)
 - otel-demo-opensearch-headless (Namespace: otel)

@bdrennz bdrennz changed the title CP-21576: CP-21576: Add Config command for Listing Kubernetes Services Sep 5, 2024
@bdrennz bdrennz marked this pull request as ready for review September 5, 2024 14:35
@bdrennz bdrennz requested a review from a team as a code owner September 5, 2024 14:35
Copy link
Collaborator

@josephbarnett josephbarnett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few nits - but generally pretty cool! 🙌

@bdrennz bdrennz merged commit e54dd48 into develop Sep 9, 2024
6 checks passed
@bdrennz bdrennz deleted the cp-21576 branch September 9, 2024 13:53
evan-cz pushed a commit that referenced this pull request Jan 13, 2025
* CP-21963: add db driver

* use zig for compilation
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 this pull request may close these issues.

2 participants