Commit 0d869ebf
0d869ebf53e7Merged
Sviatoslav Dumchenko <[email protected]> ยท 3 years ago ยท 1 file ยท ~1 modified
Description
feat!: allow to completely skip dependencies update
Details
- Commit
- 0d869ebf53e7
- Parent
- 64baa9ee8d27
pkg/release/chart.gomodifiedView file
@@ -33,7 +33,8 @@
3333
InsecureSkipTLSverify bool `yaml:"insecure" json:"insecure" jsonschema:"description=Connect to server with an insecure way by skipping certificate verification"`3434
Verify bool `yaml:"verify" json:"verify" jsonschema:"description=Verify the provenance of the chart before using it"`3535
PassCredentialsAll bool `yaml:"pass_credentials" json:"pass_credentials" jsonschema:"description=Pass credentials to all domains"`36-
SkipDependencyRefresh bool `yaml:"skip_dependency_refresh,omitempty" json:"skip_dependency_refresh,omitempty" jsonschema:"default=false"`36+
SkipDependencyUpdate bool `yaml:"skip_dependency_update" json:"skip_dependency_update" jsonschema:"description=Skip updating and downloading dependencies,default=false"`37+
SkipRefresh bool `yaml:"skip_refresh,omitempty" json:"skip_refresh,omitempty" jsonschema:"description=Skip refreshing repositories,default=false"`3738
}3839
3940
// CopyOptions is a helper for copy options from Chart to ChartPathOptions.@@ -142,6 +143,12 @@
142143
return nil143144
}144145
146+
if rel.Chart().SkipDependencyUpdate {147+
rel.Logger().Info("โ forced skipping updating dependencies for local chart")148+
149+
return nil150+
}151+
145152
settings := rel.Helm()146153
147154
client := action.NewDependency()@@ -149,7 +156,7 @@
149156
Out: log.StandardLogger().Writer(),150157
ChartPath: filepath.Clean(rel.Chart().Name),151158
Keyring: client.Keyring,152-
SkipUpdate: rel.Chart().SkipDependencyRefresh,159+
SkipUpdate: rel.Chart().SkipRefresh,153160
Getters: getter.All(settings),154161
RepositoryConfig: settings.RepositoryConfig,155162
RepositoryCache: settings.RepositoryCache,