Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Update to spark 1.1.0 and use OLM subscription for install (#202)
Browse files Browse the repository at this point in the history
Signed-off-by: Landon LaSmith <LLaSmith@redhat.com>
  • Loading branch information
LaVLaS authored Oct 27, 2020
1 parent 3eb9f51 commit 9d4b574
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 209 deletions.
7 changes: 1 addition & 6 deletions kfdef/kfctl_openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ spec:
repoRef:
name: manifests
path: radanalyticsio/spark/cluster
name: radanalyticsio-cluster
- kustomizeConfig:
repoRef:
name: manifests
path: radanalyticsio/spark/operator
name: radanalyticsio-spark-operator
name: radanalyticsio-spark-cluster
- kustomizeConfig:
repoRef:
name: manifests
Expand Down
7 changes: 1 addition & 6 deletions kfdef/kfctl_openshift_distributed_training.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ spec:
repoRef:
name: manifests
path: radanalyticsio/spark/cluster
name: radanalyticsio-cluster
- kustomizeConfig:
repoRef:
name: manifests
path: radanalyticsio/spark/operator
name: radanalyticsio-spark-operator
name: radanalyticsio-spark-cluster
- kustomizeConfig:
repoRef:
name: manifests
Expand Down
11 changes: 2 additions & 9 deletions radanalyticsio/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Radanalytics

Radanalytics comes with 1 component:

1. [spark operator](#spark-operator)
[Radanalytics](https://radanalytics.io/) contains one component, a [spark operator](#spark-operator), that deploy [Apache Spark](https://spark.apache.org) clusters for large-scale data processing.

## Spark Operator

Expand All @@ -22,12 +20,7 @@ Spark Operator does not provide any parameters.
repoRef:
name: manifests
path: radanalyticsio/spark/cluster
name: radanalyticsio-cluster
- kustomizeConfig:
repoRef:
name: manifests
path: radanalyticsio/spark/operator
name: radanalyticsio-spark-operator
name: radanalyticsio-spark-cluster
```


Expand Down
47 changes: 0 additions & 47 deletions radanalyticsio/spark/cluster/base/clusterrole.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions radanalyticsio/spark/cluster/base/clusterrolebinding.yaml

This file was deleted.

21 changes: 2 additions & 19 deletions radanalyticsio/spark/cluster/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- sparkapplications.radanalytics.io.crd.yaml
- sparkclusters.radanalytics.io.crd.yaml
- sparkhistoryservers.radanalytics.io.crd.yaml
- service-account.yaml
- clusterrole.yaml
- clusterrolebinding.yaml
namespace: opendatahub

vars:
- name: namespace
objref:
kind: ServiceAccount
name: spark-operator
apiVersion: v1
fieldref:
fieldpath: metadata.namespace

configurations:
- params.yaml
resources:
- subscription.yaml
4 changes: 0 additions & 4 deletions radanalyticsio/spark/cluster/base/service-account.yaml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 12 additions & 0 deletions radanalyticsio/spark/cluster/base/subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: radanalytics-spark
namespace: opendatahub
spec:
channel: alpha
installPlanApproval: Automatic
name: radanalytics-spark
source: community-operators
sourceNamespace: openshift-marketplace
startingCSV: sparkoperator.v1.1.0
45 changes: 0 additions & 45 deletions radanalyticsio/spark/operator/base/deployment.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions radanalyticsio/spark/operator/base/kustomization.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion tests/basictests/radanalytics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function verify_spark_operator_install() {
header "Testing Radanalytics Spark Operator installation"
os::cmd::expect_success "oc project ${ODHPROJECT}"
os::cmd::expect_success_and_text "oc get deployment spark-operator" "spark-operator"
runningpods=($(oc get pods -l app.kubernetes.io/name=spark-operator --field-selector="status.phase=Running" -o jsonpath="{$.items[*].metadata.name}"))
runningpods=($(oc get pods -l app.kubernetes.io/name=radanalytics-spark-operator --field-selector="status.phase=Running" -o jsonpath="{$.items[*].metadata.name}"))
os::cmd::expect_success_and_text "echo ${#runningpods[@]}" "1"
}

Expand Down
7 changes: 1 addition & 6 deletions tests/setup/kfctl_openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@ spec:
repoRef:
name: manifests
path: radanalyticsio/spark/cluster
name: radanalyticsio-cluster
- kustomizeConfig:
repoRef:
name: manifests
path: radanalyticsio/spark/operator
name: radanalyticsio-spark-operator
name: radanalyticsio-spark-cluster
- kustomizeConfig:
repoRef:
name: manifests
Expand Down

0 comments on commit 9d4b574

Please sign in to comment.