From c9f59b74e16a2f4b8ce78929b5232ac60b0a2dac Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Wed, 10 Jun 2026 16:16:11 +0200 Subject: [PATCH] Remove dead Helm Repository's IsInsecure method In 5774b2e17, the evaluation of the insecure field was moved from the API's struct to a struct owned by the extensions controller. This left the IsInsecure method without any callers. Remove it. See: 5774b2e17 ("Add secret-based repository auth for Charts") Signed-off-by: Tom Wieczorek --- pkg/apis/k0s/v1beta1/extensions.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/apis/k0s/v1beta1/extensions.go b/pkg/apis/k0s/v1beta1/extensions.go index 855adfdf44f0..ab43079aa962 100644 --- a/pkg/apis/k0s/v1beta1/extensions.go +++ b/pkg/apis/k0s/v1beta1/extensions.go @@ -181,12 +181,6 @@ type Repository struct { Password string `json:"password,omitempty"` } -func (r *Repository) IsInsecure() bool { - // This defaults to true when not explicitly set to false. - // Better have this the other way round in the next API version. - return r == nil || r.Insecure == nil || *r.Insecure -} - // Validate performs validation func (r *Repository) Validate() error { if r.Name == "" {