Skip to content

Commit 1831437

Browse files
committed
Added module doc for roles.rs
1 parent 6b3f78b commit 1831437

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

rust/crd/src/roles.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/// Roles and configuration for SparkApplications.
2+
///
3+
/// Spark appliations have three roles described by the SparkApplicationRole.
4+
///
5+
/// Unlike others, the Spark application controller doesn't create objects
6+
/// like Pods, Services, etc. for these roles directly, but instead it delegates
7+
/// this responsability to the Submit job.
8+
///
9+
/// The Submit job only supports one group per role. For this reason, the
10+
/// SparkApplication spec doesn't declare Role objects directly. Instead it
11+
/// only declares CommonConfiguration objects for job, driver and executor
12+
/// and constructs the Roles dynamically when needed. The only group under
13+
/// each role is named "default". These roles are transparent to the user.
14+
///
15+
/// Ths history server has it's own role completely unrelated to this module.
116
use std::{collections::BTreeMap, slice};
217

318
use serde::{Deserialize, Serialize};

0 commit comments

Comments
 (0)