Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tls for cache if supported #345

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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