diff options
| author | jannfis <jann@mistrust.net> | 2022-01-11 16:35:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-11 16:35:51 +0100 |
| commit | e1f65012575eac6cd46fc6fdfc2d1ef03ad9b930 (patch) | |
| tree | 7e4bd77d6e96ee77d8cd3f383165448c9ad01501 /pkg/argocd | |
| parent | 77a6e8f1f8afa1d5b5b5f440dd9341830e14f7ef (diff) | |
feat: Support manifestlist and multi-arch images (#341)
* feat: Support manifestlist and multi-arch images
Signed-off-by: jannfis <jann@mistrust.net>
* Add unit test
Signed-off-by: jannfis <jann@mistrust.net>
* Fix linter issue
Signed-off-by: jannfis <jann@mistrust.net>
Diffstat (limited to 'pkg/argocd')
| -rw-r--r-- | pkg/argocd/update.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/argocd/update.go b/pkg/argocd/update.go index 541a0f8..0a92ff2 100644 --- a/pkg/argocd/update.go +++ b/pkg/argocd/update.go @@ -42,6 +42,7 @@ type UpdateConfiguration struct { GitCommitEmail string GitCommitMessage *template.Template DisableKubeEvents bool + IgnorePlatforms bool } type GitCredsSource func(app *v1alpha1.Application) (git.Creds, error) @@ -196,6 +197,7 @@ func UpdateApplication(updateConf *UpdateConfiguration, state *SyncIterationStat vc.SortMode = applicationImage.GetParameterUpdateStrategy(updateConf.UpdateApp.Application.Annotations) vc.MatchFunc, vc.MatchArgs = applicationImage.GetParameterMatch(updateConf.UpdateApp.Application.Annotations) vc.IgnoreList = applicationImage.GetParameterIgnoreTags(updateConf.UpdateApp.Application.Annotations) + vc.Options = applicationImage.GetPlatformOptions(updateConf.UpdateApp.Application.Annotations, updateConf.IgnorePlatforms) // The endpoint can provide default credentials for pulling images err = rep.SetEndpointCredentials(updateConf.KubeClient) |
