Set default ciphers when converting old config
@@ -6,6 +6,7 @@ import (
legacyconfigv1 "github.com/openshift/api/legacyconfig/v1"
openshiftcontrolplanev1 "github.com/openshift/api/openshiftcontrolplane/v1"
osinv1 "github.com/openshift/api/osin/v1"
+ "github.com/openshift/library-go/pkg/crypto"
"github.com/openshift/origin/pkg/apiserver/admission"
)
@@ -14,6 +15,9 @@ func ToHTTPServingInfo(in *legacyconfigv1.HTTPServingInfo) (out configv1.HTTPSer
if err != nil {
return configv1.HTTPServingInfo{}, err
}
+ if len(out.CipherSuites) == 0 {
+ out.CipherSuites = crypto.CipherSuitesToNamesOrDie(crypto.DefaultCiphers())
+ }
return out, nil
}
