Skip to content

Commit 99e5fe7

Browse files
authored
Merge pull request #1299 from fluxcd/oci-insecure-fix
oci: rename `OCIChartRepository.insecure` to `insecureHTTP`
2 parents dc79750 + 6a88d10 commit 99e5fe7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/helm/repository/oci_chart_repository.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ type OCIChartRepository struct {
7676
// verifiers is a list of verifiers to use when verifying a chart.
7777
verifiers []oci.Verifier
7878

79-
// insecureHTTP indicates that the chart is hosted on an insecure registry.
80-
insecure bool
79+
// insecureHTTP indicates that the chart is hosted on an insecure HTTP registry.
80+
insecureHTTP bool
8181
}
8282

8383
// OCIChartRepositoryOption is a function that can be passed to NewOCIChartRepository
@@ -94,7 +94,7 @@ func WithVerifiers(verifiers []oci.Verifier) OCIChartRepositoryOption {
9494

9595
func WithInsecureHTTP() OCIChartRepositoryOption {
9696
return func(r *OCIChartRepository) error {
97-
r.insecure = true
97+
r.insecureHTTP = true
9898
return nil
9999
}
100100
}
@@ -369,7 +369,7 @@ func (r *OCIChartRepository) VerifyChart(ctx context.Context, chart *repo.ChartV
369369
}
370370

371371
var nameOpts []name.Option
372-
if r.insecure {
372+
if r.insecureHTTP {
373373
nameOpts = append(nameOpts, name.Insecure)
374374
}
375375

0 commit comments

Comments
 (0)