From dea154c284bd04ec3fcd7dd433d12df5b7d73a0b Mon Sep 17 00:00:00 2001 From: Marlon Bier Date: Mon, 11 Nov 2024 03:26:57 -0300 Subject: [PATCH] feat: add flink 1.20 (#405) --- flink.apache.org/flinkdeployment_v1beta1.json | 379 +++++++++++++++++- flink.apache.org/flinksessionjob_v1beta1.json | 16 + .../flinkstatesnapshot_v1beta1.json | 90 +++++ 3 files changed, 484 insertions(+), 1 deletion(-) create mode 100644 flink.apache.org/flinkstatesnapshot_v1beta1.json diff --git a/flink.apache.org/flinkdeployment_v1beta1.json b/flink.apache.org/flinkdeployment_v1beta1.json index 447df454..77c04f95 100644 --- a/flink.apache.org/flinkdeployment_v1beta1.json +++ b/flink.apache.org/flinkdeployment_v1beta1.json @@ -16,7 +16,8 @@ "v1_16", "v1_17", "v1_18", - "v1_19" + "v1_19", + "v1_20" ], "type": "string" }, @@ -1430,6 +1431,18 @@ "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, "capabilities": { "properties": { "add": { @@ -1672,6 +1685,9 @@ "readOnly": { "type": "boolean" }, + "recursiveReadOnly": { + "type": "string" + }, "subPath": { "type": "string" }, @@ -2371,6 +2387,18 @@ "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, "capabilities": { "properties": { "add": { @@ -2616,6 +2644,9 @@ "readOnly": { "type": "boolean" }, + "recursiveReadOnly": { + "type": "string" + }, "subPath": { "type": "string" }, @@ -3321,6 +3352,18 @@ "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, "capabilities": { "properties": { "add": { @@ -3563,6 +3606,9 @@ "readOnly": { "type": "boolean" }, + "recursiveReadOnly": { + "type": "string" + }, "subPath": { "type": "string" }, @@ -3684,6 +3730,18 @@ }, "securityContext": { "properties": { + "appArmorProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, "fsGroup": { "type": "integer" }, @@ -5233,6 +5291,27 @@ }, "type": "object", "additionalProperties": false + }, + "volumeMounts": { + "items": { + "properties": { + "mountPath": { + "type": "string" + }, + "name": { + "type": "string" + }, + "readOnly": { + "type": "boolean" + }, + "recursiveReadOnly": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array" } }, "type": "object", @@ -5431,6 +5510,27 @@ }, "type": "object", "additionalProperties": false + }, + "volumeMounts": { + "items": { + "properties": { + "mountPath": { + "type": "string" + }, + "name": { + "type": "string" + }, + "readOnly": { + "type": "boolean" + }, + "recursiveReadOnly": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array" } }, "type": "object", @@ -5644,6 +5744,27 @@ }, "type": "object", "additionalProperties": false + }, + "volumeMounts": { + "items": { + "properties": { + "mountPath": { + "type": "string" + }, + "name": { + "type": "string" + }, + "readOnly": { + "type": "boolean" + }, + "recursiveReadOnly": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array" } }, "type": "object", @@ -7054,6 +7175,18 @@ "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, "capabilities": { "properties": { "add": { @@ -7296,6 +7429,9 @@ "readOnly": { "type": "boolean" }, + "recursiveReadOnly": { + "type": "string" + }, "subPath": { "type": "string" }, @@ -7995,6 +8131,18 @@ "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, "capabilities": { "properties": { "add": { @@ -8240,6 +8388,9 @@ "readOnly": { "type": "boolean" }, + "recursiveReadOnly": { + "type": "string" + }, "subPath": { "type": "string" }, @@ -8945,6 +9096,18 @@ "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, "capabilities": { "properties": { "add": { @@ -9187,6 +9350,9 @@ "readOnly": { "type": "boolean" }, + "recursiveReadOnly": { + "type": "string" + }, "subPath": { "type": "string" }, @@ -9308,6 +9474,18 @@ }, "securityContext": { "properties": { + "appArmorProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, "fsGroup": { "type": "integer" }, @@ -10857,6 +11035,27 @@ }, "type": "object", "additionalProperties": false + }, + "volumeMounts": { + "items": { + "properties": { + "mountPath": { + "type": "string" + }, + "name": { + "type": "string" + }, + "readOnly": { + "type": "boolean" + }, + "recursiveReadOnly": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array" } }, "type": "object", @@ -11055,6 +11254,27 @@ }, "type": "object", "additionalProperties": false + }, + "volumeMounts": { + "items": { + "properties": { + "mountPath": { + "type": "string" + }, + "name": { + "type": "string" + }, + "readOnly": { + "type": "boolean" + }, + "recursiveReadOnly": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array" } }, "type": "object", @@ -11268,6 +11488,27 @@ }, "type": "object", "additionalProperties": false + }, + "volumeMounts": { + "items": { + "properties": { + "mountPath": { + "type": "string" + }, + "name": { + "type": "string" + }, + "readOnly": { + "type": "boolean" + }, + "recursiveReadOnly": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array" } }, "type": "object", @@ -12651,6 +12892,18 @@ "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, "capabilities": { "properties": { "add": { @@ -12893,6 +13146,9 @@ "readOnly": { "type": "boolean" }, + "recursiveReadOnly": { + "type": "string" + }, "subPath": { "type": "string" }, @@ -13592,6 +13848,18 @@ "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, "capabilities": { "properties": { "add": { @@ -13837,6 +14105,9 @@ "readOnly": { "type": "boolean" }, + "recursiveReadOnly": { + "type": "string" + }, "subPath": { "type": "string" }, @@ -14542,6 +14813,18 @@ "allowPrivilegeEscalation": { "type": "boolean" }, + "appArmorProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, "capabilities": { "properties": { "add": { @@ -14784,6 +15067,9 @@ "readOnly": { "type": "boolean" }, + "recursiveReadOnly": { + "type": "string" + }, "subPath": { "type": "string" }, @@ -14905,6 +15191,18 @@ }, "securityContext": { "properties": { + "appArmorProfile": { + "properties": { + "localhostProfile": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, "fsGroup": { "type": "integer" }, @@ -16454,6 +16752,27 @@ }, "type": "object", "additionalProperties": false + }, + "volumeMounts": { + "items": { + "properties": { + "mountPath": { + "type": "string" + }, + "name": { + "type": "string" + }, + "readOnly": { + "type": "boolean" + }, + "recursiveReadOnly": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array" } }, "type": "object", @@ -16652,6 +16971,27 @@ }, "type": "object", "additionalProperties": false + }, + "volumeMounts": { + "items": { + "properties": { + "mountPath": { + "type": "string" + }, + "name": { + "type": "string" + }, + "readOnly": { + "type": "boolean" + }, + "recursiveReadOnly": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array" } }, "type": "object", @@ -16865,6 +17205,27 @@ }, "type": "object", "additionalProperties": false + }, + "volumeMounts": { + "items": { + "properties": { + "mountPath": { + "type": "string" + }, + "name": { + "type": "string" + }, + "readOnly": { + "type": "boolean" + }, + "recursiveReadOnly": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "type": "array" } }, "type": "object", @@ -17150,10 +17511,26 @@ "type": "string" }, "state": { + "enum": [ + "CANCELED", + "CANCELLING", + "CREATED", + "FAILED", + "FAILING", + "FINISHED", + "INITIALIZING", + "RECONCILING", + "RESTARTING", + "RUNNING", + "SUSPENDED" + ], "type": "string" }, "updateTime": { "type": "string" + }, + "upgradeSavepointPath": { + "type": "string" } }, "type": "object", diff --git a/flink.apache.org/flinksessionjob_v1beta1.json b/flink.apache.org/flinksessionjob_v1beta1.json index d6bcf7cd..5e1e17b6 100644 --- a/flink.apache.org/flinksessionjob_v1beta1.json +++ b/flink.apache.org/flinksessionjob_v1beta1.json @@ -246,10 +246,26 @@ "type": "string" }, "state": { + "enum": [ + "CANCELED", + "CANCELLING", + "CREATED", + "FAILED", + "FAILING", + "FINISHED", + "INITIALIZING", + "RECONCILING", + "RESTARTING", + "RUNNING", + "SUSPENDED" + ], "type": "string" }, "updateTime": { "type": "string" + }, + "upgradeSavepointPath": { + "type": "string" } }, "type": "object", diff --git a/flink.apache.org/flinkstatesnapshot_v1beta1.json b/flink.apache.org/flinkstatesnapshot_v1beta1.json new file mode 100644 index 00000000..23f91cd3 --- /dev/null +++ b/flink.apache.org/flinkstatesnapshot_v1beta1.json @@ -0,0 +1,90 @@ +{ + "properties": { + "spec": { + "properties": { + "backoffLimit": { + "type": "integer" + }, + "checkpoint": { + "type": "object" + }, + "jobReference": { + "properties": { + "kind": { + "enum": [ + "FlinkDeployment", + "FlinkSessionJob" + ], + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "savepoint": { + "properties": { + "alreadyExists": { + "type": "boolean" + }, + "disposeOnDelete": { + "type": "boolean" + }, + "formatType": { + "enum": [ + "CANONICAL", + "NATIVE", + "UNKNOWN" + ], + "type": "string" + }, + "path": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "status": { + "properties": { + "error": { + "type": "string" + }, + "failures": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "resultTimestamp": { + "type": "string" + }, + "state": { + "enum": [ + "ABANDONED", + "COMPLETED", + "FAILED", + "IN_PROGRESS", + "TRIGGER_PENDING" + ], + "type": "string" + }, + "triggerId": { + "type": "string" + }, + "triggerTimestamp": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object" +}