mattermost / mattermost-helm

Mattermost Helm charts for Kubernetes
Apache License 2.0
165 stars 147 forks source link

The helper doesn't retrieve the correct information from the ingress #356

Closed HujinoKun closed 4 months ago

HujinoKun commented 2 years ago

Hello,

k api-resources |grep ingress
ingressclasses                                 networking.k8s.io/v1                   false        IngressClass
ingresses                         ing          networking.k8s.io/v1                   true         Ingress
helm upgrade -n x mattermost mattermost/mattermost-team-edition -f apps/mattermost/values.yaml --dry-run
Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: resource mapping not found for name: "mattermost-mattermost-team-edition" namespace: "" from "": no matches for kind "Ingress" in version "networking.k8s.io/v1beta1"
ensure CRDs are installed first

Helm chart version : 6.6.0 Kubernetes version : v1.23.7

HujinoKun commented 1 year ago

up

dbpolito commented 1 year ago

Yup, facing this problem too on helm: 6.6.15 and kubernetes: v1.22.15

dbpolito commented 1 year ago

Actually after some more digging, running:

helm template mattermost/mattermost-team-edition \
  --set mysql.mysqlUser=sampleUser \
  --set mysql.mysqlPassword=samplePassword --set=ingress.enabled=true --generate-name --dry-run

Does work, but somehow running from terraform with something like:

resource "helm_release" "mattermost" {
  name       = "mattermost"
  repository = "https://helm.mattermost.com"
  chart      = "mattermost-team-edition"
  version    = "6.6.15"
  ...
}

It fails, so the issue might be somewhere 🤔

HujinoKun commented 7 months ago

Up