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

kubectl commands fail from inside a cluster #459

Closed
wmcdona89 opened this issue Aug 16, 2022 · 2 comments
Closed

kubectl commands fail from inside a cluster #459

wmcdona89 opened this issue Aug 16, 2022 · 2 comments
Labels

Comments

@wmcdona89
Copy link

wmcdona89 commented Aug 16, 2022

Is this a request for help?: no


Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Version of Helm and Kubernetes:
quay.io/helmpack/chart-testing:v3.7.0 on OpenShift v4.7 (k8s v1.20)

What happened:
kubectl commands on chart-testing:v3.7.0 fail when run inside a cluster.

Looks like this is a known k8s issue

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):
run quay.io/helmpack/chart-testing:v3.7.0 in a cluster
execute ct lint-and-install --debug from the container

output:

kubectl --request-timeout=30s get deployments --namespace [redacted] --selector app.kubernetes.io/instance=[redacted] --output jsonpath={.items[].metadata.name}
kubectl --request-timeout=30s get events --output wide --namespace [redacted]
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Error printing details: Error waiting for process: exit status 1
kubectl --request-timeout=30s get pods --no-headers --namespace [redacted] --selector app.kubernetes.io/instance=[redacted] --output jsonpath={.items[
].metadata.name}
Error printing logs: Error running process: exit status 1

Anything else we need to know:
looks like this issue was introduced in v3.7.0 via #360

As a workaround, one can set kubectl-timeout: 0s in a config file as there isn't currently a --kubectl-timeout cli option.
For example,

echo "kubectl-timeout: 0s" > ct.yaml
ct lint-and-install --debug --config ct.yaml
Copy link

github-actions bot commented Nov 6, 2023

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Nov 6, 2023
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant