Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Fix resource limits test #151

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ All notable changes to this project will be documented in this file.

- Bumped image to `3.3.0-stackable0.2.0` in tests and docs ([#145])
- BREAKING: use resource limit struct instead of passing spark configuration arguments ([#147])
- Fixed resources test ([#151])

[#145]: https://github.com/stackabletech/spark-k8s-operator/pull/145
[#147]: https://github.com/stackabletech/spark-k8s-operator/pull/147
[#151]: https://github.com/stackabletech/spark-k8s-operator/pull/151

## [0.5.0] - 2022-09-06

Expand Down
36 changes: 35 additions & 1 deletion tests/templates/kuttl/resources/10-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,44 @@ apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 900
---
# The Job starting the whole process
apiVersion: spark.stackable.tech/v1alpha1
kind: SparkApplication
metadata:
name: spark-resources
status:
phase: Succeeded
---
apiVersion: v1
kind: Pod
metadata:
labels:
spark-role: driver
app.kubernetes.io/managed-by: spark-k8s-operator
spec:
containers:
- name: spark-driver
resources:
limits:
cpu: 1500m
# N.B. spark adds memoryOverhead of 10% by default
memory: 1408Mi
requests:
cpu: "1"
memory: 1408Mi
---
apiVersion: v1
kind: Pod
metadata:
labels:
job-name: spark-resources
app.kubernetes.io/managed-by: spark-k8s-operator
spec:
containers:
- name: spark-submit
resources:
limits:
cpu: 200m
memory: 1Gi
requests:
cpu: 100m
memory: 1Gi
10 changes: 0 additions & 10 deletions tests/templates/kuttl/resources/13-assert.yaml

This file was deleted.