Commit a74d9e52 authored by Erik Wilson's avatar Erik Wilson

Regenerate server certs if CA changed

parent 4a65764c
......@@ -65,8 +65,7 @@ func (l *listenerConfigStorage) Set(config *dynamiclistener.ListenerStatus) (*dy
obj.Status = *config
obj.Status.Revision = ""
if l.config.CACerts != "" && l.config.CAKey != "" {
obj.Status.CACert = ""
if l.config.CAKey != "" {
obj.Status.CAKey = ""
}
......@@ -94,7 +93,10 @@ func (l *listenerConfigStorage) fromStorage(obj *v1.ListenerConfig) *dynamiclist
copy.Status.Revision = obj.ResourceVersion
if l.config.CACerts != "" && l.config.CAKey != "" {
copy.Status.CACert = l.config.CACerts
if copy.Status.CACert != l.config.CACerts {
copy.Status.CACert = l.config.CACerts
copy.Status.GeneratedCerts = map[string]string{}
}
copy.Status.CAKey = l.config.CAKey
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment