banzaicloud / prometheus-jmx-exporter-operator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when running with apiVersion: apiextensions.k8s.io/v1

parag703 opened this issue · comments

level=error msg="error syncing key (sc-poc/example-prom-jmx-exp): error unmarshaling JSON: json: cannot unmarshal string into Go struct field PrometheusJmxExporterConfig.Rules of type v1alpha1.PrometheusJmxExporterConfigRules"

apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: name: prometheusjmxexporters.banzaicloud.com spec: group: banzaicloud.com names: kind: PrometheusJmxExporter listKind: PrometheusJmxExporterList plural: prometheusjmxexporters singular: prometheusjmxexporter scope: Namespaced versions: - name: v1alpha1 served: true storage: true schema: openAPIV3Schema: type: object properties: spec: type: object x-kubernetes-preserve-unknown-fields: true