Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
e089483669 |
2
_service
2
_service
@@ -5,7 +5,7 @@
|
||||
<param name="exclude">.git</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="revision">v4.1.0</param>
|
||||
<param name="revision">v3.19.1</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/helm/helm.git</param>
|
||||
<param name="changesrevision">4553a0a96e5205595079b6757236cc6f969ed1b9</param></service></servicedata>
|
||||
<param name="changesrevision">4f953c223ba21103268e0b664c64240bc69fced7</param></service></servicedata>
|
||||
BIN
helm-3.19.1.obscpio
LFS
Normal file
BIN
helm-3.19.1.obscpio
LFS
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:12e3081e01546d123365df6bed7ce0063ab36dc6a1a2b2fe0a4c22d6259d188b
|
||||
size 4253196
|
||||
378
helm.changes
378
helm.changes
@@ -1,381 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 22 06:01:14 UTC 2026 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- Update to version 4.1.0:
|
||||
* Notable Changes
|
||||
- Feature: added chart name to dependency logs, namespace to
|
||||
resource waiting logs, and confirmation message when all
|
||||
resources are ready #31530
|
||||
- Feature: improved plugin name validation error messages and
|
||||
field name detection #31491
|
||||
- Feature: improved the --wait flag by allowing explicit
|
||||
strategy selection (including explicit --wait=hookOnly) and
|
||||
preventing SDK timeout errors when timeout is not specified
|
||||
#31421
|
||||
- Feature: allow concurrent dependency build with atomic file
|
||||
write #30984
|
||||
- Feature: added a --no-headers flag to the 'helm repo list'
|
||||
command, allowing users to suppress table headers in the
|
||||
output. Useful for scripting and automation #31448
|
||||
- SDK feature: added a LoadArchive to common loader #31462
|
||||
- SDK feature: introduced support for custom kstatus readers
|
||||
#31706
|
||||
- Fixed bug where a plugin name could already be used by
|
||||
another command #31427
|
||||
- Fixed bug where --server-side flag was not passed to install
|
||||
when using upgrade --install #31635
|
||||
- Fixed bug where HELM_ environment variables were not passed
|
||||
to plugins. this fixes a regression which was blocking some
|
||||
getter plugins #31613
|
||||
- Fixed bug where Helm test --logs failed with
|
||||
hook-delete-policy "hook-failed" or "hook-succeed" #31579
|
||||
- Fixed kube client logging issue #31560
|
||||
- Fixed regression where vendor-specific suffixes were stripped
|
||||
from .Capabilities.KubeVersion.GitVersion, breaking charts
|
||||
that detect managed Kubernetes platforms #31528
|
||||
- Fixed a bug where helm uninstall with --keep-history did not
|
||||
suspend previous deployed releases #12564
|
||||
- SDK: bump k8s API versions to v0.35.0
|
||||
- docs: updated helm template help text to document
|
||||
--api-versions #31683
|
||||
- docs: fixed documentation about default wait strategy
|
||||
* Changelog
|
||||
- Update pkg/kube/statuswait.go
|
||||
- pkg/kube: introduce support for custom kstatus readers
|
||||
- chore(deps): bump golang.org/x/term from 0.38.0 to 0.39.0
|
||||
- chore(deps): bump golang.org/x/text from 0.32.0 to 0.33.0
|
||||
- fix(release): fix test compilation error
|
||||
- Suppress SC2154 without changing behavior
|
||||
- chore(deps): bump github.com/foxcpp/go-mockdns from 1.1.0 to
|
||||
1.2.0
|
||||
- Lint sync-repo.sh with ShellCheck
|
||||
- chore: move Evans Mungai from triage to maintainers
|
||||
- Replace reflect.Ptr with reflect.Pointer
|
||||
- fix: typo in the function names
|
||||
- Add documentation for --api-versions flag in template command
|
||||
- Fixing failing tests for cli-tools update
|
||||
- chore(deps): bump github.com/fluxcd/cli-utils
|
||||
- Replace deprecated `NewSimpleClientset`
|
||||
- docs(README): add mise alternate installation documentation
|
||||
- enable exhaustive linter
|
||||
- fix: add default casess to switch statements
|
||||
- build: set kube version via `debug.BuildInfo`
|
||||
- chore(deps): bump github.com/tetratelabs/wazero from 1.10.1
|
||||
to 1.11.0
|
||||
- chore(deps): bump github.com/BurntSushi/toml from 1.5.0 to
|
||||
1.6.0
|
||||
- doc: update based on review suggestion
|
||||
- test(statuswait): fix Copilot code review suggestion for
|
||||
goroutine in tests
|
||||
- test(statuswait): add more tests suggested by Copilot code
|
||||
review
|
||||
- test(statuswait): add some tests for statuswait
|
||||
- fix: use namespace-scoped watching to avoid cluster-wide LIST
|
||||
permissions
|
||||
- fix(doc): Update default wait strategy
|
||||
- Update to use slog
|
||||
- Fix TestCliPluginExitCode
|
||||
- Check plugin name is not used
|
||||
- chore(deps): bump github.com/fluxcd/cli-utils
|
||||
- Fix `TestConcurrencyDownloadIndex` typo
|
||||
- Use errors.Is to check for io.EOF and gzip.ErrHeader
|
||||
- chore(deps): bump actions/upload-artifact from 4.6.2 to 6.0.0
|
||||
- chore(deps): bump the k8s-io group with 7 updates
|
||||
- chore(deps): bump golang.org/x/crypto from 0.45.0 to 0.46.0
|
||||
- chore: fix some comments to improve readability
|
||||
- chore(deps): bump golang.org/x/text from 0.31.0 to 0.32.0
|
||||
- feat: move TerryHowe triage to maintainers
|
||||
- Use latest patch release of Go in releases
|
||||
- chore(deps): bump github.com/rubenv/sql-migrate from 1.8.0 to
|
||||
1.8.1
|
||||
- fix(upgrade): pass --server-side flag to install when using
|
||||
upgrade --install
|
||||
- chore(deps): bump github.com/spf13/cobra from 1.10.1 to
|
||||
1.10.2
|
||||
- chore(deps): bump golang.org/x/term from 0.37.0 to 0.38.0
|
||||
- Run the vulnerability check on PR that change the file
|
||||
- Fix govulncheck in CI
|
||||
- Update the govulncheck.yml to run on change
|
||||
- Enable the sloglint linter
|
||||
- fix(cli): handle nil config in EnvSettings.Namespace()
|
||||
- fix(getter): pass settings environment variables
|
||||
- fixes comment in install.go
|
||||
- chore(deps): bump actions/stale from 10.1.0 to 10.1.1
|
||||
- chore(deps): bump golangci/golangci-lint-action from 9.1.0 to
|
||||
9.2.0
|
||||
- fixes tests after merge
|
||||
- fixes lint issue
|
||||
- updates tests after rebase from master
|
||||
- Add tests to action package to improve coverage
|
||||
- chore(deps): bump actions/checkout from 6.0.0 to 6.0.1
|
||||
- Inform we use a different golangci-lint version than the CI
|
||||
- Deal with golint warning with private executeShutdownFunc
|
||||
- Use length check for MetaDependencies instead of nil
|
||||
comparison
|
||||
- Code review
|
||||
- Fix linting issue
|
||||
- Update pkg/action/hooks.go
|
||||
- added check for nil shutdown
|
||||
- cleaned up empty line
|
||||
- updated comment and made defer of shutdown function return
|
||||
errors as before and not the possible shutdown error
|
||||
- added shutdown hook that is executed after the logs have been
|
||||
retrieved
|
||||
- chore: fix typo in pkg/downloader/chart_downloader.go
|
||||
- Bump required go version (`go.mod` version)
|
||||
- Use modernize to use newer Golang features.
|
||||
- Remove two redundant if-checks.
|
||||
- Fix kube client logging
|
||||
- chore(deps): bump golangci/golangci-lint-action from 9.0.0 to
|
||||
9.1.0
|
||||
- chore(deps): bump actions/checkout from 5.0.1 to 6.0.0
|
||||
- chore(deps): bump actions/setup-go from 5.5.0 to 6.1.0
|
||||
- fix: prevent segmentation violation on empty yaml in multidoc
|
||||
- fix: prevent reporting fallback on version when none
|
||||
specified
|
||||
- chore(deps): bump golang.org/x/crypto from 0.44.0 to 0.45.0
|
||||
- chore(deps): bump github.com/cyphar/filepath-securejoin
|
||||
- bump version to 4.1
|
||||
- fix: add missing context to debug logs
|
||||
- fix: preserve vendor suffixes in KubeVersion.GitVersion
|
||||
- chore(deps): bump actions/checkout from 5.0.0 to 5.0.1
|
||||
- fixup test
|
||||
- logs
|
||||
- fix
|
||||
- chore: add warning for registry login with namespace
|
||||
- style: linting
|
||||
- test: split tests between valid and invalid
|
||||
- test: convert tests to table drive tests
|
||||
- test: refactor TestMetadataLegacyValidate to be more generic
|
||||
- update tests
|
||||
- fix: Use server-side apply for object create during update
|
||||
- Copy adopted resource info
|
||||
- Refactor environment variable expansion in PrepareCommands
|
||||
and update tests
|
||||
- fix: correct LDFLAGS path for default Kubernetes version
|
||||
- fix: improve plugin name validation err messages early via
|
||||
unmarshalling
|
||||
- fix: Make invalid name error message more similar and move
|
||||
tests
|
||||
- fix: focus only on plugin name but give more info about what
|
||||
we get
|
||||
- Make validation error similar and explicit for both metadatas
|
||||
- fix: improve plugin name validation error messages
|
||||
- Fix syntax errors in the document
|
||||
- chore(deps): bump the k8s-io group with 7 updates
|
||||
- docs: Fix LFX Health Score badge URL in README.md
|
||||
- chore(deps): bump golang.org/x/crypto from 0.43.0 to 0.44.0
|
||||
- chore(deps): bump github.com/tetratelabs/wazero from 1.9.0 to
|
||||
1.10.1
|
||||
- Publish Helm v4 -> `helm-latest-version`
|
||||
- Adding script to download Helm v4
|
||||
- chore(deps): bump golang.org/x/term from 0.36.0 to 0.37.0
|
||||
- refactor: use strings.Builder to improve performance
|
||||
- chore(deps): bump sigs.k8s.io/kustomize/kyaml from 0.20.1 to
|
||||
0.21.0
|
||||
- chore(deps): bump golangci/golangci-lint-action from 8.0.0 to
|
||||
9.0.0
|
||||
- Update pkg/cmd/flags.go
|
||||
- Error strategy list match help
|
||||
- Prevent surprising failure with SDK when timeout is not set
|
||||
- Do not change the default waiting strategy when --wait is not
|
||||
set
|
||||
- Provide more help for SDK user when setting up WaitStrategy
|
||||
- Avoid confusion between `--wait` (watcher) and no --wait
|
||||
(hookOnly)
|
||||
- The default is not HookOnlyStrategy but WaitStrategy
|
||||
- Make wait strategy selection more obvious
|
||||
- Update pkg/cmd/flags.go
|
||||
- Increase documentation of --wait flag
|
||||
- While testing SDK features for v4. I was surprised with the
|
||||
error:
|
||||
- fix: do not run release workflow on forks
|
||||
- Convert pkg/cmd/load_plugins.go to slog
|
||||
- Rename copilot-instructions.md to AGENTS.md
|
||||
- fix(rollback): `errors.Is` instead of string comp
|
||||
- fix(uninstall): supersede deployed releases
|
||||
- for remaining local variable case inconsistency
|
||||
- Properly test error messages on pull command's test
|
||||
- Adding a LoadArchive to common loader
|
||||
- for all other similar cases
|
||||
- chore(deps): bump github.com/cyphar/filepath-securejoin
|
||||
- chore(deps): bump sigs.k8s.io/controller-runtime from 0.22.3
|
||||
to 0.22.4
|
||||
- chore: increase logging package test coverage
|
||||
- feat(repo): add --no-headers option to 'helm repo list'
|
||||
- chore: fix typo of public field
|
||||
- rename interface{} to any
|
||||
- test: protect unknown hook delete policies
|
||||
- chore: replace github.com/mitchellh/copystructure
|
||||
- fix: Fix Helm v4 release distribtion/get-helm-3 script
|
||||
- fix test
|
||||
- Make test scripts run without /bin/bash
|
||||
- Ignore duplicated URN in logs
|
||||
- jsonschema: warn and ignore unresolved URN $ref to match
|
||||
v3.18.4
|
||||
- chore: delete unused var in installer.go
|
||||
- fix: assign KUBECONFIG environment variable value to
|
||||
env.Kubeconfig
|
||||
- add concurrency test on write & load index file
|
||||
- update writing index files to writeAtomicFile
|
||||
- fix index concurrency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 15 05:58:15 UTC 2026 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- Update to version 4.0.5:
|
||||
* Notable Changes
|
||||
- Fixed bug where helm uninstall with --keep-history did not
|
||||
suspend previous deployed releases #12556
|
||||
- Fixed rollback error when a manifest is removed in a failed
|
||||
upgrade #13437
|
||||
- Fixed check to ensure CLI plugin does not load with the same
|
||||
name as an existing Helm command
|
||||
- Fixed helm test --logs failure with hook-delete-policy
|
||||
"hook-failed" or "hook-succeed" #9098
|
||||
- Fixed a bug where empty dependency lists were incorrectly
|
||||
treated as present
|
||||
- Fixed a bug where the watch library did not only watch
|
||||
namespaces associated with the objects
|
||||
- Fixed regression in downloader plugins environment variables
|
||||
#31612
|
||||
- Fixed bug where --server-side flag is not respected with helm
|
||||
upgrade --install #31627
|
||||
- For SDK users: exposed KUBECONFIG to env
|
||||
* Changelog
|
||||
- fix(upgrade): pass --server-side flag to install when using
|
||||
upgrade --install 1b6053d (Evans Mungai)
|
||||
- fix(cli): handle nil config in EnvSettings.Namespace()
|
||||
1e3ee1d (Zadkiel AHARONIAN)
|
||||
- fix(getter): pass settings environment variables 31bd995
|
||||
(Zadkiel AHARONIAN)
|
||||
- test(statuswait): fix Copilot code review suggestion for
|
||||
goroutine in tests 41a6b36 (Mohsen Mottaghi)
|
||||
- test(statuswait): add more tests suggested by Copilot code
|
||||
review 2a2e6f7 (Mohsen Mottaghi)
|
||||
- test(statuswait): add some tests for statuswait 3818c02
|
||||
(Mohsen Mottaghi)
|
||||
- fix: use namespace-scoped watching to avoid cluster-wide LIST
|
||||
permissions 66cab24 (Mohsen Mottaghi)
|
||||
- Use length check for MetaDependencies instead of nil
|
||||
comparison abf2007 (Calvin Bui)
|
||||
- Deal with golint warning with private executeShutdownFunc
|
||||
4b3de18 (Benoit Tigeot)
|
||||
- Code review 3212770 (Benoit Tigeot)
|
||||
- Fix linting issue 417aae9 (Benoit Tigeot)
|
||||
- Update pkg/action/hooks.go 6c838b4 (Michelle Fernandez
|
||||
Bieber)
|
||||
- added check for nil shutdown c5d87f2 (Michelle Fernandez
|
||||
Bieber)
|
||||
- cleaned up empty line 53175b7 (Michelle Fernandez Bieber)
|
||||
- updated comment and made defer of shutdown function return
|
||||
errors as before and not the possible shutdown error d2df1ab
|
||||
(Michelle Fernandez Bieber)
|
||||
- added shutdown hook that is executed after the logs have been
|
||||
retrieved 5b223de (Michelle Fernandez Bieber)
|
||||
- Fix TestCliPluginExitCode e845b68 (tison)
|
||||
- Check plugin name is not used 30bfd57 (tison)
|
||||
- Fix rollback for missing resources 0fd2c41 (Feruzjon
|
||||
Muyassarov)
|
||||
- fix: assign KUBECONFIG environment variable value to
|
||||
env.Kubeconfig b456e27 (LinPr)
|
||||
- fix(rollback): errors.Is instead of string comp e2021f8
|
||||
(Hidde Beydals)
|
||||
- fix(uninstall): supersede deployed releases af7c153 (Hidde
|
||||
Beydals)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 13 19:26:45 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- Update to version 4.0.4 (4.0.3 was not released):
|
||||
* Bump v4.0.2 CVE deps cd700e0 (George Jenkins)
|
||||
* Use latest patch release of Go in releases 9db13ee (Matt
|
||||
Farina)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 11 07:00:08 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- Update to version 4.0.2:
|
||||
* fix: prevent reporting fallback on version when none specified
|
||||
* fix: prevent segmentation violation on empty yaml in multidoc
|
||||
* Ignore duplicated URN in logs
|
||||
* jsonschema: warn and ignore unresolved URN $ref to match
|
||||
v3.18.4
|
||||
* Publish Helm v4 -> `helm-latest-version`
|
||||
* fix: Fix Helm v4 release distribtion/get-helm-3 script
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 25 07:41:27 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- Update to version 4.0.1:
|
||||
* Copy adopted resource info 12500dd (George Jenkins)
|
||||
* fixup test 1cf3841 (George Jenkins)
|
||||
* logs 32e2d08 (George Jenkins)
|
||||
* fix 4b6472f (George Jenkins)
|
||||
* fix: Use server-side apply for object create during update
|
||||
9dfe3b3 (George Jenkins)
|
||||
* Fix kube client logging 861adc2 (Matt Farina)
|
||||
* update tests b2f7872 (yxxhero)
|
||||
* Refactor environment variable expansion in PrepareCommands and
|
||||
update tests 77f97a1 (yxxhero)
|
||||
* Fix syntax errors in the document a156195 (Fish-pro)
|
||||
* fix: correct LDFLAGS path for default Kubernetes version
|
||||
2c0dcda (Benoit Tigeot)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 14 08:16:41 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- Update to version 4.0.0:
|
||||
https://github.com/helm/helm/releases/tag/v4.0.0
|
||||
The Helm Team is proud to announce the first stable release of
|
||||
Helm 4.
|
||||
For full release notes, please see:
|
||||
https://helm.sh/docs/overview/
|
||||
https://helm.sh/docs/changelog/
|
||||
* New Features
|
||||
Helm 4 has numerous new features, but a few deserve
|
||||
highlighting here:
|
||||
- Redesigned plugin system that supports Web Assembly based
|
||||
plugins
|
||||
- Post-renderers are now plugins
|
||||
- Server side apply is now supported
|
||||
- Improved resource watching, to support waiting, based on
|
||||
kstatus
|
||||
- Local Content-based caching (e.g. for charts)
|
||||
- Logging via slog enabling SDK logging to integrate with
|
||||
modern loggers
|
||||
- Reproducible builds of chart archives
|
||||
- Updated SDK API including support for multiple chart API
|
||||
versions (new experimental v3 chart API version coming soon)
|
||||
* Compatibility with Helm v3
|
||||
Helm v4 is a major version with backward incompatible changes
|
||||
including to the flags and output of the Helm CLI and to the
|
||||
SDK.
|
||||
Please evaluate the changes to your workflows. The changes are
|
||||
not as extensive as those from Helm v2 to v3, with the goal
|
||||
that the majority of workflows remain compatible between Helm
|
||||
v3 and v4.
|
||||
Helm charts apiVersion v2 (majority of today's charts) will
|
||||
continue to be supported in Helm v4. Existing charts should
|
||||
continue to install, upgrade, and otherwise work. Please test
|
||||
the installation and upgrade of charts to ensure it works as
|
||||
expected. Changes (e.g., server side apply) may impact the
|
||||
experience.
|
||||
* Breaking Changes
|
||||
- Post-renderers implemented as plugins
|
||||
Post-renderers are implemented as plugins. With this change,
|
||||
it is no longer possible to pass an executable directly to
|
||||
helm render --post-renderer, but a plugin name must be
|
||||
passed. This might require updates to existing any
|
||||
post-renderer workflows.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 12 15:01:28 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- Update to version 3.19.2:
|
||||
* [backport] fix: get-helm-3 script use helm3-latest-version
|
||||
8766e71 (George Jenkins)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 11 10:17:19 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: helm
|
||||
version: 4.1.0
|
||||
mtime: 1768243197
|
||||
commit: 4553a0a96e5205595079b6757236cc6f969ed1b9
|
||||
version: 3.19.1
|
||||
mtime: 1762826932
|
||||
commit: 4f953c223ba21103268e0b664c64240bc69fced7
|
||||
|
||||
76
helm.spec
76
helm.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package helm
|
||||
#
|
||||
# Copyright (c) 2026 SUSE LLC and contributors
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,8 +16,10 @@
|
||||
#
|
||||
|
||||
|
||||
%define goipath helm.sh/helm/v3
|
||||
%define git_dirty clean
|
||||
Name: helm
|
||||
Version: 4.1.0
|
||||
Version: 3.19.1
|
||||
Release: 0
|
||||
Summary: The Kubernetes Package Manager
|
||||
License: Apache-2.0
|
||||
@@ -25,14 +27,15 @@ Group: Development/Languages/Other
|
||||
URL: https://github.com/helm/helm
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: vendor.tar.gz
|
||||
BuildRequires: bash-completion
|
||||
BuildRequires: fish
|
||||
BuildRequires: golang-packaging
|
||||
BuildRequires: zsh
|
||||
%if 0%{?suse_version} == 1600
|
||||
# go is not available on Framework one for x86
|
||||
ExcludeArch: %ix86
|
||||
%endif
|
||||
BuildRequires: golang(API) = 1.25
|
||||
BuildRequires: golang(API) = 1.24
|
||||
%{go_provides}
|
||||
|
||||
%description
|
||||
Helm is a tool for managing Kubernetes charts. Charts are packages of
|
||||
@@ -75,41 +78,25 @@ Fish command line completion support for %{name}.
|
||||
%autosetup -p1 -a1
|
||||
|
||||
%build
|
||||
export K8S_MODULES_MAJOR_VER=1
|
||||
export K8S_MODULES_MINOR_VER=$(grep k8s.io/client-go go.mod | cut -d. -f3)
|
||||
|
||||
echo "K8S_MODULES_MAJOR_VER is set to $K8S_MODULES_MAJOR_VER"
|
||||
echo "K8S_MODULES_MINOR_VER is set to $K8S_MODULES_MINOR_VER"
|
||||
|
||||
%goprep %{goipath}
|
||||
export K8S_MINOR=$(grep k8s.io/client-go go.mod | cut -d. -f3)
|
||||
export GO111MODULE=on
|
||||
%ifnarch %ix86 s390x riscv64
|
||||
export CGO_ENABLED=0
|
||||
%endif
|
||||
go build \
|
||||
-trimpath \
|
||||
-tags '' \
|
||||
-mod vendor \
|
||||
-buildmode pie \
|
||||
-ldflags \
|
||||
"-X helm.sh/helm/v4/internal/version.version=v%{version} \
|
||||
-X helm.sh/helm/v4/internal/version.gitCommit=$(sed -n 's/commit: \(.*\)/\1/p' %_sourcedir/%{name}.obsinfo) \
|
||||
-X helm.sh/helm/v4/internal/version.gitTreeState=clean \
|
||||
-X helm.sh/helm/v4/internal/version.kubeClientVersionMajor=${K8S_MODULES_MAJOR_VER} \
|
||||
-X helm.sh/helm/v4/internal/version.kubeClientVersionMinor=${K8S_MODULES_MINOR_VER} \
|
||||
-X helm.sh/helm/v4/pkg/chart/common.k8sVersionMajor=${K8S_MODULES_MAJOR_VER} \
|
||||
-X helm.sh/helm/v4/pkg/chart/common.k8sVersionMinor=${K8S_MODULES_MINOR_VER} \
|
||||
-X helm.sh/helm/v4/pkg/chart/v2/lint/rules.k8sVersionMajor=${K8S_MODULES_MAJOR_VER} \
|
||||
-X helm.sh/helm/v4/pkg/chart/v2/lint/rules.k8sVersionMinor=${K8S_MODULES_MINOR_VER} \
|
||||
-X helm.sh/helm/v4/pkg/chartutil.k8sVersionMajor=${K8S_MODULES_MAJOR_VER} \
|
||||
-X helm.sh/helm/v4/pkg/chartutil.k8sVersionMinor=${K8S_MODULES_MINOR_VER} \
|
||||
-X helm.sh/helm/v4/pkg/internal/v3/lint/rules.k8sVersionMajor=${K8S_MODULES_MAJOR_VER} \
|
||||
-X helm.sh/helm/v4/pkg/internal/v3/lint/rules.k8sVersionMinor=${K8S_MODULES_MINOR_VER} \
|
||||
-X helm.sh/helm/v4/pkg/lint/rules.k8sVersionMajor=${K8S_MODULES_MAJOR_VER} \
|
||||
-X helm.sh/helm/v4/pkg/lint/rules.k8sVersionMinor=${K8S_MODULES_MINOR_VER}" \
|
||||
-o bin/%{name} ./cmd/helm
|
||||
%gobuild -trimpath -tags '' -mod vendor -buildmode pie -ldflags \
|
||||
"-X %{goipath}/internal/version.version=v%{version} \
|
||||
-X %{goipath}/internal/version.gitCommit=$(sed -n 's/commit: \(.*\)/\1/p' %_sourcedir/%{name}.obsinfo) \
|
||||
-X %{goipath}/pkg/lint/rules.k8sVersionMajor=1 \
|
||||
-X %{goipath}/pkg/lint/rules.k8sVersionMinor=$K8S_MINOR \
|
||||
-X %{goipath}/pkg/chartutil.k8sVersionMajor=1 \
|
||||
-X %{goipath}/pkg/chartutil.k8sVersionMinor=$K8S_MINOR \
|
||||
-X %{goipath}/internal/version.gitTreeState=%{git_dirty}" cmd/helm
|
||||
|
||||
%install
|
||||
install -D -m 0755 bin/%{name} %{buildroot}/%{_bindir}/%{name}
|
||||
|
||||
export GO111MODULE=on
|
||||
export CGO_ENABLED=0
|
||||
%goinstall
|
||||
mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions
|
||||
%{buildroot}/%{_bindir}/helm completion bash > %{buildroot}%{_datarootdir}/bash-completion/completions/%{name}
|
||||
mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions
|
||||
@@ -118,18 +105,15 @@ mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d
|
||||
%{buildroot}/%{_bindir}/helm completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
|
||||
|
||||
%check
|
||||
rm -fv internal/plugin/installer/base_test.go
|
||||
rm -fv internal/plugin/installer/http_installer_test.go
|
||||
rm -fv internal/plugin/installer/installer_test.go
|
||||
rm -fv internal/plugin/installer/vcs_installer_test.go
|
||||
rm -fv internal/plugin/runtime_extismv1_test.go
|
||||
rm -fv pkg/action/pull_test.go
|
||||
rm -fv pkg/downloader/cache_test.go
|
||||
rm -fv pkg/downloader/chart_downloader_test.go
|
||||
rm -fv pkg/downloader/manager_test.go
|
||||
rm -fv pkg/engine/engine_test.go
|
||||
|
||||
go test -p 2 ./...
|
||||
# requires network
|
||||
rm -v pkg/plugin/installer/*installer_test.go
|
||||
rm -v pkg/engine/engine_test.go
|
||||
# skip flaky tests
|
||||
rm -v cmd/helm/dependency_build_test.go
|
||||
rm -v cmd/helm/dependency_update_test.go
|
||||
rm -v cmd/helm/pull_test.go
|
||||
rm -v cmd/helm/registry_login_test.go
|
||||
GO111MODULE=on go test -p 2 ./...
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
|
||||
BIN
vendor.tar.gz
LFS
BIN
vendor.tar.gz
LFS
Binary file not shown.
Reference in New Issue
Block a user