@@ -142,33 +142,11 @@ func (impl *DeploymentConfigurationServiceImpl) GetAllConfigData(ctx context.Con
142
142
return impl .getConfigDataForCdRollback (ctx , configDataQueryParams , userHasAdminAccess )
143
143
case bean2 .DeploymentHistory .ToString ():
144
144
return impl .getConfigDataForDeploymentHistory (ctx , configDataQueryParams , userHasAdminAccess )
145
- case bean2 .ResolveData .ToString ():
146
- // this only supports resolution of deployment template data as of now
147
- return impl .getResolvedConfigDataForValues (ctx , configDataQueryParams .Values , appId , envId )
148
145
}
149
146
// this would be the default case
150
147
return impl .getConfigDataForAppConfiguration (ctx , configDataQueryParams , appId , envId , clusterId , userHasAdminAccess )
151
148
}
152
149
153
- func (impl * DeploymentConfigurationServiceImpl ) getResolvedConfigDataForValues (ctx context.Context , values string , appId , envId int ) (* bean2.DeploymentAndCmCsConfigDto , error ) {
154
- configDataDto := & bean2.DeploymentAndCmCsConfigDto {}
155
- var err error
156
- deploymentTemplateRequest := generateManifest.DeploymentTemplateRequest {
157
- AppId : appId ,
158
- RequestDataMode : generateManifest .Values ,
159
- }
160
- if envId > 0 {
161
- deploymentTemplateRequest .EnvId = envId
162
- }
163
- resolvedTemplate , _ , err := impl .deploymentTemplateService .ResolveTemplateVariables (ctx , values , deploymentTemplateRequest )
164
- if err != nil {
165
- impl .logger .Errorw ("error in getting resolved data for cm draft data " , "appId" , appId , "err" , err )
166
- return nil , err
167
- }
168
-
169
- return configDataDto .WithDeploymentTemplateData (bean2 .NewDeploymentAndCmCsConfig ().WithResolvedValue (json .RawMessage (resolvedTemplate ))), nil
170
- }
171
-
172
150
func (impl * DeploymentConfigurationServiceImpl ) getConfigDataForCdRollback (ctx context.Context , configDataQueryParams * bean2.ConfigDataQueryParams , userHasAdminAccess bool ) (* bean2.DeploymentAndCmCsConfigDto , error ) {
173
151
// wfrId is expected in this case to return the expected data
174
152
return impl .getConfigDataForDeploymentHistory (ctx , configDataQueryParams , userHasAdminAccess )
0 commit comments