[Bug]: kubeconform validation fails for kafka crd #9824
abrarshivani
started this conversation in
General
Replies: 1 comment 2 replies
-
I do not think we are aware of any issues with the CRDs. This functionality is regularly used and tested. So I'm not sure what exactly is supposed to be a bug. Also, we are not going to fix any CRDs for a Strimzi 0.34.0 release which is quite old. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Description
When configuring a Kafka listener with the type set to cluster-ip, overrides for the bootstrap service may not be necessary, but they may still be required for brokers. This results in the following listener configuration:
When validating this CRD with kubeconform, an error is encountered: kubeconform expected object, but got null. Additionally, the CRD needs to be adjusted since the bootstrap value can indeed be null. This issue can be resolved by adding the following property for the bootstrap configuration in the Kafka CRD:
Steps to reproduce
python3 openapi2jsonschema.py <path_to_openapi_crd>.yaml
kubeconform -kubernetes-version 1.22.0 -strict -schema-location <dir_to_openapi_crd>/{{.ResourceKind}}{{.KindSuffix}}.json '<path-to-crd>
Expected behavior
Kubeconform should not return error:
expected object, but got null
Strimzi version
0.34.0
Kubernetes version
v1.24.17
Installation method
Helm Chart
Infrastructure
EKS
Configuration files and logs
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions