Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Use isRegistryServer

Co-authored-by: Tommy Hughes IV <tchughesiv@gmail.com>
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
  • Loading branch information
ntkathole and tchughesiv committed Jun 9, 2025
commit ef5d3c4ac9d38709e5aefc63f133d2572c6caad6
10 changes: 4 additions & 6 deletions infra/feast-operator/internal/controller/services/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,9 @@ func (feast *FeastServices) getContainerCommand(feastType FeastServiceType) []st
targetPort := deploySettings.TargetHttpPort
tls := feast.getTlsConfigs(feastType)

if feastType == RegistryFeastType {
registry := feast.Handler.FeatureStore.Spec.Services.Registry
if registry != nil && registry.Local != nil && registry.Local.Server != nil && registry.Local.Server.RestAPIEnabled {
if feastType == RegistryFeastType && feast.isRegistryServer() {
registry := feast.Handler.FeatureStore.Status.Applied.Services.Registry
if registry.Local.Server.RestAPIEnabled {
deploySettings.Args = append(deploySettings.Args, "--rest-api")
}
}
Expand Down Expand Up @@ -652,9 +652,7 @@ func (feast *FeastServices) getServerConfigs(feastType FeastServiceType) *feastd
return appliedServices.OnlineStore.Server
}
case RegistryFeastType:
if feast.isLocalRegistry() && appliedServices.Registry != nil &&
appliedServices.Registry.Local != nil &&
appliedServices.Registry.Local.Server != nil {
if feast.isRegistryServer() {
return &appliedServices.Registry.Local.Server.ServerConfigs
}
case UIFeastType:
Expand Down