Skip to content

Support kubernetes_manifest for custom resources #94

Open
@flokli

Description

@flokli

kubernetes_manifest now exists, and can be used to create instances of custom resources.

It'd be nice if k2tf would support this. RIght now, it just fails (when trying to transform https://github.com/grafana/agent/blob/main/cmd/agent-operator/agent-example-config.yaml, for example):

12:53PM Fatal | Could not parse stdin                                         error="10 errors occurred:\n\t* could not decode yaml object with main scheme #1: no kind \"GrafanaAgent\" is registered for version \"monitoring.grafana.com/v1alpha1\" in scheme \"pkg/runtime/scheme.go:100\"\n\t* could not decode yaml object with aggregator scheme #1: no kind \"GrafanaAgent\" is registered for version \"monitoring.grafana.com/v1alpha1\" in scheme \"pkg/runtime/scheme.go:100\"\n\t* could not decode yaml object with main scheme #2: no kind \"MetricsInstance\" is registered for version \"monitoring.grafana.com/v1alpha1\" in scheme \"pkg/runtime/scheme.go:100\"\n\t* could not decode yaml object with aggregator scheme #2: no kind \"MetricsInstance\" is registered for version \"monitoring.grafana.com/v1alpha1\" in scheme \"pkg/runtime/scheme.go:100\"\n\t* could not decode yaml object with main scheme #3: no kind \"LogsInstance\" is registered for version \"monitoring.grafana.com/v1alpha1\" in scheme \"pkg/runtime/scheme.go:100\"\n\t* could not decode yaml object with aggregator scheme #3: no kind \"LogsInstance\" is registered for version \"monitoring.grafana.com/v1alpha1\" in scheme \"pkg/runtime/scheme.go:100\"\n\t* could not decode yaml object with main scheme #4: no kind \"PodMonitor\" is registered for version \"monitoring.coreos.com/v1\" in scheme \"pkg/runtime/scheme.go:100\"\n\t* could not decode yaml object with aggregator scheme #4: no kind \"PodMonitor\" is registered for version \"monitoring.coreos.com/v1\" in scheme \"pkg/runtime/scheme.go:100\"\n\t* could not decode yaml object with main scheme #5: no kind \"PodLogs\" is registered for version \"monitoring.grafana.com/v1alpha1\" in scheme \"pkg/runtime/scheme.go:100\"\n\t* could not decode yaml object with aggregator scheme #5: no kind \"PodLogs\" is registered for version \"monitoring.grafana.com/v1alpha1\" in scheme \"pkg/runtime/scheme.go:100\"\n\n"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions