Skip to content

Commit f26d76a

Browse files
authored
Merge pull request #6914 from XiShanYongYe-Chang/e2e-multi-template-scheduling
add basic e2e test for FlinkDeployment scheduling
2 parents 8dbca68 + c8c8d32 commit f26d76a

File tree

4 files changed

+11175
-0
lines changed

4 files changed

+11175
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Manifest Directory
2+
3+
This directory contains CRD files used for Karmada E2E testing.
4+
5+
Downloading CRDs from external URLs makes tests dependent on network availability and external sources, which can lead to test flakiness.
6+
7+
By vendoring the CRD files locally, we ensure that test execution is not impacted by external network issues or unexpected changes to the remote repository. This approach allows for deliberate version control of CRDs used in tests, provides a clear audit trail, and prevents silent failures caused by external factors.
8+
9+
## Files
10+
11+
### flinkdeployment-cr.yaml
12+
13+
**Description:**
14+
15+
This is a FlinkDeployment custom resource (CR) template used for testing Karmada's multi-template scheduling capability.
16+
17+
**Purpose:**
18+
19+
This CR serves as the test workload for validating that Karmada can correctly schedule and manage resources with multiple pod templates (jobManager and taskManager), ensuring proper propagation across member clusters.
20+
21+
### flinkdeployments.flink.apache.org-v1.yaml
22+
23+
**Download Source:**
24+
```
25+
https://raw.githubusercontent.com/apache/flink-kubernetes-operator/release-1.13/helm/flink-kubernetes-operator/crds/flinkdeployments.flink.apache.org-v1.yml
26+
```
27+
28+
**Why We Need It:**
29+
30+
Used to test Karmada's multi-template scheduling capability. The FlinkDeployment resource contains both jobManager and taskManager templates, which is ideal for testing Karmada's support for resources with multiple templates.
31+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: flink.apache.org/v1beta1
2+
kind: FlinkDeployment
3+
metadata:
4+
name: to-be-defined
5+
spec:
6+
flinkConfiguration:
7+
taskmanager.numberOfTaskSlots: "2"
8+
flinkVersion: v1_17
9+
image: flink:1.17
10+
job:
11+
args: []
12+
jarURI: local:///opt/flink/examples/streaming/StateMachineExample.jar
13+
parallelism: 2
14+
state: running
15+
upgradeMode: stateless
16+
jobManager:
17+
replicas: 1
18+
resource:
19+
cpu: 1
20+
memory: 100m
21+
serviceAccount: flink
22+
taskManager:
23+
resource:
24+
cpu: 1
25+
memory: 100m

0 commit comments

Comments
 (0)