Skip to content
Open
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
147 changes: 147 additions & 0 deletions tests/templates/kuttl/smoke/30-assert.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ metadata:
app.kubernetes.io/role-group: default
restarter.stackable.tech/enabled: "true"
stackable.tech/vendor: Stackable
ownerReferences:
- apiVersion: hbase.stackable.tech/v1alpha1
controller: true
kind: HbaseCluster
name: test-hbase
spec:
podManagementPolicy: Parallel
replicas: 2
Expand Down Expand Up @@ -314,7 +319,48 @@ spec:
name: log
- mountPath: /stackable/listener
name: listener
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
- args:
- |
mkdir --parents /stackable/log/_vector-state
# Vector will ignore SIGTERM (as PID != 1) and must be shut down by writing a shutdown trigger file
vector --config /stackable/config/vector.yaml & vector_pid=$!
if [ ! -f "/stackable/log/_vector/shutdown" ]; then
mkdir -p /stackable/log/_vector && inotifywait -qq --event create /stackable/log/_vector; fi
sleep 1
kill $vector_pid
command:
- /bin/bash
- -x
- -euo
- pipefail
- -c
env:
- name: VECTOR_LOG
value: info
- name: VECTOR_AGGREGATOR_ADDRESS
valueFrom:
configMapKeyRef:
key: ADDRESS
name: vector-aggregator-discovery
imagePullPolicy: IfNotPresent
name: vector
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 250m
memory: 128Mi
volumeMounts:
- mountPath: /stackable/config
name: hbase-config
- mountPath: /stackable/log
name: log
{% endif %}
enableServiceLinks: false
securityContext:
fsGroup: 1000
serviceAccountName: test-hbase-serviceaccount
terminationGracePeriodSeconds: 1200
volumes:
Expand All @@ -335,6 +381,13 @@ spec:
metadata:
annotations:
listeners.stackable.tech/listener-class: {{ test_scenario['values']['listener-class'] }}
labels:
app.kubernetes.io/component: master
app.kubernetes.io/instance: test-hbase
app.kubernetes.io/managed-by: hbase.stackable.com_hbasecluster
app.kubernetes.io/name: hbase
app.kubernetes.io/role-group: default
stackable.tech/vendor: Stackable
spec:
accessModes:
- ReadWriteMany
Expand Down Expand Up @@ -479,7 +532,48 @@ spec:
name: log
- mountPath: /stackable/listener
name: listener
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
- args:
- |
mkdir --parents /stackable/log/_vector-state
# Vector will ignore SIGTERM (as PID != 1) and must be shut down by writing a shutdown trigger file
vector --config /stackable/config/vector.yaml & vector_pid=$!
if [ ! -f "/stackable/log/_vector/shutdown" ]; then
mkdir -p /stackable/log/_vector && inotifywait -qq --event create /stackable/log/_vector; fi
sleep 1
kill $vector_pid
command:
- /bin/bash
- -x
- -euo
- pipefail
- -c
env:
- name: VECTOR_LOG
value: info
- name: VECTOR_AGGREGATOR_ADDRESS
valueFrom:
configMapKeyRef:
key: ADDRESS
name: vector-aggregator-discovery
imagePullPolicy: IfNotPresent
name: vector
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 250m
memory: 128Mi
volumeMounts:
- mountPath: /stackable/config
name: hbase-config
- mountPath: /stackable/log
name: log
{% endif %}
enableServiceLinks: false
securityContext:
fsGroup: 1000
serviceAccountName: test-hbase-serviceaccount
terminationGracePeriodSeconds: 3600
volumes:
Expand All @@ -500,6 +594,13 @@ spec:
metadata:
annotations:
listeners.stackable.tech/listener-class: {{ test_scenario['values']['listener-class'] }}
labels:
app.kubernetes.io/component: regionserver
app.kubernetes.io/instance: test-hbase
app.kubernetes.io/managed-by: hbase.stackable.com_hbasecluster
app.kubernetes.io/name: hbase
app.kubernetes.io/role-group: default
stackable.tech/vendor: Stackable
spec:
accessModes:
- ReadWriteMany
Expand All @@ -525,6 +626,11 @@ metadata:
app.kubernetes.io/role-group: default
restarter.stackable.tech/enabled: "true"
stackable.tech/vendor: Stackable
ownerReferences:
- apiVersion: hbase.stackable.tech/v1alpha1
controller: true
kind: HbaseCluster
name: test-hbase
spec:
podManagementPolicy: Parallel
replicas: 2
Expand Down Expand Up @@ -635,7 +741,48 @@ spec:
name: log
- mountPath: /stackable/listener
name: listener
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
- args:
- |
mkdir --parents /stackable/log/_vector-state
# Vector will ignore SIGTERM (as PID != 1) and must be shut down by writing a shutdown trigger file
vector --config /stackable/config/vector.yaml & vector_pid=$!
if [ ! -f "/stackable/log/_vector/shutdown" ]; then
mkdir -p /stackable/log/_vector && inotifywait -qq --event create /stackable/log/_vector; fi
sleep 1
kill $vector_pid
command:
- /bin/bash
- -x
- -euo
- pipefail
- -c
env:
- name: VECTOR_LOG
value: info
- name: VECTOR_AGGREGATOR_ADDRESS
valueFrom:
configMapKeyRef:
key: ADDRESS
name: vector-aggregator-discovery
imagePullPolicy: IfNotPresent
name: vector
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 250m
memory: 128Mi
volumeMounts:
- mountPath: /stackable/config
name: hbase-config
- mountPath: /stackable/log
name: log
{% endif %}
enableServiceLinks: false
securityContext:
fsGroup: 1000
serviceAccountName: test-hbase-serviceaccount
terminationGracePeriodSeconds: 300
volumes:
Expand Down