Skip to content

Commit

Permalink
fix template logic
Browse files Browse the repository at this point in the history
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
  • Loading branch information
aryan9600 committed Nov 7, 2023
1 parent 6da5fc5 commit 93411ef
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions internal/controller/helmrelease_controller_chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,17 @@ func templateVerificationToSourceVerification(template *v2.HelmChartTemplateVeri
return nil
}

return &sourcev1b2.OCIRepositoryVerification{
Provider: template.Provider,
SecretRef: template.SecretRef,
verification := &sourcev1b2.OCIRepositoryVerification{
Provider: template.Provider,
SecretRef: template.SecretRef,
MatchOIDCIdentity: []sourcev1b2.OIDCIdentityMatch{},
}
for _, match := range template.MatchOIDCIdentity {
verification.MatchOIDCIdentity = append(verification.MatchOIDCIdentity, sourcev1b2.OIDCIdentityMatch{
Issuer: match.Issuer,
Subject: match.Subject,
})
}

return verification
}

0 comments on commit 93411ef

Please sign in to comment.