kubevela / catalog

Catalog of community maintained components and traits.
Apache License 2.0
154 stars 145 forks source link

[Addon] Fix the version issue of flink-kubernetes-operator #577

Open yanghua opened 1 year ago

yanghua commented 1 year ago

Currently, the supported version of flink-kubernetes-operator is 1.1.0, while this version has not been maintained by the official1.

So when we install this addon always pending on runningWorkflow phase.

Invoke the command:

vela addon status flink-kubernetes-operator

shows:

Services:

  - Name: flink-operator-ns
    Cluster: local  Namespace: flink-operator
    Type: k8s-objects
    Healthy
    No trait applied

  - Name: flink-operator-helm
    Cluster: local  Namespace: flink-operator
    Type: helm
    Unhealthy , Wating repository ready
    No trait applied

when checking the fluxcd's log, we can see:

{"level":"debug","ts":"2022-12-29T03:50:06.015Z","logger":"events","msg":"Warning","object":{"kind":"HelmRepository","namespace":"flink-operator","name":"flink-operator-helm","uid":"65d21f59-91f5-46c1-8143-6599084b4de7","apiVersion":"source.toolkit.fluxcd.io/v1beta2","resourceVersion":"355425"},"reason":"Failed","message":"failed to fetch Helm repository index: failed to cache index to temporary file: failed to fetch https://downloads.apache.org/flink/flink-kubernetes-operator-1.1.0/index.yaml : 404 Not Found"}
{"level":"error","ts":"2022-12-29T03:50:06.032Z","logger":"controller.helmrepository","msg":"Reconciler error","reconciler group":"source.toolkit.fluxcd.io","reconciler kind":"HelmRepository","name":"flink-operator-helm","namespace":"flink-operator","error":"failed to fetch Helm repository index: failed to cache index to temporary file: failed to fetch https://downloads.apache.org/flink/flink-kubernetes-operator-1.1.0/index.yaml : 404 Not Found","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:227"}

From the apache's download page1, we can see the 1.1.0 has not been supported.

salvalcantara commented 11 months ago

The version was bumped at some point but the same issue happens again:

url:             "https://downloads.apache.org/flink/flink-kubernetes-operator-1.3.1/"
chart:           "flink-kubernetes-operator"
version:         "1.3.1" 

For what it's worth version 1.3.1 does no longer exists either. So, we have two options:

  1. Properly parameterize the version so that it affects the repo url, letting users to pick the version they want
  2. Consider one addon per version (since Flink maintainers have one repo for each version, really, see here)