Skip to content

Commit 7c1e83d

Browse files
Update CRD docs
1 parent b21b9b0 commit 7c1e83d

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

deploy/helm/spark-k8s-operator/crds/crds.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,13 +615,19 @@ spec:
615615
x-kubernetes-preserve-unknown-fields: true
616616
type: object
617617
logFileDirectory:
618-
description: The log file directory definition used by the Spark history server. Currently only S3 buckets are supported.
618+
description: The log file directory definition used by the Spark history server.
619619
nullable: true
620620
oneOf:
621621
- required:
622622
- s3
623+
- required:
624+
- customLogDirectory
623625
properties:
626+
customLogDirectory:
627+
description: A custom log directory
628+
type: string
624629
s3:
630+
description: An S3 bucket storing the log events
625631
properties:
626632
bucket:
627633
oneOf:
@@ -1065,12 +1071,18 @@ spec:
10651071
type: string
10661072
type: object
10671073
logFileDirectory:
1068-
description: The log file directory definition used by the Spark history server. Currently only S3 buckets are supported.
1074+
description: The log file directory definition used by the Spark history server.
10691075
oneOf:
10701076
- required:
10711077
- s3
1078+
- required:
1079+
- customLogDirectory
10721080
properties:
1081+
customLogDirectory:
1082+
description: A custom log directory
1083+
type: string
10731084
s3:
1085+
description: An S3 bucket storing the log events
10741086
properties:
10751087
bucket:
10761088
oneOf:

rust/crd/src/history.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,10 @@ impl SparkHistoryServer {
325325
#[derive(Clone, Debug, Deserialize, JsonSchema, Serialize, Display)]
326326
#[serde(rename_all = "camelCase")]
327327
pub enum LogFileDirectorySpec {
328+
/// An S3 bucket storing the log events
328329
#[strum(serialize = "s3")]
329330
S3(S3LogFileDirectorySpec),
331+
/// A custom log directory
330332
CustomLogDirectory(String),
331333
}
332334

0 commit comments

Comments
 (0)