Commit Graph

2566 Commits

Author SHA1 Message Date
Sean Mills
2f03d01b7d Remove excessive logging
Resolves helm unittest issue helm-unittest/helm-unittest#237

Signed-off-by: Sean Mills <sean.m.mills@gmail.com>
(cherry picked from commit ce87ece23e)
2023-12-13 15:58:42 -05:00
genofire
2e6357665a chore(create): indent to spaces
Signed-off-by: genofire <geno+dev@fireorbit.de>
(cherry picked from commit 919bffe2db)
2023-12-13 15:57:58 -05:00
Marcin Chojnacki
12826e839c Fixing release labelling in rollback
1. Fixed propagating labels to rollback release

Signed-off-by: Marcin Chojnacki <marcin.chojnacki@nokia.com>
(cherry picked from commit 8814bfb490)
2023-11-08 06:56:13 -06:00
Dmitry Chepurovskiy
666b199dbe Drop filterSystemLabels usage from Query method
Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net>
(cherry picked from commit 250f0bd46e)
2023-11-08 06:55:38 -06:00
Dmitry Chepurovskiy
7e0084a394 Apply review suggestions
Co-authored-by: French Ben <FrenchBen@users.noreply.github.com>
Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net>
(cherry picked from commit 0ec47f8ec9)
2023-11-08 06:55:25 -06:00
Dmitry Chepurovskiy
10018ff34b Allow using label selectors for system labels for sql backend.
Fixes #12435

Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net>
(cherry picked from commit e6d9b99255)
2023-11-08 06:55:06 -06:00
Dmitry Chepurovskiy
3b4cacf717 Allow using label selectors for system labels for secrets and configmap
backends.

Fixes #12435

Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net>
(cherry picked from commit e219c756e0)
2023-11-08 06:54:54 -06:00
Matt Farina
e785e6c50c Revert "fix(main): fix basic auth for helm pull or push"
This reverts commit 4a27baaffc.

Note, PR #11129 was layered in along with this change so the revert
preserves this API addition.

Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 24e2864c64)
2023-11-08 06:53:53 -06:00
Matt Farina
268dcedba6 Revert "fix(registry): address anonymous pull issue"
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 992dc58556)
2023-11-08 06:53:28 -06:00
Matt Farina
3547a4b5bf Fixing precedence issue with the import of values.
The ordering should be:
1. User specified values (e.g CLI)
2. Parent chart values
3. Imported values
4. Sub-chart values

This enables parnet charts to import large set of values from a
child and then override select values.

This change is needed for backwards compatibility.

Fixes #12460

Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 25371e2f0d)
2023-10-12 09:24:31 -04:00
Lars Zimmermann
bae7b3293c FIX Default ServiceAccount yaml
As described in issue #12432 (https://github.com/helm/helm/issues/12432) the default serviceaccount yaml will be created wrong. This commit will fix this.

Signed-off-by: Lars Zimmermann <info@zimmermann-lars.de>
(cherry picked from commit 828763e0d8)
2023-10-12 09:23:11 -04:00
Hidde Beydals
06e4fb10a6 fix(registry): unswallow error
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
(cherry picked from commit da3c666a82)
2023-10-12 09:22:21 -04:00
b4nks
0e7ec78e56 remove useless print during prepareUpgrade
Signed-off-by: b4nks <b4nks@protonmail.com>
(cherry picked from commit f004d42847)
2023-10-12 09:21:38 -04:00
Hidde Beydals
0ac78941ab fix(registry): address anonymous pull issue
The assumption that either a username and/or password OR an error is
returned appears to be wrong, and results in an error later on which
looks something like the following:

```
failed to authorize: failed to fetch anonymous token: unexpected status
from GET request to https://auth.docker.io/token?scope=repository%3AXXX%2FYYY%3Apull&service=registry.docker.io:
401 Unauthorized
```

To mitigate this, confirm we actually have one of the values before
setting the `Authorization` header.

Co-authored-by: Joe Julian <me@joejulian.name>
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
(cherry picked from commit fe4c01f624)
2023-10-12 09:20:58 -04:00
abrarcv170
52a029dcde Increased release information key name max length.
Helm release names are limited to 53 characters. By default, Release information is stored in Kubernetes as secrets, and the secret's name structure follows the pattern "sh.helm.release.v1.<release name up to 53 characters>.v<release revision>." However, in the case of using an SQL backend, this release information key is stored in the release_v1 table, and the table constraint currently limits the key name length to 67 characters. This limitation may not be suitable for release names that are within Helm's 53-character limit and need to accommodate the additional "sh.helm.release.v1." prefix and the release revision suffix.

Signed-off-by: abrarcv170 <78675575+abrarcv170@users.noreply.github.com>
(cherry picked from commit 4199be82b5)
2023-10-12 09:16:35 -04:00
Matt Farina
825e86f6a7 bump version to v3.13.0
Signed-off-by: Matt Farina <matt.farina@suse.com>
2023-09-18 16:00:57 -04:00
Matt Farina
dbef83eac3 Merge pull request #10913 from sureshdsk/pluginbug
fix: plugin does not load when helm base dir contains space
2023-09-18 15:20:00 -04:00
Matt Farina
30254deff4 Merge pull request #12088 from mslapek/fix/11971-run-with-ctx
Fix leaking goroutines in Install
2023-09-18 15:04:16 -04:00
Michał Słapek
169561a1b3 Fix leaking goroutines in Install
Signed-off-by: Michał Słapek <28485371+mslapek@users.noreply.github.com>
2023-09-18 20:13:47 +01:00
Matt Farina
70cbaa0a73 Merge pull request #11372 from vovtz/#11369-fix-custom-repo-cache-for-unmanaged-dependency-updates
#11369 Fix custom repo index cache directory for unmanaged dependency updates
2023-09-18 12:21:48 -04:00
Matt Farina
ef02cafdd0 Merge pull request #12274 from mih-kopylov/get-metadata
Restore `helm get metadata` command
2023-09-14 10:20:57 -04:00
Matt Farina
5a1475ee36 Merge pull request #11294 from Juneezee/test/t.TempDir
test: replace `ensure.TempDir` with `t.TempDir`
2023-09-14 09:55:51 -04:00
Matt Farina
4feafb528b Merge pull request #12019 from GOodCoffeeLover/feat/rw-psql
sql driver with rw-roles
2023-09-14 09:32:39 -04:00
Joe Julian
e7bb860d9a Merge pull request #12245 from hiddeco/json-index
Add support for creating repository indexes in JSON format
2023-09-11 09:46:26 -07:00
Joe Julian
edc93cb988 Merge pull request #11649 from tim-chaplin-dd/tim.chaplin/fix-selector-labels-2
Use common labels instead of selectorLabels for pod labels
2023-08-29 16:50:03 -07:00
Joe Julian
eb4edc96c5 Merge pull request #10965 from mattfarina/factory-comment
Adding details on the Factory interface
2023-08-28 12:13:56 -07:00
Maxim Trofimov
4944acb341 fix conflict
Signed-off-by: Maxim Trofimov <qwerty65k@mail.ru>
2023-08-26 20:11:08 +03:00
Maxim Trofimov
6138e101aa add big tests
Signed-off-by: Maxim Trofimov <qwerty65k@mail.ru>
2023-08-26 20:09:28 +03:00
Maxim Trofimov
199784f711 fix conflict
Signed-off-by: Maxim Trofimov <qwerty65k@mail.ru>
2023-08-26 20:09:06 +03:00
Maxim Trofimov
b786cb40f0 fix
Signed-off-by: Maxim Trofimov <qwerty65k@mail.ru>
2023-08-26 20:05:50 +03:00
Maxim Trofimov
df5904d88a add check if all migrations already applied
Signed-off-by: Maxim Trofimov <qwerty65k@mail.ru>
2023-08-26 20:05:50 +03:00
Joe Julian
1d2221f9d6 Merge pull request #12290 from Ithrael/fix/helm-rollback-err-tips
fix(rollback): helm rollback err tips
2023-08-25 09:15:12 -07:00
Tim Chaplin
479be0c36b Use labels instead of selectorLabels for pod labels
Signed-off-by: Tim Chaplin <tim.chaplin@datadoghq.com>
2023-08-24 09:43:08 -04:00
Joe Julian
b6c679eb97 Merge pull request #12321 from LuBingtan/dev
fix(helm): fix GetPodLogs, the hooks should be sorted before get the logs of each hook
2023-08-23 17:18:54 -07:00
Joe Julian
4ff7d90872 Merge remote-tracking branch 'upstream/main' into add-labels-to-install-upgrade 2023-08-23 10:42:16 -07:00
Bingtan Lu
4e5e68d55c fix(helm): fix GetPodLogs, the hooks should be sorted before get the logs of each hook
Signed-off-by: lubingtan <lubingtan@126.com>
2023-08-22 16:57:57 +08:00
ithrael
db9460cc87 fix: helm rollback err tips
Signed-off-by: ithrael <wh01096045@gmail.com>
2023-08-20 01:01:02 +08:00
Joe Julian
f9e03f196d Merge pull request #12278 from heijian123/main
Fix helm may identify achieve of the application/x-gzip as application/vnd.ms-fontobject
2023-08-18 22:50:28 -07:00
Joe Julian
a749b66310 Merge pull request #12203 from 0xff-dev/main
chore: HTTPGetter add default timeout
2023-08-17 08:41:07 -07:00
Joe Julian
d9e0688640 Merge remote-tracking branch 'upstream/main' into fix-10566 2023-08-11 07:35:32 -07:00
Joe Julian
b3c35c0aea Merge pull request #11129 from antgamdia/10623-allow-setting-oci-resolver-2
Allow setting a resolver in the OCI registry client
2023-08-11 07:20:51 -07:00
0xff-dev
2011a3191c chore: HTTPGetter add default timeout
Signed-off-by: 0xff-dev <stevenshuang521@gmail.com>

Co-authored-by: bjwswang <bjwswang@gmail.com>
Co-authored-by: Abirdcfly <fp544037857@gmail.com>
2023-08-11 12:16:38 +08:00
Joe Julian
1a465d603d Merge pull request #10564 from suzaku/ignore-not-found
Closes #3352, add support for --ignore-not-found just like kubectl delete
2023-08-10 17:45:59 -07:00
Joe Julian
a680f72f7e Merge pull request #11926 from AdamKorcz/fix1
pkg/action: fix nil-dereference
2023-08-10 17:37:49 -07:00
Joe Julian
0be8ac35ab Merge pull request #11927 from AdamKorcz/fix2
pkg/chartutil: fix nil-dereference
2023-08-10 17:37:27 -07:00
Joe Julian
e19c6cf199 Merge pull request #11644 from jcpunk/automountServiceAccountToken
Seed a default switch to control `automountServiceAccountToken`
2023-08-10 17:32:58 -07:00
Joe Julian
a0a83637dc Merge pull request #11780 from genofire/patch-1
fix(create): add podLabels to chart create
2023-08-10 17:31:30 -07:00
Joe Julian
0468fde6ce Merge pull request #11928 from AdamKorcz/fix3
pkg/engine: fix nil-dereference
2023-08-10 17:30:26 -07:00
Joe Julian
67096285c2 Merge remote-tracking branch 'upstream/main' into automountServiceAccountToken 2023-08-10 17:25:21 -07:00
Joe Julian
a10626cdf0 Merge remote-tracking branch 'upstream/main' into patch-1 2023-08-10 17:20:42 -07:00