@@ -52,7 +52,7 @@ func (feast *FeastServices) ApplyDefaults() error {
5252// Deploy the feast services
5353func (feast * FeastServices ) Deploy () error {
5454 if feast .noLocalServiceConfigured () {
55- return errors .New ("At least one local service must be configured. e.g. registry / online / offline. " )
55+ return errors .New ("at least one local service must be configured. e.g. registry / online / offline" )
5656 }
5757 openshiftTls , err := feast .checkOpenshiftTls ()
5858 if err != nil {
@@ -349,7 +349,6 @@ func (feast *FeastServices) setPod(podSpec *corev1.PodSpec) error {
349349 if err := feast .setContainers (podSpec ); err != nil {
350350 return err
351351 }
352- feast .setRegistryClientInitContainer (podSpec )
353352 feast .mountTlsConfigs (podSpec )
354353 feast .mountPvcConfigs (podSpec )
355354 feast .mountEmptyDirVolumes (podSpec )
@@ -506,29 +505,6 @@ func (feast *FeastServices) setInitContainer(podSpec *corev1.PodSpec, fsYamlB64
506505 }
507506}
508507
509- // add grpc init container if remote registry reference (feastRef) is configured
510- func (feast * FeastServices ) setRegistryClientInitContainer (podSpec * corev1.PodSpec ) {
511- if ! feast .Handler .FeatureStore .Status .Applied .Services .DisableInitContainers {
512- hostname := feast .Handler .FeatureStore .Status .ServiceHostnames .Registry
513- if len (hostname ) > 0 && feast .IsRemoteRefRegistry () {
514- grpcurlFlag := "-plaintext"
515- hostSplit := strings .Split (hostname , ":" )
516- if len (hostSplit ) > 1 && hostSplit [1 ] == "443" {
517- grpcurlFlag = "-insecure"
518- }
519- podSpec .InitContainers = append (podSpec .InitContainers , corev1.Container {
520- Name : "init-registry" ,
521- Image : getGrpcCurlImage (),
522- Command : []string {
523- "sh" , "-c" ,
524- "until grpcurl -H \" authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)\" " +
525- grpcurlFlag + " -d '' -format text " + hostname + " grpc.health.v1.Health/Check; do echo waiting for registry; sleep 2; done" ,
526- },
527- })
528- }
529- }
530- }
531-
532508func (feast * FeastServices ) setService (svc * corev1.Service , feastType FeastServiceType ) error {
533509 svc .Labels = feast .getFeastTypeLabels (feastType )
534510 if feast .isOpenShiftTls (feastType ) {
0 commit comments