Remove duplicated logic (#1465)

Signed-off-by: LeoLiuYan <929908264@qq.com>
This commit is contained in:
LeoLiuYan 2021-04-12 10:24:34 +08:00 committed by GitHub
parent 4b86689d63
commit 389722a94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -99,13 +99,6 @@ func (p *Parser) parseWorkload(ctx context.Context, comp v1beta1.ApplicationComp
engine: definition.NewWorkloadAbstractEngine(comp.Name, p.pd),
}
if workload.IsCloudResourceConsumer() {
requiredSecrets, err := parseWorkloadInsertSecretTo(ctx, p.client, ns, workload)
if err != nil {
return nil, err
}
workload.RequiredSecrets = requiredSecrets
}
if workload.IsCloudResourceConsumer() {
requiredSecrets, err := parseWorkloadInsertSecretTo(ctx, p.client, ns, workload)
if err != nil {