Skip to content

Commit

Permalink
Move glance to the new API definition
Browse files Browse the repository at this point in the history
GlanceAPI has been simplified by patches [1][2], and the implication of
those patches is a change in the CRD used to define the glanceAPI
service.
This patch aligns both the existing documentation and the test suite to
work with the new way of deploying glance.

[1] openstack-k8s-operators/glance-operator#329
[2] openstack-k8s-operators/openstack-operator#514

Signed-off-by: Francesco Pantano <[email protected]>
  • Loading branch information
fmount authored and bogdando committed Nov 27, 2023
1 parent 6ace79c commit 35e7b0f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 25 deletions.
3 changes: 1 addition & 2 deletions docs/openstack/backend_services_deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ podified OpenStack control plane services.
glance:
enabled: false
template:
glanceAPIInternal: {}
glanceAPIExternal: {}
glanceAPI: {}

horizon:
enabled: false
Expand Down
10 changes: 2 additions & 8 deletions docs/openstack/glance_adoption.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
databaseInstance: openstack
storageClass: "local-storage"
storageRequest: 10G
glanceAPIInternal:
glanceAPI:
override:
service:
metadata:
Expand All @@ -54,9 +54,6 @@ spec:
type: LoadBalancer
networkAttachments:
- storage
glanceAPIExternal:
networkAttachments:
- storage
'
```

Expand Down Expand Up @@ -90,7 +87,7 @@ spec:
store_description=Ceph glance store backend.
storageClass: "local-storage"
storageRequest: 10G
glanceAPIInternal:
glanceAPI:
override:
service:
metadata:
Expand All @@ -102,9 +99,6 @@ spec:
type: LoadBalancer
networkAttachments:
- storage
glanceAPIExternal:
networkAttachments:
- storage
EOF
```

Expand Down
3 changes: 1 addition & 2 deletions tests/config/base/openstack_control_plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ spec:
glance:
enabled: false
template:
glanceAPIInternal: {}
glanceAPIExternal: {}
glanceAPI: {}

horizon:
enabled: false
Expand Down
3 changes: 1 addition & 2 deletions tests/config/periodic_ci/container_image_overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ spec:
glance:
enabled: false
template:
glanceAPIInternal: {}
glanceAPIExternal: {}
glanceAPI: {}

horizon:
enabled: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ spec:

glance:
template:
glanceAPIInternal:
containerImage: {{ container_registry }}/{{ container_namespace }}/openstack-glance-api:{{ container_tag }}
glanceAPIExternal:
glanceAPI:
containerImage: {{ container_registry }}/{{ container_namespace }}/openstack-glance-api:{{ container_tag }}

horizon:
Expand Down
10 changes: 2 additions & 8 deletions tests/roles/glance_adoption/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
databaseInstance: openstack
storageClass: "local-storage"
storageRequest: 10G
glanceAPIInternal:
glanceAPI:
override:
service:
metadata:
Expand All @@ -24,9 +24,6 @@
type: LoadBalancer
networkAttachments:
- storage
glanceAPIExternal:
networkAttachments:
- storage
'
when: glance_backend == 'local'

Expand All @@ -52,7 +49,7 @@
store_description=Ceph glance store backend.
storageClass: "local-storage"
storageRequest: 10G
glanceAPIInternal:
glanceAPI:
override:
service:
metadata:
Expand All @@ -64,9 +61,6 @@
type: LoadBalancer
networkAttachments:
- storage
glanceAPIExternal:
networkAttachments:
- storage
'
when: glance_backend == 'ceph'

Expand Down

0 comments on commit 35e7b0f

Please sign in to comment.