Skip to content

Commit

Permalink
Merge pull request #500 from vhariria/glance_kuttl_vh
Browse files Browse the repository at this point in the history
Scale up glance_split & glance_image_cache api KUTTL test
  • Loading branch information
openshift-merge-bot[bot] authored Apr 11, 2024
2 parents b65521a + 5bb620e commit bd1926e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions test/kuttl/tests/glance_image_cache/02-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
databaseAccount: glance
glanceAPIs:
default:
replicas: 2
replicas: 3
type: "single"
imageCache:
cleanerScheduler: '*/30 * * * *'
Expand All @@ -33,7 +33,7 @@ metadata:
name: glance-default-single
spec:
apiType: single
replicas: 2
replicas: 3
imageCache:
cleanerScheduler: '*/30 * * * *'
prunerScheduler: 1 0 * * *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: |
oc patch Glance -n $NAMESPACE glance --type='json' -p='[{"op": "replace", "path": "/spec/glanceAPIs/default/replicas", "value":2}]'
oc patch Glance -n $NAMESPACE glance --type='json' -p='[{"op": "replace", "path": "/spec/glanceAPIs/default/replicas", "value":3}]'
20 changes: 10 additions & 10 deletions test/kuttl/tests/glance_split/02-assert.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
# Check for:
# - Glance CR with 2 replicas for each GlanceAPI
# - GlanceAPI glance-external-api StatefulSet with 2 replicas
# - GlanceAPI glance-internal-api StatefulSet with 2 replicas
# - Glance CR with 3 replicas for each GlanceAPI
# - GlanceAPI glance-external-api StatefulSet with 3 replicas
# - GlanceAPI glance-internal-api StatefulSet with 3 replicas


apiVersion: glance.openstack.org/v1beta1
Expand All @@ -12,24 +12,24 @@ metadata:
spec:
glanceAPIs:
default:
replicas: 2
replicas: 3
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: glance-default-external-api
spec:
replicas: 2
replicas: 3
status:
availableReplicas: 2
replicas: 2
availableReplicas: 3
replicas: 3
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: glance-default-internal-api
spec:
replicas: 2
replicas: 3
status:
availableReplicas: 2
replicas: 2
availableReplicas: 3
replicas: 3
2 changes: 1 addition & 1 deletion test/kuttl/tests/glance_split/02-scale-glanceapis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: |
oc patch Glance -n $NAMESPACE glance --type='json' -p='[{"op": "replace", "path": "/spec/glanceAPIs/default/replicas", "value":2}]'
oc patch Glance -n $NAMESPACE glance --type='json' -p='[{"op": "replace", "path": "/spec/glanceAPIs/default/replicas", "value":3}]'

0 comments on commit bd1926e

Please sign in to comment.