You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/operations/configuration.md
+29-7Lines changed: 29 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,21 +52,43 @@ To learn more about metrics and logging configuration please refer to the dedica
52
52
53
53
### Flink Version and Namespace specific defaults
54
54
55
-
The operator also supports default configuration overrides for selected Flink versions and namespaces. This can be important if some behaviour changed across Flink versions or we want to treat certain namespaces differently (such as reconcile it more or less frequently etc).
55
+
The operator also supports default configuration overrides for selected Flink versions and namespaces. This can be important if some behaviour changed across Flink versions, or we want to treat certain namespaces differently (such as reconcile it more or less frequently etc.):
Flink version specific defaults will have a higher precedence so namespace defaults would be overridden by the same key.
64
+
Flink version specific defaults have a higher precedence, so namespace defaults will be overridden by version defaults with the same key.
65
+
66
+
Flink version defaults can also be suffixed by a `+` character after the version string. This indicates that the default applies to this Flink version and any higher version.
This would result in the defaults for Flink 1.17 being:
79
+
```
80
+
k1: v1
81
+
k2: v2
82
+
k3: v3
83
+
k4: v4
84
+
k5: v5.1
85
+
```
86
+
87
+
**Note**: The configuration above sets `k5: v5` for all versions >= 1.16.
88
+
However, this is overridden for Flink 1.17 to `v5.1`.
89
+
But if you ran a Flink 1.18 deployment with this configuration, then the value of `k5` would be `v5` not `v5.1`. The `k5` override only applies to Flink 1.17.
90
+
Adding a `+` to the Flink 1.17 `k5` default would apply the new value to all future versions.
Copy file name to clipboardExpand all lines: flink-kubernetes-operator-api/src/main/java/org/apache/flink/kubernetes/operator/api/spec/FlinkVersion.java
+44-9Lines changed: 44 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -25,21 +25,38 @@
25
25
publicenumFlinkVersion {
26
26
/** No longer supported since 1.7 operator release. */
27
27
@Deprecated
28
-
v1_13,
28
+
v1_13(1, 13),
29
29
/** No longer supported since 1.7 operator release. */
30
30
@Deprecated
31
-
v1_14,
31
+
v1_14(1, 14),
32
32
/** Deprecated since 1.10 operator release. */
33
33
@Deprecated
34
-
v1_15,
35
-
v1_16,
36
-
v1_17,
37
-
v1_18,
38
-
v1_19,
39
-
v1_20;
34
+
v1_15(1, 15),
35
+
v1_16(1, 16),
36
+
v1_17(1, 17),
37
+
v1_18(1, 18),
38
+
v1_19(1, 19),
39
+
v1_20(1, 20);
40
+
41
+
/** The major integer from the Flink semver. For example for Flink 1.18.1 this would be 1. */
42
+
privatefinalintmajorVersion;
43
+
44
+
/** The minor integer from the Flink semver. For example for Flink 1.18.1 this would be 18. */
Copy file name to clipboardExpand all lines: flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/config/FlinkConfigManager.java
Copy file name to clipboardExpand all lines: flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/config/KubernetesOperatorConfigOptions.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ public class KubernetesOperatorConfigOptions {
0 commit comments