Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Jul 4, 2023
1 parent e5d8ad1 commit d3007d3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/templates/kuttl/resources/03-assert.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,30 @@ status:
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: airflow-worker-resources-from-pod-overrides
spec:
template:
spec:
containers:
- name: airflow
resources:
requests:
cpu: 300m
memory: 1Gi
limits:
cpu: 900m
memory: 1Gi
- name: metrics
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
- name: vector
{% endif %}
status:
readyReplicas: 1
replicas: 1
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: airflow-scheduler-default
status:
Expand Down
10 changes: 10 additions & 0 deletions tests/templates/kuttl/resources/03-install-airflow-cluster.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ spec:
memory:
limit: 2Gi
replicas: 1
resources-from-pod-overrides:
podOverrides:
spec:
containers:
- name: airflow
resources:
requests:
cpu: 300m
limits:
cpu: 900m
schedulers:
config:
logging:
Expand Down

0 comments on commit d3007d3

Please sign in to comment.