Skip to content
Open
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
27 changes: 0 additions & 27 deletions tests/templates/kuttl/cluster-operation/20-stop-trino.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,6 @@ kind: TrinoCluster
metadata:
name: trino
spec:
image:
{% if test_scenario['values']['trino-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['trino-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['trino-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['trino-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
catalogLabelSelector: {}
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
vectorAggregatorConfigMapName: vector-aggregator-discovery
{% endif %}
clusterOperation:
stopped: true
reconciliationPaused: false
coordinators:
config:
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 1
workers:
config:
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 1
27 changes: 0 additions & 27 deletions tests/templates/kuttl/cluster-operation/30-pause-trino.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,6 @@ kind: TrinoCluster
metadata:
name: trino
spec:
image:
{% if test_scenario['values']['trino-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['trino-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['trino-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['trino-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
catalogLabelSelector: {}
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
vectorAggregatorConfigMapName: vector-aggregator-discovery
{% endif %}
clusterOperation:
stopped: false
reconciliationPaused: true
coordinators:
config:
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 1
workers:
config:
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 1
27 changes: 0 additions & 27 deletions tests/templates/kuttl/cluster-operation/40-restart-trino.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,6 @@ kind: TrinoCluster
metadata:
name: trino
spec:
image:
{% if test_scenario['values']['trino-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['trino-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['trino-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['trino-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
catalogLabelSelector: {}
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
vectorAggregatorConfigMapName: vector-aggregator-discovery
{% endif %}
clusterOperation:
stopped: false
reconciliationPaused: false
coordinators:
config:
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 1
workers:
config:
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 1
21 changes: 0 additions & 21 deletions tests/templates/kuttl/opa-authorization/12-stop-opa.yaml.j2

This file was deleted.

7 changes: 7 additions & 0 deletions tests/templates/kuttl/opa-authorization/50-assert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 300
commands:
# Check that a graceful shutdown was triggered (it needs OPA permissions)
- script: 'kubectl -n $NAMESPACE logs trino-worker-default-0 | grep -P "io.trino.server.NodeStateManager[\h]*Shutdown requested"'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: trino.stackable.tech/v1alpha1
kind: TrinoCluster
metadata:
name: trino
spec:
clusterOperation:
stopped: true