Skip to content

Commit

Permalink
[Addon kubevela#603] Add Apache Spark as a experimental addon
Browse files Browse the repository at this point in the history
Signed-off-by: yanghua <yanghua1127@gmail.com>
  • Loading branch information
yanghua committed Feb 27, 2023
1 parent d262ac7 commit 3e56c17
Showing 1 changed file with 44 additions and 6 deletions.
50 changes: 44 additions & 6 deletions experimental/addons/spark-kubernetes-operator/template.cue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ output: {
kind: "Application"
spec: {
components: [
{
{
type: "k8s-objects"
name: "spark-operator-ns"
properties: objects: [{
Expand All @@ -13,6 +13,23 @@ output: {
metadata: name: parameter.namespace
}]
},
{
type: "k8s-objects"
name: "spark-cluster-ns"
properties: objects: [{
apiVersion: "v1"
kind: "Namespace"
metadata: name: "spark-cluster"
},
{
apiVersion: "v1"
kind: "ServiceAccount"
metadata: {
name: "spark"
namespace: "spark-cluster"
}
}】
},
{
name: "spark-operator-helm"
type: "helm"
Expand Down Expand Up @@ -52,12 +69,33 @@ output: {
]
policies: [
{
name: "gc-dependency",
type: "garbage-collect",
properties: {
order: "dependency"
}
name: "gc-dependency",
type: "garbage-collect",
properties: {
order: "dependency"
}
}
{
type: "shared-resource"
name: "shared-resource-via-namespace"
properties: rules: [{
selector: resourceTypes: ["Namespace"]
}]
}
{
type: "topology"
name: "deploy-operator"
properties: {
namespace: parameter.namespace
if parameter.clusters != _|_ {
clusters: parameter.clusters
}

if parameter.clusters == _|_ {
clusterLabelSelector: {}
}
}
}
]
}
}

0 comments on commit 3e56c17

Please sign in to comment.