Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/oci dependencies #1

Merged
merged 224 commits into from
May 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
e9bf446
fix(install): use ca file for install (#7140)
Dec 5, 2019
e3976ab
Repair failing unit tests - failure caused by os.Stat return values f…
pmacik Dec 9, 2019
2f705f9
Add corresponding unit test to the function in parser.go
Jan 9, 2020
b9a8e98
Add hpa boilerplate
naseemkullah Jan 11, 2020
10b44a1
Add unit test for Reverse() in pkg/releaseutil.go
Jan 16, 2020
d395430
Use /usr/bin/env for bash
poelzi Jan 17, 2020
9a2ff78
fix(helm): sort hooks by kind for equal weight
dastrobu Jan 16, 2020
d03db32
fixed dependencies processing in case of helm install or upgrade for …
fhopfensperger Feb 3, 2020
438eaec
fix(helm): Don't wait for service to be ready when external IP are set
Feb 5, 2020
671ceb5
ref(kind_sorter): use an in-place sort for sortManifestsByKind, reduc…
Jan 30, 2020
077503f
fix(helm): Reworded logs for clarity
Feb 7, 2020
9daca76
fixed missing bullet
technosophos Feb 7, 2020
2a73967
Fix 'helm template' to also print invalid yaml
unguiculus Feb 7, 2020
af0007c
fix(helm): improved logs
Feb 11, 2020
b55224e
fix(kube): use non global Scheme to convert
hiddeco Jan 14, 2020
e41184a
fix(kube): generate k8s native scheme only once
hiddeco Feb 11, 2020
a35e124
Place rendering invalid YAML under --debug flag
unguiculus Feb 12, 2020
afdfb75
Pass kube user token via cli, introduce HELM_KUBETOKEN envvar
waveywaves Dec 14, 2019
89fdbdf
Making fetch-dist get the sha256sum files
mattfarina Feb 13, 2020
2a74212
ref(go.mod): k8s api 0.17.3
chenrui333 Feb 13, 2020
54ca879
IsReachable() needs to give detailed error message.
ylvmw Feb 14, 2020
03b0463
pkg/gates: add unit test for String
Feb 17, 2020
e085bfc
cmd/helm/search_repo: print info to stderr
Feb 17, 2020
0c9e99d
Merge pull request #7365 from fenggw-fnst/mybranch
hickeyma Feb 17, 2020
e9f40ed
fix golint failure in pkg/action
Feb 18, 2020
d0422e6
Merge pull request #7622 from sshukun/fix-golint-failure
Feb 18, 2020
2cd3d12
Merge pull request #7530 from plenus-cloud/fix-7513
thomastaylor312 Feb 18, 2020
512e1b8
Merge pull request #7401 from hiddeco/non-global-scheme-convert
thomastaylor312 Feb 18, 2020
eda60a5
pkg/helmpath: fix unit test for Windows
Feb 19, 2020
598dc50
Merge pull request #7629 from sshukun/fix-unit-test
adamreese Feb 19, 2020
f1416a6
Adds script to help craft release notes
paulczar Feb 19, 2020
239a5e0
add license headers to release-notes.sh script
paulczar Feb 19, 2020
4bd3b8f
Pass the apiserver address/port via cli, introduce HELM_KUBEAPISERVER…
waveywaves Dec 16, 2019
1ff7202
Fix output of list action when it is failed
Feb 20, 2020
478647f
Merge pull request #7643 from sshukun/fix-list-all-namespaces
hickeyma Feb 20, 2020
9ec11a7
Merge pull request #7582 from mattfarina/fix-fest-dist-issue
mattfarina Feb 20, 2020
f90d693
Merge pull request #7609 from q384566678/fix-printf
Feb 20, 2020
09f4945
Merge pull request #7608 from q384566678/add-gate-test
Feb 20, 2020
99304c8
Merge pull request #7554 from technosophos/fix/formatting-on-adopters
Feb 20, 2020
f7bcdf1
Merge pull request #7583 from chenrui333/k8s-api-0.17.3
Feb 20, 2020
694cf61
feat(install): introduce --create-namespace
Feb 20, 2020
64ce6e6
Merge pull request #7591 from ylvmw/master
Feb 20, 2020
2d191fc
Merge pull request #7427 from poelzi/master
Feb 20, 2020
d6fad6b
feat(comp): Move kube-context completion to Go
marckhouzam Feb 15, 2020
a29365b
Adopt resources into release with correct instance and managed-by labels
jlegrone Feb 21, 2020
271cb22
Alternative: annotation-only solution
jlegrone Feb 21, 2020
7654c18
feat(comp): Static completion for plugins
marckhouzam Nov 26, 2019
97e353b
feat(comp): Dynamic completion for plugins
marckhouzam Jan 22, 2020
7f3339c
feat(tests): Allow to provision memory driver
marckhouzam Jan 15, 2020
e92a258
fix(helm): add --skipCRDs flag to 'helm upgrade'
akash-gautam Feb 23, 2020
6b1eebd
pkg/storage/records: add unit test for Get
Feb 24, 2020
c96aff6
pkg/storage/records: add unit test for Index
Feb 24, 2020
f1f661d
pkg/storage/records: add unit test for Exists
Feb 24, 2020
b4f7164
Printing name of chart that do not have requested import value.
Feb 24, 2020
1ea17f1
Merge pull request #7663 from q384566678/add-record-test
hickeyma Feb 24, 2020
7fd3058
Merge pull request #7665 from TomasKohout/master
Feb 24, 2020
ec2e77c
Merge pull request #7648 from bacongobbler/fix-6794
Feb 24, 2020
c235470
fix(cmd/helm): upgrade go-shellwords
adamreese Feb 25, 2020
0e335c5
Merge pull request #7678 from adamreese/fix/shellwords
adamreese Feb 25, 2020
13e2dcf
Fix dep build to be compatiable with Helm 2 when requirements use rep…
Feb 21, 2020
f05ffdd
Fix golangci-lint errors.
pmacik Feb 26, 2020
4c55073
Merge pull request #7684 from pmacik/fix-lint
Feb 26, 2020
8f962a2
Return "unknown command" error for unknown subcommands
nauxliu Nov 21, 2019
d5a2963
Add test for unknown subcommand
nauxliu Nov 22, 2019
ebd4855
Update README.md
eyablokov Feb 27, 2020
09f2467
Merge pull request #7040 from nauxliu/unknown-subcommand-error
hickeyma Feb 27, 2020
53b6580
Merge pull request #7692 from eyablokov/patch-1
hickeyma Feb 27, 2020
1ab52fa
fix(helm): stdin values for helm upgrade --install
yinzara Feb 21, 2020
a3f92f6
Fixes verification output on pull command
mattfarina Feb 28, 2020
af35d61
Add verification output to the verify command
mattfarina Feb 28, 2020
8edf86a
fix(ADOPTERS): alphabetize org list (#7645)
Feb 28, 2020
95d7f36
add unit test for SecretDelete
Mar 2, 2020
ae508eb
add unit test for ConfigMapDelete
Mar 2, 2020
9744e9f
fix(helm): respect resource policy on ungrade
Mar 2, 2020
f5da6bd
add unit test for RecordsReplace
Mar 2, 2020
c45869c
fix(helm): polish goimport
Mar 2, 2020
69d9722
test(helm): fix client update error
Mar 2, 2020
9d79073
Merge pull request #7514 from fhopfensperger/fix-7497
hickeyma Mar 2, 2020
a992464
Save Chart.lock to helm package tar
Feb 25, 2020
13ffa52
Merge pull request #7706 from mattfarina/fix-7624
mattfarina Mar 2, 2020
2c10f96
Merge pull request #7556 from unguiculus/template-output
Mar 2, 2020
3dbc4dd
Merge pull request #7230 from waveywaves/update/token
Mar 2, 2020
14f6d1e
ref(environment): use string checking instead
Mar 2, 2020
faf5cfb
Merge pull request #7189 from pmacik/fix-os.Stat
Mar 2, 2020
e0d11be
Merge pull request #7707 from mattfarina/add-verify-out-to-command
mattfarina Mar 2, 2020
1940f50
Merge pull request #7721 from bacongobbler/fix-7230
Mar 3, 2020
6bed594
Merge pull request #7714 from donggangcj/respect-resource-policy-on-u…
Mar 3, 2020
ead3429
Merge pull request #7713 from q384566678/add-secrets-test
Mar 3, 2020
b1959a3
Merge pull request #7674 from sshukun/package-lock-file
Mar 3, 2020
dc26128
Add --insecure-skip-tls-verify for repositories (#7254)
xvzf Mar 3, 2020
16024dc
fix: add new static linter and fix issues it found (#7655)
technosophos Mar 4, 2020
b864fcd
Make the charts cache safe in presence of several Helm instances
misha-ridge Mar 2, 2020
eaebce6
Merge pull request #7651 from sshukun/fix-v1-dep
hickeyma Mar 5, 2020
3d288b9
Merge pull request #7661 from akash-gautam/fix/issue-7452
hickeyma Mar 5, 2020
5bb951d
Merge pull request #7636 from paulczar/make-release-notes
Mar 5, 2020
187526e
chore(go.mod): run `go mod tidy`
Mar 5, 2020
d829343
Use Create method if no resources need to be adopted
jlegrone Mar 6, 2020
ec1d1a3
Merge pull request #7739 from bacongobbler/go-mod-tidy
Mar 6, 2020
a6994f6
Port --devel flag from v2 to v3
hickeyma Mar 6, 2020
c8d8007
Fix stray modules
hickeyma Mar 6, 2020
d59493a
Add unit test
hickeyma Mar 9, 2020
51dd831
Solve the issue #7749 where proper formating was not being done if --…
Mar 9, 2020
7470337
Solve the issue #7749 where proper formating was not being done if --…
Mar 9, 2020
c354de8
Solve the issue #7749 where proper formating was not being done if --…
Mar 9, 2020
bf5c0ae
fix(install): correct append tls config.
Mar 10, 2020
66292e5
Merge pull request #7164 from jmcelwain/master
mattfarina Mar 10, 2020
28b085b
Fixing issue where archives created on windows have broken paths
mattfarina Mar 9, 2020
4113fc8
Solve the issue #7749 where proper formating was not being done if --…
Mar 10, 2020
8d1de39
Add more detail to error messages and support a non-force mode in met…
jlegrone Mar 11, 2020
9496a74
Add tests
jlegrone Mar 11, 2020
2dfb20f
Merge pull request #7751 from mattfarina/fix-7748
mattfarina Mar 12, 2020
4feed2d
Correcting links for release notes
bridgetkromhout Mar 12, 2020
22b7562
fix(cli): Make upgrade check if cluster reachable
marckhouzam Mar 12, 2020
e3cfae6
Merge pull request #7761 from bridgetkromhout/correct-release-notes-l…
mattfarina Mar 13, 2020
3cc5811
Merge pull request #7744 from hickeyma/port-devel-show
hickeyma Mar 13, 2020
06bc18c
Fix a bug in storage/driver/secrets.go Delete() (#7348)
tiendc Mar 13, 2020
2683094
Fix a bug in Delete() in storage/driver/cfgmaps.go (#7367)
tiendc Mar 13, 2020
9d20e44
Add unit test for lint/values.go
longkb Feb 27, 2020
93137ab
Merge pull request #7410 from tiendc/unit_test_releaseutil
hickeyma Mar 18, 2020
ca931b4
Merge pull request #7691 from longkb/add_ut_for_values
hickeyma Mar 18, 2020
9a0e7d8
Improve error message to check in unit test
hickeyma Mar 18, 2020
e0856a5
Merge pull request #7649 from DataDog/jlegrone/adopt-resources
Mar 18, 2020
a322199
Merge pull request #7779 from hickeyma/fix/test-check-msg
hickeyma Mar 23, 2020
cead0ef
helm create command's templates more consistent
consideRatio Mar 23, 2020
2234406
Merge pull request #7753 from anshulvermapatel/helm/7749/helm_list_sh…
mattfarina Mar 24, 2020
193850a
Merge pull request #7499 from bacongobbler/fix-7416
Mar 24, 2020
aef7b1d
Merge pull request #7720 from misha-ridge/atomic-charts-cache
hickeyma Mar 26, 2020
cd9c992
Snapcraft installation instructions added
idvoretskyi Mar 26, 2020
00201ff
pass subchart notes option to install client
jgleonard Mar 26, 2020
fd00ca2
Merge pull request #7827 from idvoretskyi/idvoretskyi-snap
hickeyma Mar 26, 2020
e2b70b2
add testing for upgrade --install with subchart notes
jgleonard Mar 26, 2020
a7e79ee
Delete unneeded chart output
jgleonard Mar 26, 2020
97c68ad
Add fromYamlArray and fromJsonArray template helpers (#7712)
rkt2spc Mar 28, 2020
3706aa7
fix: update unit test for go 1.14 error string change (#7835)
technosophos Mar 30, 2020
783be10
Merge pull request #7381 from naseemkullah/create-hpa
hickeyma Mar 31, 2020
cfdd466
update test chart to helm3 format
jgleonard Mar 31, 2020
f927275
remove unneeded values files from testchart
jgleonard Mar 31, 2020
06b43f6
Merge pull request #7830 from jgleonard/render-subchart-notes-on-upgr…
hickeyma Mar 31, 2020
9ab40a2
Add unit test for pkg/chart/chart.go
hs0210 Mar 25, 2020
c20d06d
Merge pull request #7814 from hs0210/work
hickeyma Apr 1, 2020
6414791
Improve --show-only flag (#7816)
avorima Apr 2, 2020
c12a9ae
fix(helm): Data race in kube/client Delete func. (#7820)
lnattrass Apr 2, 2020
f3350de
Avoid downloading same chart multiple times
Antiarchitect Apr 4, 2020
c4fc8b7
feat: add pod annotations
Apr 5, 2020
f7972d0
feat: allow image tag override
Apr 5, 2020
d80e6ae
Merge pull request #7878 from naseemkullah/image-tag-override
Apr 7, 2020
b735abe
Merge pull request #7879 from naseemkullah/pod-annotations
Apr 7, 2020
08c612e
Adding notes on semver to create Chart.yaml
mattfarina Apr 8, 2020
7ab76a2
Merge pull request #7892 from mattfarina/more-version-docs
mattfarina Apr 9, 2020
bd13b80
fix: fixed bug in Dependency.List() (#7852)
technosophos Apr 9, 2020
f89d985
Implement support for multiple args for repo remove (#7791)
lindhe Apr 10, 2020
0d9727d
Adding template docs to the version command
mattfarina Apr 10, 2020
c2da4fd
ref(*): kubernetes v1.18 (#7831)
adamreese Apr 13, 2020
65f28c1
chore(comp): Remove unnecessary code
marckhouzam Apr 13, 2020
469837b
fixed capitalization in a few help messages. (#7898)
technosophos Apr 13, 2020
b944561
fix(storage): preserve last deployed revision (#7806)
yurrriq Apr 13, 2020
a806326
feat(cmd/helm): Update Cobra to 1.0.0 release
marckhouzam Apr 11, 2020
0c87ca5
updated help text for install --atomic, which was completely inaccura…
technosophos Apr 14, 2020
8c55de3
add unit test for IsRoot
Apr 2, 2020
a3d3fa3
add unit test for ChartPath
Apr 2, 2020
b439d34
add unit test for ChartFullPath
Apr 2, 2020
79cf8bc
Merge pull request #7853 from q384566678/add-chart-test
Apr 14, 2020
20c7909
add unit test for metadata Validate
Apr 2, 2020
0e10757
Merge pull request #7854 from q384566678/add-metadata-test
Apr 14, 2020
59447f8
Merge pull request #7900 from mattfarina/moar-version-template
mattfarina Apr 14, 2020
ad3ba46
docs: Update inline docs on action/upgrade.go (#7834)
technosophos Apr 15, 2020
9e1f381
Add unit test for Secrets/ConfigMaps (#7765)
Apr 15, 2020
e1d046b
fix(tests): fix broken unit tests in storage (#7928)
adamreese Apr 15, 2020
bdf6f48
fix(pkg/kube): continue deleting objects when one fails
adamreese Apr 15, 2020
2291bfd
Merge pull request #7871 from Antiarchitect/fix-charts-extra-downloads
hickeyma Apr 15, 2020
1c9b54a
Merge pull request #7795 from consideRatio/template-indent
hickeyma Apr 15, 2020
0b1cba8
Add an improved user error message for removed k8s apis
hickeyma Apr 14, 2020
a3fa01f
Merge pull request #7640 from yinzara/bugfix/issue-7002
mattfarina Apr 15, 2020
549193d
test: forward-port regression test from Helm 2 (#7927)
technosophos Apr 15, 2020
48e6ea0
add softonic to adopters (#7918)
rccrdpccl Apr 15, 2020
0767539
Merge pull request #7925 from hickeyma/fix/add-user-error
hickeyma Apr 15, 2020
4276acd
Make get script eaiser for helm versions to live side by side (helm3 …
scottrigby Apr 15, 2020
fa5eb64
fix: rebuild chart after dependency update on install (#7897)
technosophos Apr 15, 2020
df9cf87
add unit test for function FindPlugins
zouy414 Apr 16, 2020
f860e08
Merge pull request #7934 from Hellcatlk/UnitTest
hickeyma Apr 16, 2020
3b8521c
Updating sprig and semver to newer versions
mattfarina Apr 16, 2020
a34f311
Fix nested null value overrides (#7743)
uzxmx Apr 16, 2020
51ac945
Merge pull request #7936 from mattfarina/fix-7533
mattfarina Apr 16, 2020
7b89e66
fix: Fixed a regression that was introduced with changed nil handling…
technosophos Apr 16, 2020
21d2aa7
Migrate SQL storage driver to Helm 3 (#7635)
emaincourt Apr 16, 2020
853ba2d
fix: removed inaccurate comment (#7937)
technosophos Apr 16, 2020
8e1c34e
Updating get stripts to skip pre-releases
mattfarina Apr 17, 2020
5200584
Merge pull request #7942 from mattfarina/fix-7941
mattfarina Apr 17, 2020
1911870
fix(helm): allow a previously failed release to be upgraded (#7653)
yinzara Apr 17, 2020
b83d3d4
fs_test: use os.Getuid() instead user.Current() to determine if a tes…
pedjak Apr 20, 2020
b21b009
Merge pull request #7147 from pmacik/fix-unknown-userid
mattfarina Apr 20, 2020
d0726e0
Parse reference templates in predictable order (#7702)
asenci Apr 21, 2020
bb47286
fix linting error with lookup function (#7969)
technosophos Apr 22, 2020
1cdd0a2
fix(pkg/plugin): copy plugins directly to the data directory (#7962)
adamreese Apr 22, 2020
6aefbdc
Helm upgrades with --reuse-values and nil user values -- with tests (…
DP19 Apr 22, 2020
27ebfa8
fix(*): remove bom in utf files when loading chart files (#6081)
IppX Apr 23, 2020
9ced016
fix(cmd/env): make helm env command respect cli flags (#7978)
adamreese Apr 23, 2020
4a0dfbe
fix(pkg/cli): ensure correct configuration from kubeconfig file
adamreese Apr 23, 2020
78d57d3
Modify Circle config to use Go 1.14 (#7980)
jdolitsky Apr 23, 2020
54e5088
Fixing docs from version to appVersion (#7975)
mattfarina Apr 23, 2020
c422e51
test: add test for bom test data integrity
IppX Apr 24, 2020
0acd2aa
Merge pull request #7982 from adamreese/fix/7539-kube-client-config
adamreese Apr 24, 2020
984d2ac
fix: write index.yaml file atomically (#7954)
rabadin Apr 24, 2020
d5d96ed
Merge pull request #7929 from adamreese/fix/upgrade-results
adamreese Apr 24, 2020
6bc4a94
Add unit test for pkg/chart/chart.go
hs0210 Apr 27, 2020
1d72122
Merge pull request #8001 from hs0210/work
hickeyma Apr 27, 2020
f7d1bfd
Adding PR template from dev-v2 branch
bridgetkromhout Apr 27, 2020
0a318be
Updating CONTRIBUTING to match current practice
bridgetkromhout Apr 27, 2020
3778207
Merge pull request #8007 from bridgetkromhout/update-contributing
Apr 27, 2020
e29ed7a
Merge pull request #8006 from bridgetkromhout/adding-pr-template
Apr 27, 2020
cd50d0c
Fix : Prints empty list in json/yaml is no repositories are present (…
anshulvermapatel Apr 27, 2020
2139e82
Merge pull request #7972 from IppX/bug/6081-bom-in-resource-file
mattfarina Apr 28, 2020
6fc9353
feat: lint the names of templated resources (#8011)
technosophos Apr 28, 2020
8d90968
Add support for using OCI references as the dependency repository
phroggyy Feb 17, 2020
76a78cf
fix accidental bug in chart saving and fix linting
phroggyy Feb 18, 2020
b30c474
add tests and URL fallback handling
phroggyy Feb 22, 2020
83b516b
extract oci to its own constant
phroggyy Mar 8, 2020
2eab9b1
refactor to a GetWithDetails method
phroggyy Apr 4, 2020
2780340
fix GetWithDetails tests
phroggyy Apr 21, 2020
1dfd3fc
fix tests
phroggyy Apr 21, 2020
027e47b
rename ChartContent to Content and use naked return
phroggyy Apr 29, 2020
dfffcd3
move URL and filename handling into the downloader
phroggyy May 5, 2020
8d623be
fix imports
phroggyy May 5, 2020
17c7892
use old filepath.join behavior to avoid calling it twice
phroggyy May 5, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
build:
working_directory: ~/helm.sh/helm
docker:
- image: circleci/golang:1.13
- image: circleci/golang:1.14

environment:
GOCACHE: "/tmp/go/cache"
Expand Down
12 changes: 12 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- Thanks for sending a pull request! Here are some tips for you:
1. Make sure to read the Contributing Guide before submitting your PR: https://github.com/helm/helm/blob/master/CONTRIBUTING.md
2. If this PR closes another issue, add 'closes #<issue number>' somewhere in the PR summary. GitHub will automatically close that issue when this PR gets merged. Alternatively, adding 'refs #<issue number>' will not close the issue, but help provide the reviewer more context.-->

**What this PR does / why we need it**:

**Special notes for your reviewer**:

**If applicable**:
- [ ] this PR contains documentation
- [ ] this PR contains unit tests
- [ ] this PR has been tested for backwards compatibility
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ linters:
- structcheck
- unused
- varcheck
- staticcheck

linters-settings:
gofmt:
Expand Down
12 changes: 8 additions & 4 deletions ADOPTERS.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
To add your organization to this list, simply add your organization's name,
optionally with a link. The list is in alphabetical order.
To add your organization to this list, open a pull request that adds your
organization's name, optionally with a link. The list is in alphabetical order.

(Remember to use `git commit --signoff` to comply with the DCO)

# Organizations Using Helm

- [Blood Orange](https://bloodorange.io)
- [Microsoft](https://microsoft.com)
- [IBM](https://www.ibm.com)
- [Microsoft](https://microsoft.com)
- [Qovery](https://www.qovery.com/)
- [Samsung SDS](https://www.samsungsds.com/)
[Ville de Montreal](https://montreal.ca)
- [Softonic](https://hello.softonic.com/)
- [Ville de Montreal](https://montreal.ca)

_This file is part of the CNCF official documentation for projects._
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ contributing to Helm. All issue types follow the same general lifecycle. Differe

## How to Contribute a Patch

1. If you haven't already done so, sign a Contributor License Agreement (see details above).
2. Fork the desired repo, develop and test your code changes.
3. Submit a pull request.
1. Identify or create the related issue.
2. Fork the desired repo; develop and test your code changes.
3. Submit a pull request, making sure to sign your work and link the related issue.

Coding conventions and standards are explained in the [official developer docs](https://helm.sh/docs/developers/).

Expand Down
19 changes: 17 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BINDIR := $(CURDIR)/bin
DIST_DIRS := find * -type d -exec
TARGETS := darwin/amd64 linux/amd64 linux/386 linux/arm linux/arm64 linux/ppc64le linux/s390x windows/amd64
TARGET_OBJS ?= darwin-amd64.tar.gz darwin-amd64.tar.gz.sha256 linux-amd64.tar.gz linux-amd64.tar.gz.sha256 linux-386.tar.gz linux-386.tar.gz.sha256 linux-arm.tar.gz linux-arm.tar.gz.sha256 linux-arm64.tar.gz linux-arm64.tar.gz.sha256 linux-ppc64le.tar.gz linux-ppc64le.tar.gz.sha256 linux-s390x.tar.gz linux-s390x.tar.gz.sha256 windows-amd64.zip windows-amd64.zip.sha256
TARGET_OBJS ?= darwin-amd64.tar.gz darwin-amd64.tar.gz.sha256 darwin-amd64.tar.gz.sha256sum linux-amd64.tar.gz linux-amd64.tar.gz.sha256 linux-amd64.tar.gz.sha256sum linux-386.tar.gz linux-386.tar.gz.sha256 linux-386.tar.gz.sha256sum linux-arm.tar.gz linux-arm.tar.gz.sha256 linux-arm.tar.gz.sha256sum linux-arm64.tar.gz linux-arm64.tar.gz.sha256 linux-arm64.tar.gz.sha256sum linux-ppc64le.tar.gz linux-ppc64le.tar.gz.sha256 linux-ppc64le.tar.gz.sha256sum linux-s390x.tar.gz linux-s390x.tar.gz.sha256 linux-s390x.tar.gz.sha256sum windows-amd64.zip windows-amd64.zip.sha256 windows-amd64.zip.sha256sum
BINNAME ?= helm

GOPATH = $(shell go env GOPATH)
Expand All @@ -24,7 +24,7 @@ GOFLAGS :=
SRC := $(shell find . -type f -name '*.go' -print)

# Required for globs to work correctly
SHELL = /bin/bash
SHELL = /usr/bin/env bash

GIT_COMMIT = $(shell git rev-parse HEAD)
GIT_SHA = $(shell git rev-parse --short HEAD)
Expand Down Expand Up @@ -181,6 +181,21 @@ checksum:
clean:
@rm -rf $(BINDIR) ./_dist

.PHONY: release-notes
release-notes:
@if [ ! -d "./_dist" ]; then \
echo "please run 'make fetch-release' first" && \
exit 1; \
fi
@if [ -z "${PREVIOUS_RELEASE}" ]; then \
echo "please set PREVIOUS_RELEASE environment variable" \
&& exit 1; \
fi

@./scripts/release-notes.sh ${PREVIOUS_RELEASE} ${VERSION}



.PHONY: info
info:
@echo "Version: ${VERSION}"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ If you want to use a package manager:
- [Chocolatey](https://chocolatey.org/) users can use `choco install kubernetes-helm`.
- [Scoop](https://scoop.sh/) users can use `scoop install helm`.
- [GoFish](https://gofi.sh/) users can use `gofish install helm`.
- [Snapcraft](https://snapcraft.io/) users can use `snap install helm --classic`

To rapidly get Helm up and running, start with the [Quick Start Guide](https://docs.helm.sh/using_helm/#quickstart-guide).

Expand Down
2 changes: 1 addition & 1 deletion cmd/helm/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func newCompletionCmd(out io.Writer) *cobra.Command {

cmd := &cobra.Command{
Use: "completion SHELL",
Short: "Generate autocompletions script for the specified shell (bash or zsh)",
Short: "generate autocompletions script for the specified shell (bash or zsh)",
Long: completionDesc,
RunE: func(cmd *cobra.Command, args []string) error {
return runCompletion(out, cmd, args)
Expand Down
2 changes: 1 addition & 1 deletion cmd/helm/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func newCreateCmd(out io.Writer) *cobra.Command {
},
}

cmd.Flags().StringVarP(&o.starter, "starter", "p", "", "The name or absolute path to Helm starter scaffold")
cmd.Flags().StringVarP(&o.starter, "starter", "p", "", "the name or absolute path to Helm starter scaffold")
return cmd
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/helm/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func TestCreateStarterCmd(t *testing.T) {
t.Errorf("Wrong API version: %q", c.Metadata.APIVersion)
}

expectedNumberOfTemplates := 8
expectedNumberOfTemplates := 9
if l := len(c.Templates); l != expectedNumberOfTemplates {
t.Errorf("Expected %d templates, got %d", expectedNumberOfTemplates, l)
}
Expand Down Expand Up @@ -174,7 +174,7 @@ func TestCreateStarterAbsoluteCmd(t *testing.T) {
t.Errorf("Wrong API version: %q", c.Metadata.APIVersion)
}

expectedNumberOfTemplates := 8
expectedNumberOfTemplates := 9
if l := len(c.Templates); l != expectedNumberOfTemplates {
t.Errorf("Expected %d templates, got %d", expectedNumberOfTemplates, l)
}
Expand Down
16 changes: 13 additions & 3 deletions cmd/helm/dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ the dependency charts stored locally. The path should start with a prefix of
If the dependency chart is retrieved locally, it is not required to have the
repository added to helm by "helm add repo". Version matching is also supported
for this case.

Starting from 3.3.0, if OCI Registry support has been enabled via the HELM_EXPERIMENTAL_OCI
flag, repository can be defined as an OCI image reference. The path should start with a
prefix of "oci://". For example,

# Chart.yaml
dependencies:
- name: nginx
version: "1.2.3"
repository: "oci://nginx:latest"
`

const dependencyListDesc = `
Expand All @@ -82,7 +92,7 @@ the contents of a chart.
This will produce an error if the chart cannot be loaded.
`

func newDependencyCmd(out io.Writer) *cobra.Command {
func newDependencyCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "dependency update|build|list",
Aliases: []string{"dep", "dependencies"},
Expand All @@ -92,8 +102,8 @@ func newDependencyCmd(out io.Writer) *cobra.Command {
}

cmd.AddCommand(newDependencyListCmd(out))
cmd.AddCommand(newDependencyUpdateCmd(out))
cmd.AddCommand(newDependencyBuildCmd(out))
cmd.AddCommand(newDependencyUpdateCmd(cfg, out))
cmd.AddCommand(newDependencyBuildCmd(cfg, out))

return cmd
}
Expand Down
9 changes: 7 additions & 2 deletions cmd/helm/dependency_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"k8s.io/client-go/util/homedir"

"helm.sh/helm/v3/cmd/helm/require"
"helm.sh/helm/v3/internal/experimental/registry"
"helm.sh/helm/v3/pkg/action"
"helm.sh/helm/v3/pkg/downloader"
"helm.sh/helm/v3/pkg/getter"
Expand All @@ -40,7 +41,7 @@ If no lock file is found, 'helm dependency build' will mirror the behavior
of 'helm dependency update'.
`

func newDependencyBuildCmd(out io.Writer) *cobra.Command {
func newDependencyBuildCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
client := action.NewDependency()

cmd := &cobra.Command{
Expand All @@ -53,11 +54,15 @@ func newDependencyBuildCmd(out io.Writer) *cobra.Command {
if len(args) > 0 {
chartpath = filepath.Clean(args[0])
}
getters := getter.All(settings)
if FeatureGateOCI.IsEnabled() {
getters = append(getters, registry.NewRegistryGetterProvider(cfg.RegistryClient))
}
man := &downloader.Manager{
Out: out,
ChartPath: chartpath,
Keyring: client.Keyring,
Getters: getter.All(settings),
Getters: getters,
RepositoryConfig: settings.RepositoryConfig,
RepositoryCache: settings.RepositoryCache,
Debug: settings.Debug,
Expand Down
9 changes: 7 additions & 2 deletions cmd/helm/dependency_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/spf13/cobra"

"helm.sh/helm/v3/cmd/helm/require"
"helm.sh/helm/v3/internal/experimental/registry"
"helm.sh/helm/v3/pkg/action"
"helm.sh/helm/v3/pkg/downloader"
"helm.sh/helm/v3/pkg/getter"
Expand All @@ -43,7 +44,7 @@ in the Chart.yaml file, but (b) at the wrong version.
`

// newDependencyUpdateCmd creates a new dependency update command.
func newDependencyUpdateCmd(out io.Writer) *cobra.Command {
func newDependencyUpdateCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
client := action.NewDependency()

cmd := &cobra.Command{
Expand All @@ -57,12 +58,16 @@ func newDependencyUpdateCmd(out io.Writer) *cobra.Command {
if len(args) > 0 {
chartpath = filepath.Clean(args[0])
}
getters := getter.All(settings)
if FeatureGateOCI.IsEnabled() {
getters = append(getters, registry.NewRegistryGetterProvider(cfg.RegistryClient))
}
man := &downloader.Manager{
Out: out,
ChartPath: chartpath,
Keyring: client.Keyring,
SkipUpdate: client.SkipRefresh,
Getters: getter.All(settings),
Getters: getters,
RepositoryConfig: settings.RepositoryConfig,
RepositoryCache: settings.RepositoryCache,
Debug: settings.Debug,
Expand Down
48 changes: 15 additions & 33 deletions cmd/helm/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,53 +21,35 @@ import (
"io"
"sort"

"helm.sh/helm/v3/pkg/cli"

"github.com/spf13/cobra"

"helm.sh/helm/v3/cmd/helm/require"
)

var (
envHelp = `
var envHelp = `
Env prints out all the environment information in use by Helm.
`
)

func newEnvCmd(out io.Writer) *cobra.Command {
o := &envOptions{}
o.settings = cli.New()

cmd := &cobra.Command{
Use: "env",
Short: "Helm client environment information",
Short: "helm client environment information",
Long: envHelp,
Args: require.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
return o.run(out)
Run: func(cmd *cobra.Command, args []string) {
envVars := settings.EnvVars()

// Sort the variables by alphabetical order.
// This allows for a constant output across calls to 'helm env'.
var keys []string
for k := range envVars {
keys = append(keys, k)
}
sort.Strings(keys)
for _, k := range keys {
fmt.Fprintf(out, "%s=\"%s\"\n", k, envVars[k])
}
},
}

return cmd
}

type envOptions struct {
settings *cli.EnvSettings
}

func (o *envOptions) run(out io.Writer) error {
envVars := o.settings.EnvVars()

// Sort the variables by alphabetical order.
// This allows for a constant output across calls to 'helm env'.
var keys []string
for k := range envVars {
keys = append(keys, k)
}
sort.Strings(keys)

for _, k := range keys {
fmt.Printf("%s=\"%s\"\n", k, envVars[k])
}
return nil
}
Loading