Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yanghua opened this issue Dec 30, 2022 · 1 comment
Open

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

yanghua opened this issue Dec 30, 2022 · 1 comment

Comments

@yanghua
Copy link
Contributor

yanghua commented Dec 30, 2022

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/[email protected]/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227"}

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

@salvalcantara
Copy link

salvalcantara commented Dec 2, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants