Skip to content

Commit af78dcb

Browse files
committed
Updating the B/G e2e tests and docs
1 parent 3d8bfa5 commit af78dcb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/content/docs/custom-resource/reference.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ This serves as a full reference for FlinkDeployment and FlinkSessionJob custom r
8888

8989
| Parameter | Type | Docs |
9090
| ----------| ---- | ---- |
91+
| configuration | java.util.Map<java.lang.String,java.lang.String> | |
9192
| template | org.apache.flink.kubernetes.operator.api.spec.FlinkDeploymentTemplateSpec | |
9293

9394
### FlinkDeploymentSpec
@@ -119,7 +120,6 @@ This serves as a full reference for FlinkDeployment and FlinkSessionJob custom r
119120
| Parameter | Type | Docs |
120121
| ----------| ---- | ---- |
121122
| metadata | io.fabric8.kubernetes.api.model.ObjectMeta | |
122-
| configuration | java.util.Map<java.lang.String,java.lang.String> | |
123123
| spec | org.apache.flink.kubernetes.operator.api.spec.FlinkDeploymentSpec | |
124124

125125
### FlinkSessionJobSpec
@@ -348,6 +348,8 @@ This serves as a full reference for FlinkDeployment and FlinkSessionJob custom r
348348
| ACTIVE_GREEN | Identifies the system is running normally with a "Green" deployment type. |
349349
| TRANSITIONING_TO_BLUE | Identifies the system is transitioning from "Green" to "Blue". |
350350
| TRANSITIONING_TO_GREEN | Identifies the system is transitioning from "Blue" to "Green". |
351+
| SAVEPOINTING_BLUE | Identifies the system is savepointing "Blue" before it transitions to "Green". |
352+
| SAVEPOINTING_GREEN | Identifies the system is savepointing "Green" before it transitions to "Blue". |
351353

352354
### FlinkBlueGreenDeploymentStatus
353355
**Class**: org.apache.flink.kubernetes.operator.api.status.FlinkBlueGreenDeploymentStatus
@@ -362,6 +364,8 @@ This serves as a full reference for FlinkDeployment and FlinkSessionJob custom r
362364
| lastReconciledTimestamp | java.lang.String | Timestamp of last reconciliation. |
363365
| abortTimestamp | java.lang.String | Computed from abortGracePeriodMs, timestamp after which the deployment should be aborted. |
364366
| deploymentReadyTimestamp | java.lang.String | Timestamp when the deployment became READY/STABLE. Used to determine when to delete it. |
367+
| savepointTriggerId | java.lang.String | Persisted triggerId to track transition with savepoint. Only used with UpgradeMode.SAVEPOINT |
368+
| error | java.lang.String | Error information about the FlinkBlueGreenDeployment. |
365369

366370
### FlinkDeploymentReconciliationStatus
367371
**Class**: org.apache.flink.kubernetes.operator.api.status.FlinkDeploymentReconciliationStatus

e2e-tests/test_bluegreen_stateless.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ wait_for_status $APPLICATION_IDENTIFIER '.status.jobStatus.state' RUNNING ${TIME
4646
wait_for_status $APPLICATION_IDENTIFIER '.status.blueGreenState' ACTIVE_BLUE ${TIMEOUT} || exit 1
4747

4848
echo "PATCHING B/G deployment..."
49-
kubectl patch flinkbgdep ${BG_CLUSTER_ID} --type merge --patch '{"spec":{"template":{"spec":{"flinkConfiguration":{"rest.port":"8082","taskmanager.numberOfTaskSlots":"2"}}}}}'
49+
#kubectl patch flinkbgdep ${BG_CLUSTER_ID} --type merge --patch '{"spec":{"template":{"spec":{"flinkConfiguration":{"rest.port":"8082","taskmanager.numberOfTaskSlots":"2"}}}}}'
50+
kubectl patch flinkbgdep ${BG_CLUSTER_ID} --type merge --patch '{"spec":{"template":{"spec":{"flinkConfiguration":{"taskmanager.numberOfTaskSlots":"2"}}}}}'
5051

5152
wait_for_status $GREEN_APPLICATION_IDENTIFIER '.status.lifecycleState' STABLE ${TIMEOUT} || exit 1
5253
kubectl wait --for=delete deployment --timeout=${TIMEOUT}s --selector="app=${BLUE_CLUSTER_ID}"

0 commit comments

Comments
 (0)