-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TT-1984] Use job distributor in keystone smoke test + FMS change #16169
Conversation
AER Report: CI Core ran successfully ✅AER Report: Operator UI CI ran successfully ✅ |
core/services/job/models.go
Outdated
@@ -823,6 +823,79 @@ func (s *GatewaySpec) SetID(value string) error { | |||
return nil | |||
} | |||
|
|||
// NodeServerConfigPath returns NodeServerConfig.Path or empty string, if not found or it's not a string | |||
func (s *GatewaySpec) NodeServerConfigPath() string { | |||
if nsc, ok := s.GatewayConfig["NodeServerConfig"]; ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tofel I'd recommend just unmarshaling the config into a struct (I would expect this to already exist somewhere) and then just grabbing what you need from it; same with the function below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'll use
type GatewayConfig struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, can't use due to circular imports :/ and I don't want to put that and other types in yet another package to resolve it, I think it should be done in another PR
@Tofel I'd also recommend running this by someone who is more familiar with Gateways, eg. @bolekk @justinkaseman |
57856f9
|
CORE:
gateway
andstandardcapabilities
jobs with the FMSKeystone smoke test:
Unclear:
int64
, when iterating over untypedGateway
job spec?