File tree Expand file tree Collapse file tree
tests/templates/kuttl/external-access Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : v1
3+ kind : LimitRange
4+ metadata :
5+ name : limit-request-ratio
6+ spec :
7+ limits :
8+ - type : " Container"
9+ maxLimitRequestRatio :
10+ cpu : 5
11+ memory : 1
Original file line number Diff line number Diff line change 1+ {% if test_scenario ['values' ]['openshift' ] == 'true' %}
2+ # see https://github.com/stackabletech/issues/issues/566
3+ ---
4+ apiVersion: kuttl.dev/v1beta1
5+ kind: TestStep
6+ commands:
7+ - script: kubectl patch namespace $NAMESPACE -p '{"metadata":{"labels":{"pod-security.kubernetes.io/enforce":"privileged"}}}'
8+ timeout: 120
9+ {% endif %}
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : kuttl.dev/v1beta1
3+ kind : TestStep
4+ commands :
5+ - script : |
6+ envsubst < listener-classes.yaml | kubectl apply -n $NAMESPACE -f -
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : kuttl.dev/v1beta1
3+ kind : TestAssert
4+ timeout : 600
5+ metadata :
6+ name : install-hive
7+ commands :
8+ - script : kubectl -n $NAMESPACE wait --for=condition=available hiveclusters.hive.stackable.tech/test-hive --timeout 601s
9+ ---
10+ apiVersion : apps/v1
11+ kind : StatefulSet
12+ metadata :
13+ name : test-hive-metastore-default
14+ status :
15+ readyReplicas : 2
16+ replicas : 2
17+
18+ ---
19+ apiVersion : apps/v1
20+ kind : StatefulSet
21+ metadata :
22+ name : test-hive-metastore-external-unstable
23+ status :
24+ readyReplicas : 1
25+ replicas : 1
26+ ---
27+ apiVersion : apps/v1
28+ kind : StatefulSet
29+ metadata :
30+ name : test-hive-metastore-cluster-internal
31+ status :
32+ readyReplicas : 1
33+ replicas : 1
34+ ---
35+ apiVersion : policy/v1
36+ kind : PodDisruptionBudget
37+ metadata :
38+ name : test-hive-metastore
39+ status :
40+ expectedPods : 4
41+ currentHealthy : 4
42+ disruptionsAllowed : 1
43+ ---
44+ apiVersion : v1
45+ kind : Service
46+ metadata :
47+ name : test-hive-metastore-cluster-internal
48+ spec :
49+ type : ClusterIP # cluster-internal
50+ ---
51+ apiVersion : v1
52+ kind : Service
53+ metadata :
54+ name : test-hive-metastore-default
55+ spec :
56+ type : NodePort # external-stable
57+ ---
58+ apiVersion : v1
59+ kind : Service
60+ metadata :
61+ name : test-hive-metastore-external-unstable
62+ spec :
63+ type : NodePort # external-unstable
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : kuttl.dev/v1beta1
3+ kind : TestStep
4+ timeout : 600
5+ commands :
6+ - script : >
7+ envsubst < install-hive.yaml |
8+ kubectl apply -n $NAMESPACE -f -
Original file line number Diff line number Diff line change 1+ ---
2+ volumePermissions:
3+ enabled: false
4+ securityContext:
5+ runAsUser: auto
6+
7+ primary:
8+ podSecurityContext:
9+ {% if test_scenario ['values' ]['openshift' ] == 'true' %}
10+ enabled: false
11+ {% else %}
12+ enabled: true
13+ {% endif %}
14+ containerSecurityContext:
15+ enabled: false
16+ resources:
17+ requests:
18+ memory: "128Mi"
19+ cpu: "512m"
20+ limits:
21+ memory: "128Mi"
22+ cpu: "1"
23+
24+ shmVolume:
25+ chmod:
26+ enabled: false
27+
28+ auth:
29+ username: hive
30+ password: hive
31+ database: hive
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion: hive.stackable.tech/v1alpha1
3+ kind: HiveCluster
4+ metadata:
5+ name: test-hive
6+ spec:
7+ image:
8+ {% if test_scenario ['values' ]['hive-latest' ].find ("," ) > 0 %}
9+ custom: "{{ test_scenario['values'] ['hive-latest'] .split(',')[1] }}"
10+ productVersion: "{{ test_scenario['values'] ['hive-latest'] .split(',')[0] }}"
11+ {% else %}
12+ productVersion: "{{ test_scenario['values'] ['hive-latest'] }}"
13+ {% endif %}
14+ pullPolicy: IfNotPresent
15+ clusterConfig:
16+ database:
17+ connString: jdbc:derby:;databaseName=/tmp/hive;create=true
18+ credentialsSecret: hive-credentials
19+ dbType: derby
20+ {% if lookup ('env' , 'VECTOR_AGGREGATOR' ) %}
21+ vectorAggregatorConfigMapName: vector-aggregator-discovery
22+ {% endif %}
23+ metastore:
24+ config:
25+ listenerClass: test-external-stable-$NAMESPACE
26+ roleGroups:
27+ default:
28+ replicas: 2
29+ external-unstable:
30+ replicas: 1
31+ config:
32+ listenerClass: test-external-unstable-$NAMESPACE
33+ cluster-internal:
34+ replicas: 1
35+ config:
36+ listenerClass: test-cluster-internal-$NAMESPACE
37+ ---
38+ apiVersion: v1
39+ kind: Secret
40+ metadata:
41+ name: hive-credentials
42+ type: Opaque
43+ stringData:
44+ username: APP
45+ password: mine
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : listeners.stackable.tech/v1alpha1
3+ kind : ListenerClass
4+ metadata :
5+ name : test-cluster-internal-$NAMESPACE
6+ spec :
7+ serviceType : ClusterIP
8+ ---
9+ apiVersion : listeners.stackable.tech/v1alpha1
10+ kind : ListenerClass
11+ metadata :
12+ name : test-external-stable-$NAMESPACE
13+ spec :
14+ serviceType : NodePort
15+ ---
16+ apiVersion : listeners.stackable.tech/v1alpha1
17+ kind : ListenerClass
18+ metadata :
19+ name : test-external-unstable-$NAMESPACE
20+ spec :
21+ serviceType : NodePort
You can’t perform that action at this time.
0 commit comments