Skip to content

Commit

Permalink
Spark CRD + Operator v1beta2 (flyteorg#572)
Browse files Browse the repository at this point in the history
* Spark v1beta2

* Update labels

* update propeller

* Update Propeller version

* Bump propeller version

* Fix end-to-end tests
  • Loading branch information
akhurana001 authored Nov 17, 2020
1 parent 0936811 commit 860af42
Show file tree
Hide file tree
Showing 16 changed files with 30,091 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v1
- name: Kustomize and diff
run: DELTA_CHECK=true make kustomize
- uses: engineerd/setup-kind@v0.4.0
- uses: engineerd/setup-kind@v0.5.0
- name: End2End
env:
DOCKER_USERNAME: ${{ github.actor }}
Expand Down
7,527 changes: 7,517 additions & 10 deletions deployment/eks/flyte_generated.yaml

Large diffs are not rendered by default.

7,527 changes: 7,517 additions & 10 deletions deployment/gcp/flyte_generated.yaml

Large diffs are not rendered by default.

7,527 changes: 7,517 additions & 10 deletions deployment/sandbox/flyte_generated.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deployment/test/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
image: docker.io/lyft/flytepropeller:v0.4.8
image: docker.io/lyft/flytepropeller:v0.5.2
imagePullPolicy: IfNotPresent
name: flytepropeller
ports:
Expand Down
7 changes: 3 additions & 4 deletions kustomize/base/operators/spark/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ metadata:
namespace: sparkoperator
labels:
app.kubernetes.io/name: sparkoperator
app.kubernetes.io/version: v2.4.0-v1beta1
app.kubernetes.io/version: v2.4.5-v1beta2
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: sparkoperator
app.kubernetes.io/version: v2.4.0-v1beta1
strategy:
type: Recreate
template:
Expand All @@ -22,7 +21,7 @@ spec:
prometheus.io/path: "/metrics"
labels:
app.kubernetes.io/name: sparkoperator
app.kubernetes.io/version: v2.4.0-v1beta1
app.kubernetes.io/version: v2.4.5-v1beta2
spec:
serviceAccountName: sparkoperator
volumes:
Expand All @@ -31,7 +30,7 @@ spec:
secretName: spark-webhook-certs
containers:
- name: sparkoperator-unknown
image: gcr.io/spark-operator/spark-operator:v2.4.0-v1beta1-0.9.0
image: gcr.io/spark-operator/spark-operator:v1beta2-1.1.2-2.4.5
volumeMounts:
- name: webhook-certs
mountPath: /etc/webhook-certs
Expand Down
3 changes: 2 additions & 1 deletion kustomize/base/operators/spark/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resources:
- spark-operator.yaml
- spark-dummy-crd.yaml
- sparkapplications-crd.yaml
- scheduledsparkapplications-crd.yaml
- deployment.yaml
- webhook.yaml

Expand Down
3,758 changes: 3,758 additions & 0 deletions kustomize/base/operators/spark/scheduledsparkapplications-crd.yaml

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions kustomize/base/operators/spark/spark-dummy-crd.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion kustomize/base/operators/spark/spark-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ rules:
resources: ["mutatingwebhookconfigurations"]
verbs: ["create", "get", "update", "delete"]
- apiGroups: ["sparkoperator.k8s.io"]
resources: ["sparkapplications", "scheduledsparkapplications"]
resources: ["sparkapplications", "scheduledsparkapplications", "sparkapplications/status", "scheduledsparkapplications/status"]
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
Expand Down
Loading

0 comments on commit 860af42

Please sign in to comment.