Commit graph

29 commits

Author SHA1 Message Date
Terry Howe
469f4b457c
chore: remove helm version client option
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-09-16 20:00:24 -06:00
Terry Howe
3e1dd9a5dc
chore: remove pkg/time which is no longer needed
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-09-15 12:29:35 -06:00
Kamil Swiechowski
38d1a7376f fix: throw warning when chart version is not semverv2
Signed-off-by: Kamil Swiechowski <kamil.swiechowski@iprally.com>
2025-09-03 07:49:41 +02:00
George Jenkins
a8151ef4fe Cleanup plugin config
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-09-02 09:53:22 -07:00
George Jenkins
5926ec83dd Remove SetupPluginEnv
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-09-01 10:49:01 -07:00
George Jenkins
c35755a197 Remove legacy Command/Hooks from v1 Subprocess (#23)
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-08-31 22:24:31 -07:00
Scott Rigby
591d863df5
Move Postrenderer to a plugin type
Fix/add back postrenderer args unit tests

Signed-off-by: Scott Rigby <scott@r6by.com>
2025-08-31 19:03:34 -05:00
George Jenkins
80f659ce8b
Merge pull request #31178 from mattfarina/env-content-cache
Add content cache to helm env
2025-08-28 09:38:48 -07:00
George Jenkins
934f761e08
Merge pull request #30812 from gjenkins8/gjenkins/chartrelease_server_side_apply
HIP-0023: Helm support server-side apply
2025-08-26 18:52:15 -07:00
Matt Farina
533eddc57d Add content cache to helm env
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-08-24 17:57:34 -04:00
Scott Rigby
a7578fec74
Plugin types and plugin apiVersion v1
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Scott Rigby <scott@r6by.com>
2025-08-22 17:17:36 -04:00
Scott Rigby
be74ab72a0
[HIP-0026] Plugin runtime interface (#31145)
* Runtime abstraction to encapsulate subprocess code and enable future runtimes

Also fix race condition in TestPrepareCommandExtraArgs by replacing the shared variable modification with a local copy

Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Scott Rigby <scott@r6by.com>

* Remove commented out code

Co-authored-by: Joe Julian <me@joejulian.name>
Signed-off-by: Scott Rigby <scott@r6by.com>

* Check test failure string

Co-authored-by: Jesse Simpson <jesse.simpson36@gmail.com>
Signed-off-by: Scott Rigby <scott@r6by.com>

---------

Signed-off-by: Scott Rigby <scott@r6by.com>
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Co-authored-by: Joe Julian <me@joejulian.name>
Co-authored-by: Jesse Simpson <jesse.simpson36@gmail.com>
2025-08-22 16:12:49 -04:00
George Jenkins
e2dcbe28bf Helm client/SDK support server-side apply
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-08-18 10:05:07 -07:00
Joe Julian
08909e030b
Merge pull request #31019 from zachburg/templates_lint
Return early when linting if the `templates/` directory does not exist
2025-07-17 11:08:20 -07:00
Joe Julian
1f3e4ad12a
Merge pull request #31011 from yalosev/feature/add-labels-to-metadata
feature: add labels to metadata
2025-07-17 10:49:47 -07:00
Yuriy Losev
46b1a41631 Add release labels to the release Metadata
Signed-off-by: Yuriy Losev <yuriy.losev@flant.com>
2025-07-09 11:30:22 +04:00
Zach Burgess
35434947a3 Return a lint warning if templates/ does not exist.
Signed-off-by: Zach Burgess <zachburg@google.com>
2025-07-07 21:02:11 -07:00
Zach Burgess
6e30619d8f
Merge branch 'helm:main' into templates_lint 2025-07-07 09:34:04 -07:00
Zach Burgess
b703d5b4bb Return early when linting if the templates/ dir does not exist
The `vaildateTemplatesDir` function would still return `nil` if the directory doesn't exist,
so the early return that was documented never occurs.

Signed-off-by: Zach Burgess <zachburg@google.com>
2025-07-01 14:29:40 -07:00
Ashmit Bhardwaj
0389407cbc removed unnecessary binary file
Signed-off-by: Ashmit Bhardwaj <ashmit.bhardwaj@fmr.com>
2025-06-09 06:15:39 +00:00
Ashmit Bhardwaj
b305a501e8 added documentation and test cases for api-versions flag
Signed-off-by: Ashmit Bhardwaj <ashmit.bhardwaj@fmr.com>
2025-06-09 06:15:39 +00:00
Matt Farina
cf7613ba6b
Reverting fix "renders int as float"
This reverts #13533

This change has caused issues with numerous charts around things
unrelated to toml. This is because of functions like typeIs/typeOf
being used and acted upon.

The change caused a significant regression.

Note: This kind of change can be put into v3 charts, that are in
active development, without causing a regression.

Closes #30880

Signed-off-by: Matt Farina <matt@mattfarina.com>
2025-05-21 15:09:01 -04:00
Matt Farina
b5a4781099
Adding test for list command
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-05-15 15:23:13 -04:00
Justen Stall
73545f9a3e
one more test output
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
2025-04-21 16:08:21 -04:00
Justen Stall
4a6092bd6c
update another test output
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
2025-04-21 16:04:28 -04:00
Matt Farina
0dffc580b0
Simpligy the JSON Schema checking
A new library was introduced that provides JSON Schema checking for
newer versions of the schema. In Helm v4, there is no need to have
two packages doing the JSON schema validation. The message output
can have breaking changes.

This change moves everything to the newer library. It also uses a
wrapper error to enable a clean Helm only interface for the
public Go API validation functions. This would enable the replacement
of the Schema validation library, if needed, without breaking the
Go API contract.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-04-14 19:32:01 -04:00
Matt Farina
91ecb56355
Removing the alpine test chart
A .gitignore was previously setup to ignore this file. When pkg/cmd
was setup the .gitignore was not updated. The change adds the new
location to continue to ignore this file.

Note, the previous location is still included in the .gitignore
because developers will have a file there and we do not want that
accidently included in a commit.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-04-11 16:01:49 -04:00
Benoit Tigeot
6b5fa33633
debug log level is dynamic and set after Logger creation
So we should use dynamic handler to set the log level after. With this
patch we can clearly see the output. Before we were always stuck in log
level "info" and not seeing debug log level

```
bin/helm upgrade --install --debug --wait frontend \
--namespace test \
--set replicaCount=2 \
--set backend=http://backend-podinfo:9898/echo \
podinfo/podinfo
level=DEBUG msg="getting history for release" release=frontend
level=DEBUG msg="preparing upgrade" name=frontend
level=DEBUG msg="performing update" name=frontend
level=DEBUG msg="creating upgraded release" name=frontend
level=DEBUG msg="checking resources for changes" resources=2
level=DEBUG msg="no changes detected" kind=Service name=frontend-podinfo
level=DEBUG msg="patching resource" kind=Deployment name=frontend-podinfo namespace=test
level=DEBUG msg="waiting for resources" count=2 timeout=5m0s
level=DEBUG msg="waiting for resource" name=frontend-podinfo kind=Deployment expectedStatus=Current actualStatus=Unknown
level=DEBUG msg="updating status for upgraded release" name=frontend
Release "frontend" has been upgraded. Happy Helming!
NAME: frontend
LAST DEPLOYED: Thu Apr 10 09:56:25 2025
NAMESPACE: test
STATUS: deployed
REVISION: 6
DESCRIPTION: Upgrade complete
```

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-10 10:03:13 +02:00
Austin Abro
297f7b9acb
squash
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-24 15:11:54 +00:00