My version 0.11
This fails:
wget https://github.com/prometheus-community/helm-charts/raw/refs/heads/main/charts/kube-prometheus-stack/charts/crds/crds/crd-servicemonitors.yaml
kcl import -m crd crd-servicemonitors.yaml
This outputs:
2025/07/15 16:29:22 import.go:82: [ERROR] could not generate swagger spec: crd-servicemonitors.yaml, err: Object 'Kind' is missing in '# https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.83.0/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml'
I know there is an official Prometheus module. But it is generated for version 0.2.x and it gives a lot of errors.
My version 0.11
This fails:
This outputs:
I know there is an official Prometheus module. But it is generated for version 0.2.x and it gives a lot of errors.