@@ -42,22 +42,28 @@ func (feast *FeastServices) setTlsDefaults() error {
4242
4343func (feast * FeastServices ) setOpenshiftTls () error {
4444 appliedServices := feast .Handler .FeatureStore .Status .Applied .Services
45- tlsConfigs := & feastdevv1alpha1.TlsConfigs {
46- SecretRef : & corev1.LocalObjectReference {},
47- }
4845 if feast .offlineOpenshiftTls () {
4946 appliedServices .OfflineStore .TLS = & feastdevv1alpha1.OfflineTlsConfigs {
50- TlsConfigs : * tlsConfigs ,
47+ TlsConfigs : feastdevv1alpha1.TlsConfigs {
48+ SecretRef : & corev1.LocalObjectReference {
49+ Name : feast .initFeastSvc (OfflineFeastType ).Name + tlsNameSuffix ,
50+ },
51+ },
5152 }
52- appliedServices .OfflineStore .TLS .TlsConfigs .SecretRef .Name = feast .initFeastSvc (OfflineFeastType ).Name + tlsNameSuffix
5353 }
5454 if feast .onlineOpenshiftTls () {
55- appliedServices .OnlineStore .TLS = tlsConfigs
56- appliedServices .OnlineStore .TLS .SecretRef .Name = feast .initFeastSvc (OnlineFeastType ).Name + tlsNameSuffix
55+ appliedServices .OnlineStore .TLS = & feastdevv1alpha1.TlsConfigs {
56+ SecretRef : & corev1.LocalObjectReference {
57+ Name : feast .initFeastSvc (OnlineFeastType ).Name + tlsNameSuffix ,
58+ },
59+ }
5760 }
5861 if feast .localRegistryOpenshiftTls () {
59- appliedServices .Registry .Local .TLS = tlsConfigs
60- appliedServices .Registry .Local .TLS .SecretRef .Name = feast .initFeastSvc (RegistryFeastType ).Name + tlsNameSuffix
62+ appliedServices .Registry .Local .TLS = & feastdevv1alpha1.TlsConfigs {
63+ SecretRef : & corev1.LocalObjectReference {
64+ Name : feast .initFeastSvc (RegistryFeastType ).Name + tlsNameSuffix ,
65+ },
66+ }
6167 } else if remote , err := feast .remoteRegistryOpenshiftTls (); remote {
6268 // if the remote registry reference is using openshift's service serving certificates, we can use the injected service CA bundle configMap
6369 if appliedServices .Registry .Remote .TLS == nil {
0 commit comments