Skip to content

Commit

Permalink
Merge pull request #345 from stuggi/cache_backend
Browse files Browse the repository at this point in the history
Use tls for cache if supported
  • Loading branch information
openshift-merge-bot[bot] authored Apr 29, 2024
2 parents b993362 + 4ff76d7 commit c0cf53c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions controllers/neutronapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1487,6 +1487,7 @@ func (r *NeutronAPIReconciler) generateServiceSecrets(
templateParameters["TransportURL"] = transportURL
templateParameters["MemcachedServers"] = mc.GetMemcachedServerListString()
templateParameters["MemcachedServersWithInet"] = mc.GetMemcachedServerListWithInetString()
templateParameters["MemcachedTLS"] = mc.GetMemcachedTLSSupport()

// Other OpenStack services
servicePassword := string(ospSecret.Data[instance.Spec.PasswordSelectors.Service])
Expand Down
7 changes: 6 additions & 1 deletion templates/neutronapi/config/01-neutron.conf
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,14 @@ password = {{ .ServicePassword }}
lock_path = /var/lib/neutron/tmp

[cache]
backend=dogpile.cache.pymemcache
{{if .MemcachedTLS}}
backend = dogpile.cache.pymemcache
{{else}}
backend = dogpile.cache.memcached
{{end}}
enabled=true
memcache_servers={{ .MemcachedServers }}
tls_enabled={{ .MemcachedTLS }}

[oslo_policy]
enforce_scope = True
Expand Down

0 comments on commit c0cf53c

Please sign in to comment.