Skip to content

Commit

Permalink
swift
Browse files Browse the repository at this point in the history
  • Loading branch information
eduolivares committed Apr 16, 2024
1 parent 957dc18 commit 1b895c9
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
36 changes: 36 additions & 0 deletions dt/bgp/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,42 @@ components:
- ../../examples/dt/bgp/config/lib/networking
- ../../examples/dt/bgp/config/lib/control-plane

replacements:
# Control plane customization
- source:
kind: ConfigMap
name: service-values
fieldPath: data.glance.customServiceConfig
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.glance.template.customServiceConfig
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.glance.default.replicas
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.glance.template.glanceAPIs.default.replicas
options:
create: true
- source:
kind: ConfigMap
name: service-values
fieldPath: data.swift.enabled
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.swift.enabled
options:
create: true

# Add StorageMgmt network template, as it is needed for CephHCI
# patches:
# - target:
Expand Down
1 change: 1 addition & 0 deletions examples/dt/bgp/config/control-plane/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ components:

resources:
- nncp/values.yaml
- service-values.yaml

Check failure on line 10 in examples/dt/bgp/config/control-plane/kustomization.yaml

View workflow job for this annotation

GitHub Actions / yaml-lint

10:1 [empty-lines] too many blank lines (1 > 0)
25 changes: 25 additions & 0 deletions examples/dt/bgp/config/control-plane/service-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: service-values
annotations:
config.kubernetes.io/local-config: "true"
data:
glance:
customServiceConfig: |
[DEFAULT]
enabled_backends = default_backend:swift
[glance_store]
default_backend = default_backend
[default_backend]
swift_store_create_container_on_put = True
swift_store_auth_version = 3
swift_store_auth_address = {{ .KeystoneInternalURL }}
swift_store_endpoint_type = internalURL
swift_store_user = service:glance
swift_store_key = {{ .ServicePassword }}
default:
replicas: 1
swift:
enabled: true

0 comments on commit 1b895c9

Please sign in to comment.