From 6a88d10bf1c22522c4be3ee339d5d1fa5e156386 Mon Sep 17 00:00:00 2001 From: Sanskar Jaiswal Date: Tue, 28 Nov 2023 18:44:34 +0530 Subject: [PATCH] oci: rename `OCIChartRepository.insecure` to `insecureHTTP` Rename `OCIChartRepository.insecure` to `OCIChartRepository.insecureHTTP` in `internal/helm/repository` to match the code docs and the related setter method. Signed-off-by: Sanskar Jaiswal --- internal/helm/repository/oci_chart_repository.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/helm/repository/oci_chart_repository.go b/internal/helm/repository/oci_chart_repository.go index d1244e7c7..89798b5dc 100644 --- a/internal/helm/repository/oci_chart_repository.go +++ b/internal/helm/repository/oci_chart_repository.go @@ -76,8 +76,8 @@ type OCIChartRepository struct { // verifiers is a list of verifiers to use when verifying a chart. verifiers []oci.Verifier - // insecureHTTP indicates that the chart is hosted on an insecure registry. - insecure bool + // insecureHTTP indicates that the chart is hosted on an insecure HTTP registry. + insecureHTTP bool } // OCIChartRepositoryOption is a function that can be passed to NewOCIChartRepository @@ -94,7 +94,7 @@ func WithVerifiers(verifiers []oci.Verifier) OCIChartRepositoryOption { func WithInsecureHTTP() OCIChartRepositoryOption { return func(r *OCIChartRepository) error { - r.insecure = true + r.insecureHTTP = true return nil } } @@ -369,7 +369,7 @@ func (r *OCIChartRepository) VerifyChart(ctx context.Context, chart *repo.ChartV } var nameOpts []name.Option - if r.insecure { + if r.insecureHTTP { nameOpts = append(nameOpts, name.Insecure) }