banzaicloud / banzai-charts

Curated list of Banzai Cloud Helm charts used by the Pipeline Platform
Apache License 2.0
368 stars 283 forks source link

[grafana-operator] Error installing the grafana-operator helm-chart #1276

Closed banschikovde closed 3 years ago

banschikovde commented 3 years ago

Describe the bug

Error installing the grafana-operator helm-chart
Release "grafana-operator" does not exist. Installing it now.
W0801 10:22:21.537215   46780 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0801 10:22:21.549535   46780 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0801 10:22:21.561297   46780 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0801 10:22:23.713472   46780 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
Error: rendered manifests contain a resource that already exists. Unable to continue with install: CustomResourceDefinition "grafanas.integreatly.org" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "grafana-operator"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "observability"

Steps to reproduce the issue:

helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com
helm repo update
helm upgrade grafana-operator --install banzaicloud-stable/grafana-operator --version 0.3.12 --create-namespace --namespace observability --values ./helm-values/grafana-operator/base_values.yaml

k8s vesrion: v1.21.2 helm version: v3.6.3

сontent helm values file:


replicaCount: 1

updateStrategy:
  type: Recreate

createCustomResource: true

image:
  ## TODO change to original repo after release of UID fixes
  registry: quay.io
  repository: integreatly/grafana-operator
  tag: v3.10.2
  pullPolicy: IfNotPresent

grafana:
  image:
    registry: docker.io
    repository: grafana/grafana
    tag: 7.5.7

grafanaPluginInit:
  image:
    registry: quay.io
    repository: integreatly/grafana_plugins_init
    tag: 0.0.3

#Enable Default Dashboards
defaultDashboards:
  enabled: false

#Enable Default Grafana Instance
defaultDeployment:
  enabled: false

#Enable Default Grafana Datasouce
defaultDatasouce:
  enabled: false

resources:
  limits:
    cpu: 100m
    memory: 128Mi
  requests:
    cpu: 100m
    memory: 128Mi

prometheus:
  serviceMonitor:
    enabled: false