Bug 2264202

Summary: errors when building helm 3.14
Product: [Fedora] Fedora Reporter: Dominik 'Rathann' Mierzejewski <dominik>
Component: golang-k8s-kubectlAssignee: Orphan Owner <extras-orphan>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: davide, go-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-21 16:39:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2175110    

Description Dominik 'Rathann' Mierzejewski 2024-02-14 14:12:57 UTC
Description of problem:
helm package fails to build with an error pointing to kubectl package.

Version-Release number of selected component (if applicable):
1.22.0-11.fc40

How reproducible:
Always

Steps to Reproduce:
1. Try building the https://rathann.fedorapeople.org/wip/helm/golang-helm-3-3.14.0-1.fc41.src.rpm in rawhide mock

Actual results:
/usr/share/gocode/src/k8s.io/kubectl/pkg/util/i18n/i18n.go:32:12: pattern translations: no matching files found

Expected results:
Successful build.

Additional info:
Apparently, the above error can be fixed by adding
%global gosupfiles pkg/util/i18n/translations/OWNERS

to kubectl spec:
https://rathann.fedorapeople.org/wip/helm/golang-k8s-kubectl-1.22.0-11.fc41.src.rpm

Once that's in the buildroot, I get the following error:
/usr/lib/golang/pkg/tool/linux_amd64/compile -o $WORK/b839/_pkg_.a -trimpath "$WORK/b839=>" -p github.com/rubenv/sql-migrate -complete -installsuffix shared -buildid ALirRMtNSQOZxcUZKqba/ALirRMtNSQOZxcUZKqba -goversion go1.22.0 -c=4 -shared -nolocalimports -importcfg $WORK/b839/importcfg -pack /usr/share/gocode/src/github.com/rubenv/sql-migrate/doc.go /usr/share/gocode/src/github.com/rubenv/sql-migrate/migrate.go
# helm.sh/helm/v3/pkg/kube
_build/src/helm.sh/helm/v3/pkg/kube/client.go:106:12: cannot use cmdutil.NewFactory(getter) (value of type "k8s.io/kubectl/pkg/cmd/util".Factory) as Factory value in struct literal: "k8s.io/kubectl/pkg/cmd/util".Factory does not implement Factory (wrong type for method Validator)
		have Validator(bool) ("k8s.io/kubectl/pkg/validation".Schema, error)
		want Validator(string) ("k8s.io/kubectl/pkg/validation".Schema, error)
_build/src/helm.sh/helm/v3/pkg/kube/client.go:344:32: undefined: metav1.FieldValidationIgnore
_build/src/helm.sh/helm/v3/pkg/kube/client.go:346:32: undefined: metav1.FieldValidationStrict
_build/src/helm.sh/helm/v3/pkg/kube/client.go:364:32: undefined: metav1.FieldValidationIgnore
_build/src/helm.sh/helm/v3/pkg/kube/client.go:366:32: undefined: metav1.FieldValidationStrict
_build/src/helm.sh/helm/v3/pkg/kube/wait.go:53:14: undefined: wait.PollUntilContextCancel
_build/src/helm.sh/helm/v3/pkg/kube/wait.go:71:14: undefined: wait.PollUntilContextCancel

This probably requires updating kubectl and possibly other packages to 1.27 because of this commit in helm:
https://github.com/helm/helm/commit/b9361407a36e0f85ba7833b6b2804a21c1a409cc#diff-137bba79988de442c1fde0fc29520d6d7e5a5239ceac82f5439a5bf513ebb2d4

Comment 1 Dominik 'Rathann' Mierzejewski 2024-02-14 14:14:13 UTC
My COPR with helm update attempt: https://copr.fedorainfracloud.org/coprs/rathann/helm/build/7013839/ .

Comment 2 Fedora Admin user for bugzilla script actions 2024-05-09 00:09:49 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Maxwell G 2024-06-21 16:39:35 UTC
Automation has figured out the package is retired in Fedora Rawhide.

If you like it to be unretired, please open a ticket at
https://pagure.io/releng/new_issue?template=package_unretirement