-
Notifications
You must be signed in to change notification settings - Fork 500
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
chore: infra configuration refactored #6286
base: develop
Are you sure you want to change the base?
Conversation
The migration files have successfully passed the criteria!! |
The migration files have successfully passed the criteria!! |
The migration files have successfully passed the criteria!! |
The migration files have successfully passed the criteria!! |
switch configKey { | ||
case v1.CPU_LIMIT, v1.CPU_REQUEST: | ||
return impl.getCPUConfigFactory().formatTypedValueAsString(configValue) | ||
case v1.MEMORY_LIMIT, v1.MEMORY_REQUEST: | ||
return impl.getMemoryConfigFactory().formatTypedValueAsString(configValue) | ||
case v1.TIME_OUT: | ||
return impl.getTimeoutConfigFactory().formatTypedValueAsString(configValue) | ||
default: | ||
return "", fmt.Errorf("config key %q not supported", configKey) | ||
} |
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.
ideally ent files should not contain any business logic. If this are to be used in oss let's move these to normal file
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.
use override logic for ent
profileIds := make([]int, 0) | ||
infraProfilesEntities, err := impl.infraProfileRepo.GetProfileListByIds(profileIds, includeDefault) | ||
if err != nil { | ||
impl.logger.Errorw("error in fetching profile entities by ids", "scope", scope, "profileIds", profileIds, "error", err) | ||
return nil, profileIds, err | ||
} | ||
return infraProfilesEntities, profileIds, err |
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.
to be written in oss
The migration files have successfully passed the criteria!! |
The migration files have successfully passed the criteria!! |
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
Description
Fixes #
Checklist:
Does this PR introduce a user-facing change?