Incompability between grafana-agent-operator and loki helm charts over podLogs api version

Hi there,

loki chart: 5.5.0
grafana-agent-operator chart: 0.2.15 (but I tried older versions too)

I want to activate the self-monitoring feature in the helm chart of loki to get the prometheus dashboards, it requires to install grafana-agent-operator, so I’ve installed it.

The problem I’m facing is grafana-agent-operator installs the CRD monitoring.grafana.com/v1alpha2 for kind podLogs where loki expects to have monitoring.grafana.com/v1alpha1 .

Error: Failed to render chart: exit status 1: Error: unable to build kubernetes objects from release manifest: resource mapping not found for name: “loki” namespace: “” from “”: no matches for kind “PodLogs” in version “monitoring.grafana.com/v1alpha1

I’m confused because based on my finding in the CRDs stored in github, grafana-agent-operator should install monitoring.grafana.com/v1alpha1 .

I did not find a parameter in the charts to change the api version of podLogs.
I’ve tried to install various version of the agent but no luck.

Thanks for helping me on this.

thanks

2 Likes

Hey! Any luck here? I’m coming across the same issue.

1 Like

Just crashed into this for Mimir.

Same here. Just installed Grafana Operator using the latest Helm chart (5.15.1) and Loki using the latest Helm chart (6.24.0) too.

Is there no progress or workaround for this since May 2023?

BTW, to prevent Flux from failing with upgraded CRDs in the future, I installed the v5.15.1 Grafana CRDs separately, like this:

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
  name: grafana-crd-source
  namespace: flux-system
spec:
  interval: 30m
  url: https://github.com/grafana/grafana-operator.git
  ref:
    tag: v5.15.1
  ignore: |
    # exclude all but the CDRs
    /*
    # path to crds
    !/releases/download/v5.15.1/crds.yaml
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: grafana-crds
  namespace: flux-system
spec:
  interval: 15m
  prune: false
  sourceRef:
    kind: GitRepository
    name: grafana-crd-source