@@ -52,7 +52,7 @@ func (feast *FeastServices) ApplyDefaults() error {
52
52
// Deploy the feast services
53
53
func (feast * FeastServices ) Deploy () error {
54
54
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" )
56
56
}
57
57
openshiftTls , err := feast .checkOpenshiftTls ()
58
58
if err != nil {
@@ -349,7 +349,6 @@ func (feast *FeastServices) setPod(podSpec *corev1.PodSpec) error {
349
349
if err := feast .setContainers (podSpec ); err != nil {
350
350
return err
351
351
}
352
- feast .setRegistryClientInitContainer (podSpec )
353
352
feast .mountTlsConfigs (podSpec )
354
353
feast .mountPvcConfigs (podSpec )
355
354
feast .mountEmptyDirVolumes (podSpec )
@@ -506,29 +505,6 @@ func (feast *FeastServices) setInitContainer(podSpec *corev1.PodSpec, fsYamlB64
506
505
}
507
506
}
508
507
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
-
532
508
func (feast * FeastServices ) setService (svc * corev1.Service , feastType FeastServiceType ) error {
533
509
svc .Labels = feast .getFeastTypeLabels (feastType )
534
510
if feast .isOpenShiftTls (feastType ) {
0 commit comments