Skip to content

Commit

Permalink
fix: removing hardcoded non-existing flink operator helm chart, and a…
Browse files Browse the repository at this point in the history
…llowing for parameterising operator version

Signed-off-by: Jakub Korzeniowski <[email protected]>
  • Loading branch information
kujon committed Jul 17, 2024
1 parent 0271f17 commit 66fab9a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion addons/flink-kubernetes-operator/metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flink-kubernetes-operator
version: 1.3.2
version: 1.4.0
description: A Kubernetes operator for Apache Flink
icon: https://flink.apache.org/img/logo/png/500/flink_squirrel_500.png
url: https://github.com/apache/flink-kubernetes-operator
Expand Down
28 changes: 15 additions & 13 deletions addons/flink-kubernetes-operator/parameter.cue
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
parameter: {
//+usage=Deploy to specified clusters. Leave empty to deploy to all clusters.
clusters?: [...string]
//+usage=Namespace to deploy to, defaults to flink-operator
namespace: *"flink-operator" | string
// +usage=Specify if create the webhook or not
"createWebhook": *false | bool
// +usage=Specify the image repository
"imageRepository": *"apache/flink-kubernetes-operator" | string
// +usage=Specify the image tag
"imageTag": *"latest" | string
// +usage=Specify if create the sa for job or not
"createJobServiceAccount": *false|bool
//+usage=Specify if upgrade the CRDs when upgrading flink-kubernetes-operator or not
//+usage=Deploy to specified clusters. Leave empty to deploy to all clusters.
clusters?: [...string]
//+usage=Namespace to deploy to, defaults to flink-operator
namespace: *"flink-operator" | string
// +usage=Specify if create the webhook or not
"createWebhook": *false | bool
// +usage=Specify the image repository
"imageRepository": *"apache/flink-kubernetes-operator" | string
// +usage=Specify the image tag
"imageTag": *"latest" | string
// +usage=Specify if create the sa for job or not
"createJobServiceAccount": *false | bool
//+usage=Specify if upgrade the CRDs when upgrading flink-kubernetes-operator or not
upgradeCRD: *false | bool
//+usage=Specify the flink operator version, defaults to 1.9.0
flinkOperatorVersion: *"1.9.0" | string
}
4 changes: 2 additions & 2 deletions addons/flink-kubernetes-operator/template.cue
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ output: {
dependsOn: ["flink-operator-ns"]
properties: {
repoType: "helm"
url: "https://downloads.apache.org/flink/flink-kubernetes-operator-1.3.1/"
url: "https://downloads.apache.org/flink/flink-kubernetes-operator-" + parameter["flinkOperatorVersion"] + "/"
chart: "flink-kubernetes-operator"
targetNamespace: parameter["namespace"]
version: "1.3.1"
version: parameter["flinkOperatorVersion"]
upgradeCRD: parameter.upgradeCRD
values: {
webhook: {
Expand Down

0 comments on commit 66fab9a

Please sign in to comment.