@@ -63,22 +63,25 @@ type PullOptions struct {
6363 Silent bool
6464 RewriteImages bool
6565 RewriteImageOptions registrytypes.RegistrySettings
66- SkipHelmChartCheck bool
67- ReportWriter io.Writer
68- AppID string
69- AppSlug string
70- AppSequence int64
71- AppVersionLabel string
72- AppSelectedChannelID string
73- IsGitOps bool
74- StorageClassName string
75- HTTPProxyEnvValue string
76- HTTPSProxyEnvValue string
77- NoProxyEnvValue string
78- PrivateCAsConfigmap string
79- ReportingInfo * reportingtypes.ReportingInfo
80- SkipCompatibilityCheck bool
81- KotsKinds * kotsutil.KotsKinds
66+ // SkipExistingImages, when true, makes each image push idempotent — see
67+ // imagetypes.CopyImageOptions.SkipExistingImages.
68+ SkipExistingImages bool
69+ SkipHelmChartCheck bool
70+ ReportWriter io.Writer
71+ AppID string
72+ AppSlug string
73+ AppSequence int64
74+ AppVersionLabel string
75+ AppSelectedChannelID string
76+ IsGitOps bool
77+ StorageClassName string
78+ HTTPProxyEnvValue string
79+ HTTPSProxyEnvValue string
80+ NoProxyEnvValue string
81+ PrivateCAsConfigmap string
82+ ReportingInfo * reportingtypes.ReportingInfo
83+ SkipCompatibilityCheck bool
84+ KotsKinds * kotsutil.KotsKinds
8285}
8386
8487var (
@@ -365,16 +368,17 @@ func Pull(upstreamURI string, pullOptions PullOptions) (string, error) {
365368 }
366369
367370 processImageOptions := imagetypes.ProcessImageOptions {
368- AppSlug : pullOptions .AppSlug ,
369- Namespace : pullOptions .Namespace ,
370- RewriteImages : pullOptions .RewriteImages ,
371- RegistrySettings : pullOptions .RewriteImageOptions ,
372- CopyImages : ! pullOptions .RewriteImageOptions .IsReadOnly ,
373- RootDir : pullOptions .RootDir ,
374- IsAirgap : pullOptions .IsAirgap ,
375- AirgapBundle : pullOptions .AirgapBundle ,
376- CreateAppDir : pullOptions .CreateAppDir ,
377- ReportWriter : pullOptions .ReportWriter ,
371+ AppSlug : pullOptions .AppSlug ,
372+ Namespace : pullOptions .Namespace ,
373+ RewriteImages : pullOptions .RewriteImages ,
374+ RegistrySettings : pullOptions .RewriteImageOptions ,
375+ CopyImages : ! pullOptions .RewriteImageOptions .IsReadOnly ,
376+ RootDir : pullOptions .RootDir ,
377+ IsAirgap : pullOptions .IsAirgap ,
378+ AirgapBundle : pullOptions .AirgapBundle ,
379+ CreateAppDir : pullOptions .CreateAppDir ,
380+ ReportWriter : pullOptions .ReportWriter ,
381+ SkipExistingImages : pullOptions .SkipExistingImages ,
378382 }
379383
380384 if needsConfig {
0 commit comments