| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4361359 commit fe55869
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,12 +70,11 @@ func (feast *FeastServices) createCaConfigMap() error { | |||
| 70 | 70 | } | |
| 71 | 71 | ||
| 72 | 72 | func (feast *FeastServices) setCaConfigMap(cm *corev1.ConfigMap) error { | |
| 73 | - cm.Labels = map[string]string{ | ||
| 74 | - NameLabelKey: feast.Handler.FeatureStore.Name, | ||
| 75 | - } | ||
| 76 | - cm.Annotations = map[string]string{ | ||
| 77 | - "service.beta.openshift.io/inject-cabundle": "true", | ||
| 73 | + cm.Labels = feast.getLabels() | ||
| 74 | + if len(cm.Annotations) == 0 { | ||
| 75 | + cm.Annotations = map[string]string{} | ||
| 78 | 76 | } | |
| 77 | + cm.Annotations["service.beta.openshift.io/inject-cabundle"] = "true" | ||
| 79 | 78 | return controllerutil.SetControllerReference(feast.Handler.FeatureStore, cm, feast.Handler.Scheme) | |
| 80 | 79 | } | |
| 81 | 80 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -586,9 +586,10 @@ func (feast *FeastServices) setInitContainer(podSpec *corev1.PodSpec, fsYamlB64 | |||
| 586 | 586 | func (feast *FeastServices) setService(svc *corev1.Service, feastType FeastServiceType) error { | |
| 587 | 587 | svc.Labels = feast.getFeastTypeLabels(feastType) | |
| 588 | 588 | if feast.isOpenShiftTls(feastType) { | |
| 589 | - svc.Annotations = map[string]string{ | ||
| 590 | - "service.beta.openshift.io/serving-cert-secret-name": svc.Name + tlsNameSuffix, | ||
| 589 | + if len(svc.Annotations) == 0 { | ||
| 590 | + svc.Annotations = map[string]string{} | ||
| 591 | 591 | } | |
| 592 | + svc.Annotations["service.beta.openshift.io/serving-cert-secret-name"] = svc.Name + tlsNameSuffix | ||
| 592 | 593 | } | |
| 593 | 594 | ||
| 594 | 595 | var port int32 = HttpPort | |
| Back | FazBrowse Home | New Git URL |
0 commit comments