Skip to content

Commit 6c44626

Browse files
committed
Kuttl test to cover an edge deployment scenario
This patch introduces a kuttl test that is supposed to cover an Edge use case deployment. It asserts that the required resources exist and the Pods are available. This change also updates the Edge sample to make sure it reflects the right type. Signed-off-by: Francesco Pantano <[email protected]>
1 parent e5cff17 commit 6c44626

File tree

5 files changed

+527
-11
lines changed

5 files changed

+527
-11
lines changed

config/samples/layout/edge/glance_v1beta1_glance.yaml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,43 @@ metadata:
44
name: glance
55
spec:
66
serviceUser: glance
7-
customServiceConfig: |
8-
[DEFAULT]
9-
debug = true
107
databaseInstance: openstack
118
databaseAccount: glance
12-
keystoneEndpoint: central
9+
keystoneEndpoint: default
1310
glanceAPIs:
14-
edge1:
15-
preserveJobs: false
11+
default:
12+
customServiceConfig: |
13+
[DEFAULT]
14+
enabled_backends=default_backend:rbd,az1:rbd,az2:rbd,az3:swift
15+
replicas: 1
16+
type: split
17+
az1:
18+
customServiceConfig: |
19+
[DEFAULT]
20+
enabled_backends=az1:rbd
1621
replicas: 1
1722
type: edge
18-
edge2:
19-
preserveJobs: false
23+
az2:
24+
customServiceConfig: |
25+
[DEFAULT]
26+
enabled_backends=az2:rbd
2027
replicas: 1
2128
type: edge
22-
central:
23-
preserveJobs: false
29+
az3:
30+
customServiceConfig: |
31+
[DEFAULT]
32+
enabled_backends = default_backend:swift
33+
[glance_store]
34+
default_backend = default_backend
35+
[default_backend]
36+
swift_store_create_container_on_put = True
37+
swift_store_auth_version = 3
38+
swift_store_auth_address = {{ .KeystoneInternalURL }}
39+
swift_store_endpoint_type = internalURL
40+
swift_store_user = service:glance
41+
swift_store_key = {{ .ServicePassword }}
2442
replicas: 1
25-
type: single
43+
type: edge
2644
secret: osp-secret
2745
storageClass: local-storage
2846
storageRequest: 10G

0 commit comments

Comments
 (0)