kudobuilder / kudobuilder/kuttl
Exec Cmd From Pod
- Dominant language
- Go
- Stars
- 824
- Forks
- 103
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 6
Description
There is a need to be able to exec a command from a pod... the value includes the ability to connect or perform actions from within the cluster that may not be possible from outside the cluster; including dns resolution.
setting up test scripts for MWT ran into a need to establish communication with the prometheus service. Example:
```
curl "prometheus-kubeaddons-prom-prometheus.kubeaddons.svc.cluster.local:9090/api/v1/query?query=kafka_server_BrokerTopicMetrics_MessagesIn_total\{namespace='kafka-mwt',service='kafka-instance-svc',topic=''\}" | jq -r .data.result[].value[1] | awk '{ sum += $1 } END { print sum }'
```
Contributor guide
Research direction
No files, tests, or entry points are named. Start by locating how KUTTL runs test scripts and where Kubernetes-cluster actions are handled, then use the Prometheus curl example as the acceptance case. Done means a test can execute a command inside a pod and use its in-cluster DNS access.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- devops, testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100