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

Failed to upgrade helm chart due to invalid webhook configured #35

Open
JohnNiang opened this issue Oct 31, 2021 · 2 comments
Open

Failed to upgrade helm chart due to invalid webhook configured #35

JohnNiang opened this issue Oct 31, 2021 · 2 comments

Comments

@JohnNiang
Copy link
Contributor

Recently, when I tried to upgrade devops helm chart, I got the following error:

╰─⠠⠵ make install-chart
helm lint charts/ks-devops
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/johnniang/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/johnniang/.kube/config
==> Linting charts/ks-devops
[INFO] Chart.yaml: icon is recommended

1 chart(s) linted, 0 chart(s) failed
helm upgrade --install ks-devops charts/ks-devops -n kubesphere-devops-system --create-namespace \
         --set image.pullPolicy=Always --set jenkins.ksAuth.enabled=true
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/johnniang/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/johnniang/.kube/config
W1031 19:52:31.019418   30641 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
W1031 19:52:31.021880   30641 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
W1031 19:52:31.035644   30641 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
Error: UPGRADE FAILED: cannot patch "binary" with kind S2iBuilderTemplate: Internal error occurred: failed calling webhook "s2ibuildertemplate.kb.io": Post "https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s": dial tcp 10.100.103.119:443: connect: connection refused
make: *** [Makefile:5: install-chart] Error 1

/kind bug

@ks-ci-bot
Copy link
Contributor

@JohnNiang: The label(s) kind/bug cannot be applied, because the repository doesn't have them.

In response to this:

Recently, when I tried to upgrade devops helm chart, I got the following error:

╰─⠠⠵ make install-chart
helm lint charts/ks-devops
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/johnniang/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/johnniang/.kube/config
==> Linting charts/ks-devops
[INFO] Chart.yaml: icon is recommended

1 chart(s) linted, 0 chart(s) failed
helm upgrade --install ks-devops charts/ks-devops -n kubesphere-devops-system --create-namespace \
        --set image.pullPolicy=Always --set jenkins.ksAuth.enabled=true
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/johnniang/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/johnniang/.kube/config
W1031 19:52:31.019418   30641 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
W1031 19:52:31.021880   30641 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
W1031 19:52:31.035644   30641 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
Error: UPGRADE FAILED: cannot patch "binary" with kind S2iBuilderTemplate: Internal error occurred: failed calling webhook "s2ibuildertemplate.kb.io": Post "https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s": dial tcp 10.100.103.119:443: connect: connection refused
make: *** [Makefile:5: install-chart] Error 1

/kind bug

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@JohnNiang
Copy link
Contributor Author

IMO, I think it's related with #29, please help us investigate it @LinuxSuRen .

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

2 participants