-
Notifications
You must be signed in to change notification settings - Fork 502
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
feat: migrate external argo cd application #6303
base: develop
Are you sure you want to change the base?
Conversation
pkg/deployment/common/bean/bean.go
Outdated
SyncPolicy string `json:"syncPolicy,omitempty"` | ||
} | ||
|
||
type ArgoCDSpec 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.
please make sure this is exact subset of argocd structure
ArgoCDSpec ArgoCDSpec `json:"argoCDSpec"` | ||
} | ||
|
||
func (r *ReleaseConfiguration) JSON() []byte { |
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.
why custom json function ?
func (impl *DeploymentConfigServiceImpl) IsDeploymentConfigUsed() bool { | ||
return impl.deploymentServiceTypeConfig.UseDeploymentConfigData | ||
newObj, err := ConvertDeploymentConfigDbObjToDTO(newDBObj) | ||
if err != nil { |
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.
how this error is handled at runtime?
if envId > 0 { | ||
// if envId>0 then only env level config will be returned, | ||
//for getting app level config envId should be zero | ||
appAndEnvLevelConfig, err := impl.getEnvLevelDataForDevtronApps(appId, envId, appLevelConfig, false) |
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.
@nishant-d to revisit this logic
appLevelConfig.ReleaseConfiguration = releaseConfig | ||
|
||
if migrateDataIfAbsent { | ||
_, err := impl.CreateOrUpdateConfig(nil, appLevelConfig, bean3.SYSTEM_USER_ID) |
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.
@nishant-d review migration logic
Quality Gate passedIssues Measures |
Description
Fixes #
Checklist:
Does this PR introduce a user-facing change?