Skip to content

Commit

Permalink
[Addon kubevela#603] Refactor the spark-workload parameter definition…
Browse files Browse the repository at this point in the history
… (add proxyUser option)

Signed-off-by: yanghua <[email protected]>
  • Loading branch information
yanghua committed Mar 2, 2023
1 parent 7036a63 commit 4e5c475
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions experimental/addons/spark-kubernetes-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ vela ls -A | grep spark

```
vela show spark-workload
# Specification
+---------------------+------------------------------------------------------------------------------------------------------+---------------------------------+----------+---------+
| NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
+---------------------+------------------------------------------------------------------------------------------------------+---------------------------------+----------+---------+
Expand All @@ -47,6 +46,8 @@ vela show spark-workload
| mainClass | Specify the fully-qualified main class of the Spark application. | string | true | |
| mainApplicationFile | Specify the path to a bundled JAR, Python, or R file of the application. | string | true | |
| sparkVersion | Specify the version of Spark the application uses. | string | true | |
| proxyUser | Specify the user to impersonate when submitting the application. It maps to the command-line flag | string | false | |
| | “–proxy-user” in spark-submit. | | | |
| restartPolicy | Specify the policy on if and in which conditions the controller should restart an application. | [restartPolicy](#restartpolicy) | false | |
| driver | Specify the driver sepc request for the driver pod. | [driver](#driver) | true | |
| executor | Specify the executor spec request for the executor pod. | [executor](#executor) | true | |
Expand Down Expand Up @@ -111,7 +112,7 @@ vela show spark-workload
| | respectively. | | | |
| coreLimit | Specify a hard limit on CPU cores for the pod. | string | false | |
| memory | Specify the amount of memory to request for the pod. | string | false | |
| instances | | int | false | |
| instances | Specify the number of executor instances. | int | false | |
| labels | Specify the Kubernetes labels to be added to the pod. | map[string]string | false | |
| volumeMounts | Specify the volumes listed in “.spec.volumes” to mount into the main container’s filesystem. | [[]volumeMounts](#volumemounts) | false | |
+--------------+------------------------------------------------------------------------------------------------------+---------------------------------+----------+---------+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ template: {
mainApplicationFile: string
// +usage=Specify the version of Spark the application uses
sparkVersion: string
// +usage=Specify the user to impersonate when submitting the application. It maps to the command-line flag “–proxy-user” in spark-submit
proxyUser?: string
// +usage=Specify the policy on if and in which conditions the controller should restart an application
restartPolicy?: {
// +usage=Type value option: "Always", "Never", "OnFailure"
Expand Down Expand Up @@ -64,7 +66,8 @@ template: {
// +usage=Specify a hard limit on CPU cores for the pod
coreLimit?: string
// +usage=Specify the amount of memory to request for the pod
memory?: string
memory?: string
// +usage=Specify the number of executor instances
instances?: int
// +usage=Specify the Kubernetes labels to be added to the pod
labels?: [string]: string
Expand Down

0 comments on commit 4e5c475

Please sign in to comment.