Commit Graph

232 Commits

Author SHA1 Message Date
Yi Chen d0daf2fd17
Support pod template for Spark 3.x applications (#2141)
* Update API definition to support pod template

Signed-off-by: Yi Chen <github@chenyicn.net>

* Mark pod template field as schemaless

Signed-off-by: Yi Chen <github@chenyicn.net>

* Add kubebuilder marker to preserve unknown fields

Signed-off-by: Yi Chen <github@chenyicn.net>

* Add example for using pod template

Signed-off-by: Yi Chen <github@chenyicn.net>

* Support pod template

Signed-off-by: Yi Chen <github@chenyicn.net>

---------

Signed-off-by: Yi Chen <github@chenyicn.net>
2024-10-24 02:23:30 +00:00
Thomas Newton 5ff8dcf350
`omitempty` corrections (#2255)
* Still working on tests

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Maybe progress

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* First working validation

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Lots of cleanup needed but it actually reproduced

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Working but ugly get schema from CRD

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Satisfactory test

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Add missing omitempty for optional values

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Remove omitempty on required fields

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Run update-crd

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Remove temp schema config

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Tidy

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* go import

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Cover more test cases

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Add tests that spec and metadata are required

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Add tests against error content

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* `go mod tidy`

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Fix lint

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Remove test - hopefully we can add a better test as a follow up

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Make `mainApplicationFile` required

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Regenerated api-docs

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

* Add `MainApplicationFile` in tests

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>

---------

Signed-off-by: Thomas Newton <thomas.w.newton@gmail.com>
2024-10-18 11:06:20 +00:00
bo a1de26dd31
feat: support archives param for spark-submit (#2256)
Signed-off-by: kaka-zb <sin19990111@gmail.com>
2024-10-16 06:20:18 +00:00
Yi Chen 143b16ee75
Update integration test workflow and add golangci lint check (#2197)
* Update integration test workflow

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update golangci lint config

Signed-off-by: Yi Chen <github@chenyicn.net>

---------

Signed-off-by: Yi Chen <github@chenyicn.net>
2024-10-08 02:06:07 +00:00
Kevinz 6ae1b2f69c
feat: support driver and executor pod use different priority (#2146)
* feat: support driver and executor pod use different priority

Signed-off-by: Kevin Wu <kevin.wu@momenta.ai>

* feat: if *app.Spec.Driver.PriorityClassName and *app.Spec.Executor.PriorityClassName specifically defined, then can precedence over spec.batchSchedulerOptions.priorityClassName

Signed-off-by: Kevin Wu <kevin.wu@momenta.ai>

* feat: merge the logic of setPodPriorityClassName into addPriorityClassName

Signed-off-by: Kevin Wu <kevin.wu@momenta.ai>

* feat: support driver and executor pod use different priority

Signed-off-by: Kevin Wu <kevin.wu@momenta.ai>
Signed-off-by: Kevin.Wu <kevin.wu@momenta.ai>

* feat: if *app.Spec.Driver.PriorityClassName and *app.Spec.Executor.PriorityClassName specifically defined, then can precedence over spec.batchSchedulerOptions.priorityClassName

Signed-off-by: Kevin Wu <kevin.wu@momenta.ai>
Signed-off-by: Kevin.Wu <kevin.wu@momenta.ai>

* feat: merge the logic of setPodPriorityClassName into addPriorityClassName

Signed-off-by: Kevin Wu <kevin.wu@momenta.ai>
Signed-off-by: Kevin.Wu <kevin.wu@momenta.ai>

* feat: add adjust pointer if is nil

Signed-off-by: Kevin.Wu <kevin.wu@momenta.ai>

* feat: remove spec.batchSchedulerOptions.priorityClassName define , split driver and executor pod priorityClass

Signed-off-by: Kevin Wu <kevin.wu@momenta.ai>

* feat: remove spec.batchSchedulerOptions.priorityClassName define , split driver and executor pod priorityClass

Signed-off-by: Kevin Wu <kevin.wu@momenta.ai>

* feat: Optimize code to avoid null pointer exceptions

Signed-off-by: Kevin.Wu <kevin.wu@momenta.ai>

* fix: remove backup crd files

Signed-off-by: Kevin.Wu <kevin.wu@momenta.ai>

* fix: remove BatchSchedulerOptions.PriorityClassName test code

Signed-off-by: Kevin Wu <kevin.wu@momenta.ai>

* fix: add driver and executor pod priorityClassName test code

Signed-off-by: Kevin Wu <kevin.wu@momenta.ai>

---------

Signed-off-by: Kevin Wu <kevin.wu@momenta.ai>
Signed-off-by: Kevin.Wu <kevin.wu@momenta.ai>
Co-authored-by: Kevin Wu <kevin.wu@momenta.ai>
2024-09-10 06:27:19 +00:00
Yi Chen bca6aa85cc
Update release workflow and docs (#2121)
Signed-off-by: Yi Chen <github@chenyicn.net>
2024-08-29 13:07:05 +00:00
Yi Chen 0dc641bd1d
Use controller-runtime to reconsturct spark operator (#2072)
* Use controller-runtime to reconstruct spark operator

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update helm charts

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update examples

Signed-off-by: Yi Chen <github@chenyicn.net>

---------

Signed-off-by: Yi Chen <github@chenyicn.net>
2024-08-01 12:29:06 +00:00
Yi Chen a3ec8f193f
Update workflow and docs for releasing Spark operator (#2089)
* Update .helmignore

Signed-off-by: Yi Chen <github@chenyicn.net>

* Add release docs

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update release workflow

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update integration test workflow

Signed-off-by: Yi Chen <github@chenyicn.net>

* Add workflow for pushing tag when VERSION file changes

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update

Signed-off-by: Yi Chen <github@chenyicn.net>

* Remove the leading 'v' from chart version

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update docker image tags

Signed-off-by: Yi Chen <github@chenyicn.net>

---------

Signed-off-by: Yi Chen <github@chenyicn.net>
2024-08-01 12:26:06 +00:00
Yi Chen 779ea3debc
Update the process to build api-docs, generate CRD manifests and code (#2046)
* Update .gitignore

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update .dockerignore

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update Makefile

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update the process to generate api docs

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update the workflow to generate api docs

Signed-off-by: Yi Chen <github@chenyicn.net>

* Use controller-gen to generate CRD and deep copy related methods

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update helm chart CRDs

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update workflow for building spark operator

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update README.md

Signed-off-by: Yi Chen <github@chenyicn.net>

---------

Signed-off-by: Yi Chen <github@chenyicn.net>
2024-07-22 05:10:00 +00:00
Yi Chen 16cd35a0a2
Update README and documentation (#2047)
* Update docs

Signed-off-by: Yi Chen <github@chenyicn.net>

* Remove docs and update README

Signed-off-by: Yi Chen <github@chenyicn.net>

* Add link to monthly community meeting

Signed-off-by: Yi Chen <github@chenyicn.net>

---------

Signed-off-by: Yi Chen <github@chenyicn.net>
2024-06-27 11:05:11 +00:00
Yuri Niitsuma 5a5983b1ae
📝 Add Inter&Co to who-is-using.md (#2040)
Add [Inter&Co](https://inter.co/) to who is using the SparkOperator.

Signed-off-by: Yuri Niitsuma <ignitzhjfk@gmail.com>
2024-05-31 19:40:41 +00:00
Bo Yang b723367d79
Support exposing extra TCP ports in Spark Driver via K8s Ingress (#1998)
* Add driverIngressOptions in SparkApplication CRD

Signed-off-by: Bo (AIML) Yang <bo_yang6@apple.com>

* Update chart version to 1.3.0

Signed-off-by: Bo (AIML) Yang <bo_yang6@apple.com>

* Update helm chart README

Signed-off-by: Bo (AIML) Yang <bo_yang6@apple.com>

* Fix make detect-crds-drift

Signed-off-by: Bo (AIML) Yang <bo_yang6@apple.com>

* Update api-docs.md

Signed-off-by: Bo (AIML) Yang <bo_yang6@apple.com>

---------

Signed-off-by: Bo (AIML) Yang <bo_yang6@apple.com>
2024-05-20 19:42:48 +00:00
Matthew Rossi a1efb79a4f
Update Spark Job Namespace docs (#2000)
Signed-off-by: Matthew Rossi <mattw.rossi@gmail.com>
2024-05-07 15:58:43 +00:00
Cian Gallagher 333ee0bcb2
feat: add support for service labels on driver-svc (#1985)
* feat: add support for service labels on driver-svc

Signed-off-by: Cian Gallagher <cian.gallagher@zendesk.com>

* docs: update helm docs

Signed-off-by: Cian Gallagher <cian.gallagher@zendesk.com>

* fix: undo changes to api-docs

Signed-off-by: Cian Gallagher <cian.gallagher@zendesk.com>

* docs: update api-docs

Signed-off-by: Cian Gallagher <cian.gallagher@zendesk.com>

* fix: update appVersion

Signed-off-by: Cian Gallagher <cian.gallagher@zendesk.com>

* ci: remove step to check api change

Signed-off-by: Cian Gallagher <cian.gallagher@zendesk.com>

* docs: update helm-docs

Signed-off-by: Cian Gallagher <cian.gallagher@zendesk.com>

* docs: update helm-docs

Signed-off-by: Cian Gallagher <cian.gallagher@zendesk.com>

* fix: update app version

Signed-off-by: Cian Gallagher <cian.gallagher@zendesk.com>

* docs: update helm docs

Signed-off-by: Cian Gallagher <cian.gallagher@zendesk.com>

---------

Signed-off-by: Cian Gallagher <cian.gallagher@zendesk.com>
2024-04-26 00:44:46 +00:00
Jacob Salway ccb3ceb54b
Add emptyDir sizeLimit support for local dirs (#1993)
* Add emptyDir sizeLimit support

Signed-off-by: Jacob Salway <jacob.salway@rokt.com>

* Bump appVersion and add sizeLimit example

Signed-off-by: Jacob Salway <jacob.salway@rokt.com>

---------

Signed-off-by: Jacob Salway <jacob.salway@rokt.com>
2024-04-19 22:10:20 +00:00
Duc Nguyen f6c9d64cd6
chore: Add Timo to user list (#1615) 2024-04-19 04:17:47 +00:00
Yi Chen 6ded3acd1c
Add some helm chart unit tests and fix spark service account render failure when extra annotations are specified (#1967)
* Add helm unit tests

Signed-off-by: Yi Chen <github@chenyicn.net>

* Fix: failed to render spark service account when extra annotations are specified

Signed-off-by: Yi Chen <github@chenyicn.net>

* Update developer guide

Signed-off-by: Yi Chen <github@chenyicn.net>

* Bump helm chart version

Signed-off-by: Yi Chen <github@chenyicn.net>

---------

Signed-off-by: Yi Chen <github@chenyicn.net>
2024-04-15 20:32:52 +00:00
Zev Isert 7e34e7ea1e
chore: replace GoogleCloudPlatform/spark-on-k8s-operator with kubeflow/spark-operator (#1937)
Signed-off-by: Zev Isert <dev@zevisert.ca>
2024-04-08 18:01:27 +00:00
Cian Gallagher 8a31a4638c
feat: add support for custom service labels (#1952)
* feat: add support for custom service labels

Signed-off-by: Cian Gallagher <cian@ciangallagher.net>

* chore: correctly format files

Signed-off-by: Cian Gallagher <cian@ciangallagher.net>

* chore: bump chart version to 1.1.30

Signed-off-by: Cian Gallagher <cian@ciangallagher.net>

---------

Signed-off-by: Cian Gallagher <cian@ciangallagher.net>
2024-04-07 16:58:26 +00:00
shahsiddharth08 43f489dd9a
README for installing operator using kustomize with custom namespace and service name (#1778)
* Installing operator using kustomize and custom namespace and service name

* update quick start guide with suggested changes.
2024-04-06 18:43:25 +00:00
Taeyeop Kim 0dd08b220e
remove unmatched quotes from user-guide.md (#1584) 2024-04-06 17:33:25 +00:00
Jacob Salway b49b1b48d8
Add Rokt to who-is-using.md (#1867) 2023-11-09 12:34:20 -08:00
Volodymyr Kot e146848959
Fix docs for Volcano integration (#1719)
Co-authored-by: Volodymyr Kot <volodymyrkot.palantir@gmail.com>
2023-10-26 09:33:58 -07:00
Jose Soto 678d313650
Add qualytics to who is using (#1736)
Co-authored-by: Yinan Li <ynli@google.com>
2023-10-26 09:31:55 -07:00
ordukhanian 86d71c828b
* Added support for `seccompProfile` in Spark application CRD. It is necessary for Kubernetes Pod Security Standards Restricted profile. (#1768)
https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted

* Fixed pre-commit jobs.
  `build-helm-chart` and `integration-test` were failing with:
  `Run manusa/actions-setup-minikube@v2.4.2
   Error: Unsupported OS, action only works in Ubuntu 18 or 20`
2023-10-26 09:30:27 -07:00
JunaidChaudry 93a9aa88df
Updating webhook docs to also mention eks (#1763) 2023-10-26 09:29:29 -07:00
Alexander Ryabov 223ec8d317
Link to helm upgrade docs fixed (#1783) 2023-10-26 09:26:13 -07:00
Mat Schaffer 0ad755c1eb
Expand ingress docs a bit (#1806)
This notes the controller intended to be used with the operator-managed ingress resources.

When setting up my own cluster I also tried https://docs.nginx.com/nginx-ingress-controller/ and https://kubernetes-sigs.github.io/aws-load-balancer-controller/ but the path format generated by the operator won't work with those.
2023-10-26 09:24:56 -07:00
Mat Schaffer 5b7a6e3ae8
Roblox who-is (#1784) 2023-10-26 09:22:25 -07:00
Ashish Pushp 5f2efd4ff9
Molex started using spark K8 operator. (#1714)
Used to run Analytics Jobs and ETL pipelines along with AI/ML jobs.
2023-04-04 10:59:46 -07:00
André Claudino fff3ba6219
Add Kognita to "Who is using" (#1637) 2023-03-17 08:59:08 -07:00
Harry Su e7361ba2b4
add lifecycle to executor (#1674) 2023-03-17 08:57:12 -07:00
David Dillon 94775cd89c
Update README - secrets and sidecars need mutating webhooks (#1550)
* Update README - specify sidecars needing mutating webhooks

Like Init-Containers, Sidecars require mutating admission webhooks to work.

* Also update for mounting secrets
2022-06-15 16:06:08 -07:00
bhargav joshi bd71199e22
remove quotes from yaml file (#1524) 2022-05-11 20:27:50 -07:00
Andrei Neagoe 651c17e5f4
Updated default registry to ghcr.io (#1454)
* Updated default registry to ghcr.io

* Bumped chart version and built api-docs

* Updated build-helm-chart job, step Run chart-testing (install) to look for the correct registry
2022-02-13 09:44:27 -08:00
TomHellier ba16242de9
Various CI improvements (#1418)
This change renames the github workflows to be clearer about their purpose, and adds a set of tests which
aim to force developers to increment the appVersion if they have changed anything with the spark-operator docker container
or the chart version if they have updated the chart.

Signed-off-by: Tom Hellier <me@tomhellier.com>
2021-12-03 15:51:23 -08:00
Hoa Le d1987d5291
Add C2FO to who is using (#1391)
* Add C2FO to who is using

* Update who is using
2021-11-17 21:17:31 -08:00
Mark Schroering 36ba060058
Add DeepCure to who is using (#1389) 2021-11-12 15:04:30 -08:00
Juan David Correa c6c97a1765
Update who-is-using.md (#1338)
hi guys, 

I forgot to put the url. excuse me

Thank you
2021-09-01 21:40:20 -07:00
Juan David Correa 0af8dbeae1
Update who-is-using.md (#1082) 2021-08-31 14:44:07 -07:00
Beni Ben zikry 74ea1c86c9
Add support for executor service account (#1322) 2021-08-22 10:20:15 -07:00
william-wang 53b50d43da
fix the invalid repo address (#1291)
Signed-off-by: william-wang <wang.platform@gmail.com>
2021-07-06 15:03:51 -07:00
Khor Shu Heng a123efd912
Allow user to specify service annotation on Spark UI service (#1264)
* Allow user to specify service annotation on Spark UI service

* Add service annotation in chart crd

Signed-off-by: Khor Shu Heng <khor.heng@gojek.com>

* Bump chart version

Signed-off-by: Khor Shu Heng <khor.heng@gojek.com>

Co-authored-by: Khor Shu Heng <khor.heng@gojek.com>
2021-05-25 14:40:05 -07:00
Sébastien Maintrot 7ce314d772
implement shareProcessNamespace in SparkPodSpec (#1262)
* implement shareProcessNamespace in SparkPodSpec

* fixup! implement shareProcessNamespace in SparkPodSpec
2021-05-24 22:27:21 -07:00
Run Lin 24a884258e
Add DiDi to who-is-using.md (#1255) 2021-05-11 09:18:08 -07:00
Luiz Muller 9b047e5465
doc: update who is using page (#1251) 2021-05-04 12:35:20 -07:00
lomo 405d8179ba
Update who-is-using.md (#1249) 2021-05-04 08:17:07 -07:00
Marco Zoveralli 7f2ccdbe2a
[#1239] Custom service port name for spark application UI (#1240)
* [operator] Adding service port name for spark UI exposure

* cleanup
2021-04-30 13:29:31 -07:00
ChethanUK fc206516ae
Updating Spark version from 3.0 to 3.1.1 (#1153)
* Updating Spark version from 3.0 to 3.1

* Adding github actions

* Add configmaps resources into spark-role 

Spark 3.1 needs permission to create ConfigMaps, Pods and services

* Typo fix - Change unit test to unit tests

* Format fix on workflow

* Update main.yaml

* Update main.yaml

* Update Makefile and Bump Chart version

* Bump Chart version to 1.1.0

* Add Chart lint docs
2021-04-28 13:14:21 -07:00
Duyet Le 2cd3275b50
Fossil is using Spark Operator for Production (#1244) 2021-04-27 19:52:44 -07:00