Skip to content

Helm template fails when knative serving is enabled #39

Description

@andcan

It's not possible to render with helm template:

wrote generated/openfunction/crds/builder.yaml
wrote generated/openfunction/crds/clustereventbus.yaml
wrote generated/openfunction/crds/eventbus.yaml
wrote generated/openfunction/crds/eventsource.yaml
wrote generated/openfunction/crds/function.yaml
wrote generated/openfunction/crds/gateway-api.yaml
wrote generated/openfunction/crds/gateway.yaml
wrote generated/openfunction/crds/serving.yaml
wrote generated/openfunction/crds/trigger.yaml
wrote generated/openfunction/charts/dapr/crds/components.yaml
wrote generated/openfunction/charts/dapr/crds/configuration.yaml
wrote generated/openfunction/charts/dapr/crds/resiliency.yaml
wrote generated/openfunction/charts/dapr/crds/subscription.yaml
Error: open generated/openfunction/charts/knative-serving/crds/serving.yaml: no such file or directory

Reproduction steps:

helm repo add openfunction https://openfunction.github.io/charts/
helm repo update
helm pull openfunction/openfunction
tar zxf openfunction-v0.8.1-v0.4.0.tgz
cd openfunction
helm template . --include-crds --output-dir generated

The error occurs when including crds and specifying the output directory. This commands do not make helm template fail:

helm template . --output-dir generated
helm template . --include-crds
helm template . --include-crds --output-dir generated --set global.KnativeServing.enabled=false

Tested helm versions:

  • version.BuildInfo{Version:"v3.11.0", GitCommit:"472c5736ab01133de504a826bd9ee12cbe4e7904", GitTreeState:"clean", GoVersion:"go1.19.5"}
  • version.BuildInfo{Version:"v3.10.2", GitCommit:"50f003e5ee8704ec937a756c646870227d7c8b58", GitTreeState:"clean", GoVersion:"go1.18.8"}
  • version.BuildInfo{Version:"v3.9.4", GitCommit:"dbc6d8e20fe1d58d50e6ed30f09a04a77e4c68db", GitTreeState:"clean", GoVersion:"go1.17.13"}
  • version.BuildInfo{Version:"v3.8.1", GitCommit:"5cb9af4b1b271d11d7a97a71df3ac337dd94ad37", GitTreeState:"clean", GoVersion:"go1.17.5"}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions