21 Commits

Author SHA256 Message Date
e72cbf3220 Accepting request 1327467 from Virtualization:containers
OBS-URL: https://build.opensuse.org/request/show/1327467
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/helm?expand=0&rev=94
2026-01-17 13:52:51 +00:00
1bcaab93cf update to 4.0.5
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/helm?expand=0&rev=146
2026-01-15 21:18:10 +00:00
25c00ad781 Accepting request 1324481 from Virtualization:containers
OBS-URL: https://build.opensuse.org/request/show/1324481
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/helm?expand=0&rev=93
2025-12-27 11:48:30 +00:00
c4db80f89e update to 4.0.4
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/helm?expand=0&rev=144
2025-12-27 09:26:03 +00:00
785805716f Accepting request 1322790 from Virtualization:containers
OBS-URL: https://build.opensuse.org/request/show/1322790
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/helm?expand=0&rev=92
2025-12-15 10:58:44 +00:00
36770ea8cd update to 4.0.2
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/helm?expand=0&rev=142
2025-12-13 18:08:27 +00:00
15d37834c3 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/helm?expand=0&rev=141 2025-11-27 17:17:59 +00:00
8e1e2daec6 - add conflicts with helm3
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/helm?expand=0&rev=140
2025-11-27 17:17:22 +00:00
332f483e7a Accepting request 1319963 from Virtualization:containers
OBS-URL: https://build.opensuse.org/request/show/1319963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/helm?expand=0&rev=91
2025-11-26 16:14:49 +00:00
5371c7c53a update to 4.0.1 (cleanup spec and fix version output)
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/helm?expand=0&rev=138
2025-11-25 11:09:55 +00:00
5de94f3dd7 Accepting request 1318389 from Virtualization:containers
OBS-URL: https://build.opensuse.org/request/show/1318389
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/helm?expand=0&rev=90
2025-11-18 14:40:06 +00:00
0607baa6bd update to 3.19.1
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/helm?expand=0&rev=136
2025-11-18 06:07:52 +00:00
270474d579 Accepting request 1317198 from Virtualization:containers
- Update to version 3.19.1 (bsc#1251649, CVE-2025-58190,
  bsc#1251442, CVE-2025-47911):
  * chore(deps): bump github.com/containerd/containerd from 1.7.28
    to 1.7.29
  * jsonschema: warn and ignore unresolved URN $ref to match
    v3.18.4
  * Avoid "panic: interface conversion: interface {} is nil"
  * Fix `helm pull` untar dir check with repo urls
  * Fix deprecation warning
  * chore(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10
  * Add timeout flag to repo add and update flags
  * chore(deps): bump golang.org/x/crypto from 0.41.0 to 0.43.0

OBS-URL: https://build.opensuse.org/request/show/1317198
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/helm?expand=0&rev=89
2025-11-12 20:14:45 +00:00
0600639bd8 - Update to version 3.19.1 (bsc#1251649, CVE-2025-58190,
bsc#1251442, CVE-2025-47911):

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/helm?expand=0&rev=134
2025-11-11 22:34:49 +00:00
2afa538a6e update to 3.19.1
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/helm?expand=0&rev=133
2025-11-11 22:31:31 +00:00
2488920202 Accepting request 1304583 from Virtualization:containers
- Update to version 3.19.0:
  * bump version to v3.19.0
  * fix: use username and password if provided
  * chore(deps): bump the k8s-io group with 7 updates
  * chore(deps): bump github.com/spf13/cobra from 1.9.1 to 1.10.1
  * chore(deps): bump github.com/stretchr/testify from 1.11.0 to 1.11.1
  * chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0
  * fix(helm-lint): fmt
  * fix(helm-lint): Add TLSClientConfig
  * fix(helm-lint): Add HTTP/HTTPS URL support for json schema references
  * chore(deps): bump the k8s-io group with 7 updates
  * fix: go mod tidy for v3
  * chore(deps): bump golang.org/x/crypto from 0.40.0 to 0.41.0
  * chore(deps): bump golang.org/x/term from 0.33.0 to 0.34.0
  * fix Chart.yaml handling
  * Handle messy index files
  * chore(deps): bump github.com/containerd/containerd from 1.7.27 to 1.7.28
  * json schema fix
  * fix: k8s version parsing to match original
  * chore(deps): bump sigs.k8s.io/yaml from 1.5.0 to 1.6.0
  * Do not explicitly set SNI in HTTPGetter
  * chore(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.7
  * chore(deps): bump the k8s-io group with 7 updates
  * chore(deps): bump golang.org/x/crypto from 0.39.0 to 0.40.0
  * chore(deps): bump golang.org/x/term from 0.32.0 to 0.33.0
  * chore(deps): bump golang.org/x/text from 0.26.0 to 0.27.0
  * Disabling linter due to unknown issue
  * Updating link handling
  * Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
  * build(deps): bump the k8s-io group with 7 updates

OBS-URL: https://build.opensuse.org/request/show/1304583
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/helm?expand=0&rev=88
2025-09-15 17:51:05 +00:00
b7ac322c97 - Update to version 3.19.0:
* bump version to v3.19.0
  * fix: use username and password if provided
  * chore(deps): bump the k8s-io group with 7 updates
  * chore(deps): bump github.com/spf13/cobra from 1.9.1 to 1.10.1
  * chore(deps): bump github.com/stretchr/testify from 1.11.0 to 1.11.1
  * chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0
  * fix(helm-lint): fmt
  * fix(helm-lint): Add TLSClientConfig
  * fix(helm-lint): Add HTTP/HTTPS URL support for json schema references
  * chore(deps): bump the k8s-io group with 7 updates
  * fix: go mod tidy for v3
  * chore(deps): bump golang.org/x/crypto from 0.40.0 to 0.41.0
  * chore(deps): bump golang.org/x/term from 0.33.0 to 0.34.0
  * fix Chart.yaml handling
  * Handle messy index files
  * chore(deps): bump github.com/containerd/containerd from 1.7.27 to 1.7.28
  * json schema fix
  * fix: k8s version parsing to match original
  * chore(deps): bump sigs.k8s.io/yaml from 1.5.0 to 1.6.0
  * Do not explicitly set SNI in HTTPGetter
  * chore(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.7
  * chore(deps): bump the k8s-io group with 7 updates
  * chore(deps): bump golang.org/x/crypto from 0.39.0 to 0.40.0
  * chore(deps): bump golang.org/x/term from 0.32.0 to 0.33.0
  * chore(deps): bump golang.org/x/text from 0.26.0 to 0.27.0
  * Disabling linter due to unknown issue
  * Updating link handling
  * Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
  * build(deps): bump the k8s-io group with 7 updates

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/helm?expand=0&rev=131
2025-09-13 20:36:20 +00:00
2502f5f638 Accepting request 1301959 from Virtualization:containers
OBS-URL: https://build.opensuse.org/request/show/1301959
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/helm?expand=0&rev=87
2025-08-29 16:37:45 +00:00
711cd4e8c2 update to 3.18.6
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/helm?expand=0&rev=129
2025-08-29 15:03:42 +00:00
8d58b6a1ca Accepting request 1297565 from Virtualization:containers
OBS-URL: https://build.opensuse.org/request/show/1297565
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/helm?expand=0&rev=86
2025-08-05 12:21:25 +00:00
e6e93e20ee Cleanup completions.
Add BuildRequires to prevent inclusion of folders owned by shells.
Add Requires because installing completions without appropriate shell is questionable.

Fix for zsh completion:
/usr/share/zsh_completion.d is not on zsh's fpath and completions located there doesn't get loaded. Moved completion to /usr/share/zsh/site-functions to make it work for helm.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/helm?expand=0&rev=127
2025-08-04 17:26:40 +00:00
8 changed files with 334 additions and 47 deletions

View File

@@ -5,7 +5,7 @@
<param name="exclude">.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="revision">v3.18.4</param>
<param name="revision">v4.0.5</param>
<param name="changesgenerate">enable</param>
</service>
<service name="set_version" mode="manual">

View File

@@ -1,4 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/helm/helm.git</param>
<param name="changesrevision">d80839cf37d860c8aa9a0503fe463278f26cd5e2</param></service></servicedata>
<param name="changesrevision">1b6053d48b51673c5581973f5ae7e104f627fcf5</param></service></servicedata>

Binary file not shown.

3
helm-4.0.5.obscpio Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0896b0d276c5a49e8118654ae587caed7241c4ff3afae985bb3e59e78318cd71
size 4144140

View File

@@ -1,3 +1,274 @@
-------------------------------------------------------------------
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>
- Update to version 3.19.1 (bsc#1251649, CVE-2025-58190,
bsc#1251442, CVE-2025-47911):
* chore(deps): bump github.com/containerd/containerd from 1.7.28
to 1.7.29
* jsonschema: warn and ignore unresolved URN $ref to match
v3.18.4
* Avoid "panic: interface conversion: interface {} is nil"
* Fix `helm pull` untar dir check with repo urls
* Fix deprecation warning
* chore(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10
* Add timeout flag to repo add and update flags
* chore(deps): bump golang.org/x/crypto from 0.41.0 to 0.43.0
-------------------------------------------------------------------
Sat Sep 13 16:02:47 UTC 2025 - Dirk Müller <dmueller@suse.com>
- Update to version 3.19.0:
* bump version to v3.19.0
* fix: use username and password if provided
* chore(deps): bump the k8s-io group with 7 updates
* chore(deps): bump github.com/spf13/cobra from 1.9.1 to 1.10.1
* chore(deps): bump github.com/stretchr/testify from 1.11.0 to 1.11.1
* chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0
* fix(helm-lint): fmt
* fix(helm-lint): Add TLSClientConfig
* fix(helm-lint): Add HTTP/HTTPS URL support for json schema references
* chore(deps): bump the k8s-io group with 7 updates
* fix: go mod tidy for v3
* chore(deps): bump golang.org/x/crypto from 0.40.0 to 0.41.0
* chore(deps): bump golang.org/x/term from 0.33.0 to 0.34.0
* fix Chart.yaml handling
* Handle messy index files
* chore(deps): bump github.com/containerd/containerd from 1.7.27 to 1.7.28
* json schema fix
* fix: k8s version parsing to match original
* chore(deps): bump sigs.k8s.io/yaml from 1.5.0 to 1.6.0
* Do not explicitly set SNI in HTTPGetter
* chore(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.7
* chore(deps): bump the k8s-io group with 7 updates
* chore(deps): bump golang.org/x/crypto from 0.39.0 to 0.40.0
* chore(deps): bump golang.org/x/term from 0.32.0 to 0.33.0
* chore(deps): bump golang.org/x/text from 0.26.0 to 0.27.0
* Disabling linter due to unknown issue
* Updating link handling
* Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
* build(deps): bump the k8s-io group with 7 updates
* build(deps): bump sigs.k8s.io/yaml from 1.4.0 to 1.5.0
* fix: user username password for login
* Update pkg/registry/transport.go
* Update pkg/registry/transport.go
* fix: add debug logging to oci transport
* build(deps): bump golang.org/x/crypto from 0.38.0 to 0.39.0
* build(deps): bump golang.org/x/text from 0.25.0 to 0.26.0
* fix: legacy docker support broken for login
* fix: plugin installer test with no Internet
* Handle an empty registry config file.
* Prevent fetching newReference again as we have in calling method
* Prevent failure when resolving version tags in oras memory store
* fix(client): skipnode utilization for PreCopy
* test: Skip instead of returning early. looks more intentional
* test: tests repo stripping functionality
* test: include tests for Login based on different protocol prefixes
* fix(client): layers now returns manifest - remove duplicate from descriptors
* fix(client): return nil on non-allowed media types
* Fix 3.18.0 regression: registry login with scheme
* Update pkg/plugin/plugin.go
* Update pkg/plugin/plugin.go
* Wait for Helm v4 before raising when platformCommand and Command are set
* Revert "fix (helm) : toToml` renders int as float [ backport to v3 ]"
* build(deps): bump the k8s-io group with 7 updates
* chore: update generalization warning message
* build(deps): bump oras.land/oras-go/v2 from 2.5.0 to 2.6.0
* build(deps): bump the k8s-io group with 7 updates
* build(deps): bump golang.org/x/crypto from 0.37.0 to 0.38.0
* fix: move warning to top of block
* fix: govulncheck workflow
* fix: replace fmt warning with slog
* fix: add warning when ignore repo flag
* bump version to v3.18.0
* backport #30673 to dev-v3
* feat: add httproute from gateway-api to create chart template
-------------------------------------------------------------------
Wed Aug 20 11:12:50 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 3.18.6:
* fix(helm-lint): fmt
* fix(helm-lint): Add TLSClientConfig
* fix(helm-lint): Add HTTP/HTTPS URL support for json schema
references
-------------------------------------------------------------------
Tue Aug 19 05:19:28 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 3.18.5:
* fix Chart.yaml handling 7799b48 (Matt Farina)
* Handle messy index files dd8502f (Matt Farina)
* json schema fix cb8595b (Robert Sirchia)
-------------------------------------------------------------------
Mon Aug 4 15:20:55 UTC 2025 - Alexey Kolos <lioli7k@gmail.com>
- Fix shell completion dependencies
* Add BuildRequires to prevent inclusion of folders owned by shells.
* Add Requires because installing completions without appropriate
shell is questionable.
-------------------------------------------------------------------
Tue Jul 29 20:02:25 UTC 2025 - Alexey Kolos <lioli7k@gmail.com>
- Fix zsh completion location
-------------------------------------------------------------------
Wed Jul 09 04:44:40 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>

View File

@@ -1,4 +1,4 @@
name: helm
version: 3.18.4
mtime: 1752004680
commit: d80839cf37d860c8aa9a0503fe463278f26cd5e2
version: 4.0.5
mtime: 1768430626
commit: 1b6053d48b51673c5581973f5ae7e104f627fcf5

View File

@@ -1,7 +1,7 @@
#
# spec file for package helm
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2026 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,10 +16,8 @@
#
%define goipath helm.sh/helm/v3
%define git_dirty clean
Name: helm
Version: 3.18.4
Version: 4.0.5
Release: 0
Summary: The Kubernetes Package Manager
License: Apache-2.0
@@ -27,13 +25,14 @@ Group: Development/Languages/Other
URL: https://github.com/helm/helm
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: golang-packaging
BuildRequires: bash-completion
BuildRequires: fish
BuildRequires: zsh
%if 0%{?suse_version} == 1600
# go is not available on Framework one for x86
ExcludeArch: %ix86
%endif
BuildRequires: golang(API) = 1.24
%{go_provides}
BuildRequires: golang(API) = 1.25
%description
Helm is a tool for managing Kubernetes charts. Charts are packages of
@@ -43,6 +42,7 @@ pre-configured Kubernetes resources.
Summary: Bash Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
BuildArch: noarch
@@ -53,6 +53,7 @@ Bash command line completion support for %{name}.
Summary: Zsh Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Requires: zsh
Supplements: (%{name} and zsh)
BuildArch: noarch
@@ -63,6 +64,7 @@ Zsh command line completion support for %{name}.
Summary: Fish Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Requires: fish
Supplements: (%{name} and fish)
BuildArch: noarch
@@ -73,42 +75,60 @@ Fish command line completion support for %{name}.
%autosetup -p1 -a1
%build
%goprep %{goipath}
export K8S_MINOR=$(grep k8s.io/client-go go.mod | cut -d. -f3)
export GO111MODULE=on
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"
%ifnarch %ix86 s390x riscv64
export CGO_ENABLED=0
%endif
%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
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
%install
export GO111MODULE=on
export CGO_ENABLED=0
%goinstall
install -D -m 0755 bin/%{name} %{buildroot}/%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions
%{buildroot}/%{_bindir}/helm completion bash > %{buildroot}%{_datarootdir}/bash-completion/completions/%{name}
mkdir -p %{buildroot}%{_datarootdir}/zsh_completion.d
%{buildroot}/%{_bindir}/helm completion zsh > %{buildroot}%{_datarootdir}/zsh_completion.d/_%{name}
mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions
%{buildroot}/%{_bindir}/helm completion zsh > %{buildroot}%{_datarootdir}/zsh/site-functions/_%{name}
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d
%{buildroot}/%{_bindir}/helm completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
%check
# 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 ./...
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/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 ./...
%files
%doc README.md
@@ -116,16 +136,12 @@ GO111MODULE=on go test -p 2 ./...
%{_bindir}/helm
%files bash-completion
%dir %{_datarootdir}/bash-completion/completions/
%{_datarootdir}/bash-completion/completions/%{name}
%files zsh-completion
%dir %{_datarootdir}/zsh_completion.d/
%{_datarootdir}/zsh_completion.d/_%{name}
%{_datarootdir}/zsh/site-functions/_%{name}
%files fish-completion
%dir %{_datarootdir}/fish
%dir %{_datarootdir}/fish/vendor_completions.d
%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
%changelog

BIN
vendor.tar.gz LFS

Binary file not shown.