spark_on_k8s.spark_operator_migration¶
Implementation reference. These symbols describe how the project works; their presence here does not make them supported application imports. Use the documented entry points and support policy.
Read-only assessment of Kubeflow Spark Operator manifests for a SparkJob migration.
The assessor reads sparkoperator.k8s.io/v1beta2 SparkApplication and
ScheduledSparkApplication documents and gives every field one accounting status:
mapped, approximated, unsupported or ignored. It drafts a SparkJob
document from the settings that translate and validates that draft offline. It
never contacts a cluster and never translates a field it does not recognize.
Values that look like credentials are neither shown nor copied into a draft.
Finding
dataclass
¶
The accounting status of one source field; it covers any fields nested below it.
Source code in spark_on_k8s/spark_operator_migration.py
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | |
ManifestError
¶
Bases: ValueError
The input cannot be read as Spark Operator manifests.
Source code in spark_on_k8s/spark_operator_migration.py
32 33 | |
assess_document(document, *, position=1)
¶
Assess one SparkApplication or ScheduledSparkApplication mapping without contacting a cluster.
Source code in spark_on_k8s/spark_operator_migration.py
1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 | |
assess_file(path)
¶
Read and assess a manifest file. Nothing is submitted and no cluster is contacted.
Source code in spark_on_k8s/spark_operator_migration.py
1556 1557 1558 1559 | |
assess_manifests(content)
¶
Assess every Spark Operator application in a YAML stream; other documents are skipped.
Source code in spark_on_k8s/spark_operator_migration.py
1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 | |
draft_yaml(application, source)
¶
Render a validated draft with a header that marks it as a migration draft.
Source code in spark_on_k8s/spark_operator_migration.py
1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 | |
load_manifests(content)
¶
Parse a YAML stream of at most 1 MiB, rejecting aliases and duplicate keys.
Source code in spark_on_k8s/spark_operator_migration.py
1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 | |