Commit 9bed7336
9bed73366ee7Merged
Sviatoslav Dumchenko <[email protected]> ยท 3 years ago ยท 2 files ยท ~2 modified
Description
chore: move the option to chart
Details
- Commit
- 9bed73366ee7
- Parent
- 8c81fd0042cd
pkg/release/chart.gomodifiedView file
@@ -18,19 +18,22 @@
1818
)1919
2020
// Chart is a structure for chart download options.21+
//22+
//nolint:lll2123
type Chart struct {22-
Name string `yaml:"name" json:"name" jsonschema:"required,description=Name of the chart,example=bitnami/nginx,example=oci://ghcr.io/helmwave/unit-test-oci"` //nolint:lll23-
CaFile string `yaml:"ca_file" json:"ca_file" jsonschema:"description=Verify certificates of HTTPS-enabled servers using this CA bundle"` //nolint:lll24-
CertFile string `yaml:"cert_file" json:"cert_file" jsonschema:"description=Identify HTTPS client using this SSL certificate file"` //nolint:lll25-
KeyFile string `yaml:"key_file" json:"key_file" jsonschema:"description=Identify HTTPS client using this SSL key file"` //nolint:lll26-
Keyring string `yaml:"keyring" json:"keyring" jsonschema:"description=Location of public keys used for verification"` //nolint:lll24+
Name string `yaml:"name" json:"name" jsonschema:"required,description=Name of the chart,example=bitnami/nginx,example=oci://ghcr.io/helmwave/unit-test-oci"`25+
CaFile string `yaml:"ca_file" json:"ca_file" jsonschema:"description=Verify certificates of HTTPS-enabled servers using this CA bundle"`26+
CertFile string `yaml:"cert_file" json:"cert_file" jsonschema:"description=Identify HTTPS client using this SSL certificate file"`27+
KeyFile string `yaml:"key_file" json:"key_file" jsonschema:"description=Identify HTTPS client using this SSL key file"`28+
Keyring string `yaml:"keyring" json:"keyring" jsonschema:"description=Location of public keys used for verification"`2729
RepoURL string `yaml:"repo_url" json:"repo_url" jsonschema:"description=Chart repository url"`2830
Username string `yaml:"username" json:"username" jsonschema:"description=Chart repository username"`2931
Password string `yaml:"password" json:"password" jsonschema:"description=Chart repository password"`3032
Version string `yaml:"version" json:"version" jsonschema:"description=Chart version"`31-
InsecureSkipTLSverify bool `yaml:"insecure" json:"insecure" jsonschema:"description=Connect to server with an insecure way by skipping certificate verification"` //nolint:lll32-
Verify bool `yaml:"verify" json:"verify" jsonschema:"description=Verify the provenance of the chart before using it"` //nolint:lll33-
PassCredentialsAll bool `yaml:"pass_credentials" json:"pass_credentials" jsonschema:"description=Pass credentials to all domains"` //nolint:lll33+
InsecureSkipTLSverify bool `yaml:"insecure" json:"insecure" jsonschema:"description=Connect to server with an insecure way by skipping certificate verification"`34+
Verify bool `yaml:"verify" json:"verify" jsonschema:"description=Verify the provenance of the chart before using it"`35+
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"`3437
}3538
3639
// CopyOptions is a helper for copy options from Chart to ChartPathOptions.@@ -146,7 +149,7 @@
146149
Out: log.StandardLogger().Writer(),147150
ChartPath: filepath.Clean(rel.Chart().Name),148151
Keyring: client.Keyring,149-
SkipUpdate: rel.SkipDependencyRefresh,152+
SkipUpdate: rel.Chart().SkipDependencyRefresh,150153
Getters: getter.All(settings),151154
RepositoryConfig: settings.RepositoryConfig,152155
RepositoryCache: settings.RepositoryCache,pkg/release/config.gomodifiedView file
Loading diffโฆ