kedacore / charts

Helm charts for KEDA
Apache License 2.0
153 stars 216 forks source link

No matches for kind "ClusterTriggerAuthentication" if this CRD is referenced in extraObjects #513

Open abdul-jabbar01 opened 1 year ago

abdul-jabbar01 commented 1 year ago

If I am referring ClusterTriggerAuthentication with extraObjects, it gives following error

Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "ClusterTriggerAuthentication" in version "keda.sh/v1alpha1"

It works with following workaround:

But this is not the ideal workaround. It makes automation difficult (installing via pipelines)

Expected Behavior

It should first install CRDs and then run 99-extra-manifests.yaml for extraObjects

Actual Behavior

It is installing extraObjects first before installing CRDs

Steps to Reproduce the Problem

  1. Download KEDA chart 2.11.0 from here
  2. Update keda/values.yaml to include following
    extraObjects:
    - apiVersion: v1
    kind: Secret
    metadata:
      name: keda-datadog-secrets
      namespace: keda
    type: Opaque
    data:
      apiKey: "xxxxxx"
      appKey: "xxxxxx"
      datadogSite: "xxxxxx"
    - apiVersion: keda.sh/v1alpha1
    kind: ClusterTriggerAuthentication
    metadata:
      name: keda-cluster-trigger-auth-datadog
    spec:
      secretTargetRef:
        - parameter: apiKey
          name: keda-datadog-secrets
          key: apiKey
        - parameter: appKey
          name: keda-datadog-secrets
          key: appKey
        - parameter: datadogSite
          name: keda-datadog-secrets
          key: datadogSite
    1. Then install keda with helm upgrade --install keda kedacore/keda -f values.yaml --namespace keda
    2. Then it should give above mentioned error.

Specifications

pierluigilenoci commented 5 months ago

FYI https://github.com/helm/helm/issues/12653