Skip to content

Importing Prometheus to schema's not working #147

@obeleh

Description

@obeleh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions