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

Kuberhealthy gets stuck when a khcheck object is misconfigured #554

Closed
jonnydawg opened this issue Jul 13, 2020 · 1 comment
Closed

Kuberhealthy gets stuck when a khcheck object is misconfigured #554

jonnydawg opened this issue Jul 13, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jonnydawg
Copy link
Collaborator

Describe the bug
The kuberhealthy master will run into an InternalError when looking for khc changes:

Error when watching for khcheck changes: InternalError

Related to #222

Steps To Reproduce
Misconfigure any khcheck installed. An easy way to do this is to remove the - under podSpec.containers.

I think this issue is caused by the mismatching types here. Kuberhealthy expects podSpec.containers to be an array, but removing this - causes podSpec.containers to become and object instead of an array of objects.

Expected behavior
Misconfigure a check's podSpec.containers and observe that checks will no longer be scheduled.

Screenshots

time="2020-07-13T18:11:10Z" level=error msg="Error listing check configuration resources khcheckcrd.KuberhealthyCheckList.Items: []khcheckcrd.KuberhealthyCheck: khcheckcrd.KuberhealthyCheck.Spec: khcheckcrd.CheckConfig.PodSpec: v1.PodSpec.Containers: []v1.Container: decode slice: expect [ or n, but found {, error found in #10 byte of ...|tainers\":{\"image\":\"d|..., bigger context ...|0123456789ab\"},\"spec\":{\"podSpec\":{\"containers\":{\"image\

Versions

  • Cluster OS: Debian
  • Kubernetes Version: 1.11.7
  • Kuberhealthy v2.2.0
@jonnydawg jonnydawg added the bug Something isn't working label Jul 13, 2020
@jonnydawg
Copy link
Collaborator Author

Currently dealing with this issue from the webhook server:

2020/07/18 03:18:19 http: TLS handshake error from 192.168.65.3:54690: remote error: tls: bad certificate
2020/07/18 03:18:49 http: TLS handshake error from 192.168.65.3:54944: remote error: tls: bad certificate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants