Commit graph

171 commits

Author SHA1 Message Date
vitt-bagal
6d49f562bc Added s390x support
Signed-off-by: vitthalb@us.ibm.com <vitthalb@us.ibm.com>
2020-05-21 20:44:00 +05:30
Niels de Vos
bf12ae3934
scripts: do not use optional 'which' command in get-helm installation (#8048)
When installing Helm, the following warning gets printed on the console:

    Downloading https://get.helm.sh/helm-v2.16.6-linux-amd64.tar.gz
    Preparing to install helm and tiller into /usr/local/bin
    helm installed into /usr/local/bin/helm
    tiller installed into /usr/local/bin/tiller
    main: line 178: which: command not found
    Run 'helm init' to configure helm.

The 'which' command is optional, and not always installed on all
environments (like a Fedora container). Instead, use 'command -v' to
detect if the executable is in the $PATH.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-05-12 17:08:53 -06:00
Matt Farina
8e1c34ef04
Updating get stripts to skip pre-releases
A recent change to the get scripts causes them to pickup
pre-releases in addition to stable releases. This update causes
only stable releases to be fetched by the get scripts.

Fixed #7941

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-04-17 10:42:52 -04:00
Scott Rigby
4276acdf4b
Make get script eaiser for helm versions to live side by side (helm3 etc) (#7752)
* Make get script eaiser for helm versions to live side by side (helm3 etc)

Signed-off-by: Scott Rigby <scott@r6by.com>

* Change PROJECT_NAME to BINARY_NAME for purpose clarity

Signed-off-by: Scott Rigby <scott@r6by.com>
2020-04-15 16:10:16 -06:00
Bridget Kromhout
4feed2de1b
Correcting links for release notes
Signed-off-by: Bridget Kromhout <bridget@kromhout.org>
2020-03-12 14:15:05 -05:00
Paul Czarkowski
239a5e0930 add license headers to release-notes.sh script
Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
2020-02-19 14:27:03 -06:00
Paul Czarkowski
f1416a6979 Adds script to help craft release notes
Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
2020-02-19 14:20:50 -06:00
Matthew Fisher
0087d83807
fix(scripts): scrape for the latest v2/v3 release from the releases page
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-02-13 16:20:15 -08:00
Marc Khouzam
cc33e394c7 fix(tests): mapfile is not available on MacOS
The mapfile command is not available on a standard MacOS install.
To faciliate doing `make test` which runs validate-license.sh,
let's use an array instead of mapfile.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2019-12-03 13:15:19 -05:00
Matthew Fisher
c9da1eaae7
fix(get-helm-3): remove tiller checks, fixup version check
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-11-12 20:08:46 -08:00
Matthew Fisher
3e77ca22c7
fix(get): hard code DESIRED_VERSION when unset
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-11-12 19:56:34 -08:00
Matthew Fisher
06a5eb2272
fix(get): install Helm v2.16.1
This is a temporary fix. This prevents the get script from installing Helm 3 as soon as it's released, potentially causing disruption to users that were expecting a Helm 2 release.

A `get-helm-3` script is also supplied, which is identical to the previous `get` script. That way, Helm 3 users also have an equivalent way to install Helm 3.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-11-12 18:19:37 -08:00
Matthew Fisher
630134a904
fix(coverage): use go list instead of godir
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-10-22 13:55:14 -07:00
Matthew Fisher
b048f8914b
fix(coverage): cd to root dir to avoid adding godir to go modules
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-10-22 13:52:30 -07:00
Matthew Fisher
af498be38b
fix(scripts): update get script
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-10-21 10:54:17 -07:00
John Howard
7a22cb88d9 Drop dependency on k8s.io/kubernetes (#6609)
* Drop dependency on k8s.io/kubernetes

https://github.com/helm/helm/issues/6606

Depending on k8s.io/kubernetes is not recommended by Kubernetes, and
forces dependencies of Helm to also depend on them. We are only using
this dependency in one relatively isolated occurance, which can be
easily copied over rather than depending on the entire Kubernetes.

Copying this code is not very desirable, so if we don't want to have
this duplication we can at least use this PR as a PoC and see if we can
get Kubernetes to publish the controller package as a separate Go module
(see
https://github.com/kubernetes/kubernetes/issues/79384#issuecomment-538740756)

Signed-off-by: John Howard <howardjohn@google.com>

* Move to internal

Signed-off-by: John Howard <howardjohn@google.com>

* Exclude third_party from validate-license.sh

Signed-off-by: John Howard <howardjohn@google.com>
2019-10-11 14:13:25 +01:00
Matthew Fisher
c728611e5a
feat(cli): support XDG base directory specification
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-02 13:15:03 -07:00
Matt Farina
670968fb19
Removing the stable repository
The stable repository provides a quick onboarding with a set of
community curated charts. Two problems with the community stable
repository has lead to its need to be removed.

1. The URL is hard coded to a Google Cloud bucket under Google's
   control. This was setup when Helm was part of Kubernetes and
   Kubernetes was a Google project. The bucket cannot be
   transfered to another non-Google controlled project. And,
   the bucket is not accessible in some parts of the world
   (e.g., China).
2. The number of charts in the stable repository has grown
   generally unmaintainable. The repository maintainers cannot
   manage the number of PRs coming it cauing delays in response
   or no response and PRs are automatically closed. This is
   a poor experience.

The alternatice is the Helm Hub that provides a central point of
search for many Helm repositories. Different people and organizations
can maintain their own charts. A central server is not needed as
Helm is setup to be distributed.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-07-26 12:27:18 -04:00
Matthew Fisher
4f6d002d6c
chore(docs): move docs to helm-www
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-07-22 12:15:35 -07:00
Matthew Fisher
eb1ba03e24
update links to get.helm.sh
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-05-14 08:23:03 -07:00
Matthew Fisher
b1ae1acc8b
Merge pull request #5283 from bacongobbler/purge-by-default
ref(uninstall): purge release history by default
2019-04-30 06:55:27 -07:00
Martin Hickey
bd7c970ff9 Fix files copyright
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-04-01 16:47:24 +01:00
Martin Hickey
030fef5765 Fix docs targets
Update to the `docs` and `verify-docs` targets for v3.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-04-01 11:40:44 +01:00
Martin Hickey
46e6539e63 Remove docs target and generated docs folder
It would seem that generated docs were removed in `5048ed8`

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-04-01 10:07:42 +01:00
Martin Hickey
d59835fb67 Fix make docs target
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-04-01 10:07:42 +01:00
Matthew Fisher
0805a87140
ref(uninstall): purge release history by default
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-25 09:30:58 -07:00
Adam Reese
21d3a40f3b
feat(tests): replace gometalinter with golangci-lint
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-08 11:45:42 -08:00
roc
79f88dfc5e ref(url) update helm's github url (#4962)
https://github.com/kubernetes/helm -> https://github.com/helm/helm
https://github.com/kubernetes/charts -> https://github.com/helm/charts

Signed-off-by: Roc Chan <roc@imroc.io>
2018-11-28 10:08:38 -08:00
Adam Reese
4f26b658d8
change copyright to "Copyright The Helm Authors" 2018-08-24 12:03:55 -07:00
Matthew Fisher
195d21d5d7
ref(cmd): rename helm delete to helm uninstall
To match the convention of `helm install`, `helm uninstall` is the inverse.

Other tangential changes in this PR:

- StatusDeleting has been changed to StatusUninstalling
- StatusDeleted has been changed to StatusUninstalled
- `helm list --deleted` has been changed to `helm list --uninstalled`
- `helm list --deleting` has been changed to `helm list --uninstalling`
- `helm.DeleteOption` and all delete options have been renamed to `helm.UninstallOption`

I have not made any changes to the "helm.sh/hook-delete-policy", "pre-delete" and "post-delete" hook annotations because

1. it's a major breaking change to existing helm charts, which we've commited to NOT break in Helm 3
2. there is no "helm.sh/hook-install-policy" to pair with "helm.sh/hook-uninstall-policy", so delete still makes sense here

`helm delete` and `helm del` have been added as aliases to `helm uninstall`, so `helm delete` and `helm del` still works as is.
2018-06-14 15:46:00 -07:00
Adam Reese
840c489c6b
feat(dep): replace glide with dep 2018-04-23 12:47:02 -07:00
Adam Reese
9aa398a7c5
chore(hapi): add missing license headers 2018-04-20 00:59:46 -07:00
ReSearchITEng
09e0ab1809
closes #3795
closes #3795
2018-03-30 09:59:06 +03:00
Ferenc-
908addd6fc
Fix HTML parsing when setting TAG with wget
Now the parsing part is the same as in the curl scenario
2018-03-22 14:51:45 +01:00
Arturo Contreras
a615f80c92 Adding --set-string flag to force string values. 2018-03-20 13:35:42 -06:00
Michal Zerola
08a92b23d1 Fixed referencing the wrong env variable if SHA sum doesn't match. 2018-03-15 09:05:13 +01:00
Matthew Fisher
0935384bd5
remove "This Repository" link from releases page 2018-03-13 09:52:49 -07:00
Adam Reese
31e6446b8e
ref(glide): remove need for scripts/setup-apimachinery.sh (#3446) 2018-02-02 14:59:59 -08:00
Justin Scott
70192cda1a
Merge pull request #3305 from bacongobbler/add-amd-arch-to-get
add amd, ppc64le, and windows OS/architectures
2018-01-09 10:00:54 -08:00
Adam Reese
a31e3b8fe1
ref(*): kubernetes v1.9 support (#3234) 2018-01-05 12:30:26 -08:00
Matthew Fisher
5cb0eb5e3b add amd, ppc64le, and windows OS/architectures 2017-12-29 14:42:31 -08:00
Matthew Fisher
55ab4b8664
Merge pull request #2986 from goostleek/bug/installation-script-fix
Installation shell script fix
2017-12-28 15:22:41 -08:00
Tim H
0645433048
Increase script portability
Instead of presuming that bash is installed at /bin/bash, use `$PATH`.  Official [bash docker container](https://hub.docker.com/_/bash/) installs bash at `/usr/local/bin` and recommends the use of `env`
2017-11-20 12:15:20 +01:00
Marcin Kłopotek
9a42d71898 Review fixes applied 2017-10-03 10:54:41 +02:00
Marcin Kłopotek
b9e542666a Installation script was not compatible with Alpine Linux 2017-10-03 10:41:34 +02:00
Marcin Kłopotek
c34ec82c36 HELM_TMP_ROOT directory is now uniquely generated to avoid potential clashes with old installation instances or other processes using the same /tmp subdirectory 2017-10-02 09:12:58 +02:00
Marcin Kłopotek
42bc36d240 Fixes shell installation script #2977 2017-09-29 16:39:42 +02:00
Matthew Fisher
87dd64c2fd Merge pull request #2899 from hchenxa/hchenxa
fix unbound variable issue when get version
2017-09-12 20:13:12 -07:00
Hui Chen
895e8d086f fix unbound variable issue when get version 2017-09-12 09:34:53 +08:00
Adam Reese
8e13a5bd1f
fix(ci): move deploy instructions to build job
https://circleci.com/docs/2.0/configuration-reference/#deploy
2017-09-08 12:23:32 -07:00
Justin Scott
46ce97c1b0 feat(helm): use openssl sha1 command
Currently the bash script that installs Helm is hard-coded to use
openssl sha command but some distros like Debian 9 only have sha1.
Since the popular current distros have sha1 we can switch to that.

Closes(#2859)
2017-08-28 23:23:18 -07:00
Tim H
b914958b96 Fix curl error Failed writing body
Do not close the pipe early, output only the first version found.  wget command changed for consistency.
Fixes #2802
2017-08-14 13:54:43 +02:00
Adam Reese
845e990143
feat(*): use kubernetes 1.7 2017-07-07 09:13:57 -07:00
Tony Fahrion
8eace382f9 improve check if we are root already - in scripts/get
$EUID is readonly, so it should be save to test against it.

Thanks for the tip @thomastaylor312 !
2017-06-29 13:22:08 +02:00
Tony Fahrion
974c4b67c7 fix scripts/get runAsRoot CMD var building
Avoid using $* multiple times
2017-06-28 10:21:08 +02:00
Tony Fahrion
f43da7fcfb makes sudo an optional dependency in scripts/get
If the execution user is already the root user, this avoids requireing
sudo to be installed within the environment. Which might helo in CI
environments.
2017-06-28 09:41:23 +02:00
peay
a9fa9282e1 Add --force to upgrade and rollback (generated changes) 2017-05-26 17:07:13 -04:00
Matt Butcher
3c97db803f
ref(docs): remove unnecessary docs and clean up doc generator 2017-05-24 15:27:21 -06:00
Matt Butcher
28ec92355b
fix(helm): add --devel flag to allow dev releases again
2.4.0 stopped installing development versions by default. This allows
the user to re-enable that support by setting --devel.

Closes #2407
2017-05-17 12:26:58 -06:00
Sushil Kumar
ff42dadde4 Adds update option to plugin command (#2410)
* Adds update option to plugin command

Fixes issues/2385 - helm install silently updates the plugin, if it pre-existed

* Added tests for new methods for plugin update

* Updated docs

* Updated review comments :)

* Return error exit code when there is error
2017-05-16 11:07:15 -06:00
ReSearchITEng
f85118d1ec added possibility to set desired install version. See issue #2380 2017-05-03 09:36:09 +00:00
Sushil Kumar
d13b134ffb Implements --repo flag to commands fetch, install, inspect, upgrade 2017-05-02 10:46:16 -07:00
Michelle Noorali
3f22e407cd Merge pull request #2365 from michelleN/feat/2224-service-account-flag
feat(helm): add service account flag to helm init
2017-05-02 10:16:44 -04:00
Adam Reese
c7f0edd3d2 Merge pull request #2353 from SlickNik/nm_zsh_completions
Add support for zsh to helm completion
2017-05-01 15:33:06 -07:00
Michelle Noorali
64e9e47183 feat(helm): add service account flag to helm init
helps with half of #2224
2017-05-01 14:02:04 -04:00
Nikhil Manchanda
49e7aa854a Add support for zsh to helm completion
Updated the 'helm completion' command to take in the shell
as a parameter. Currently acceptable options are 'bash' and
'zsh'. Also fixed the completions to work with zsh in a manner
similar to what kubectl does.

Also updated the docs to reflect this change.

Closes #2201
2017-04-30 23:25:03 -07:00
Adam Reese
074d2eb711
chore(scripts): remove unsupported local-cluster script 2017-04-27 23:22:37 -07:00
Jorge Marin
18fc8a8539 Update comment in function 2017-04-25 08:26:22 +00:00
Jorge Marin
6adf7d59de Print escaped chars 2017-04-24 10:30:35 +00:00
Jorge Marin
e114807c45 Use '-SsL' for all 'curl' calls to get response using SSL, silently and following reedirections 2017-04-24 10:29:59 +00:00
Jorge Marin
037ff5b51c Replace call to Github HTTP API with normal Github URL 2017-04-24 10:29:01 +00:00
Matt Butcher
5af676cda1 Merge pull request #2287 from jascott1/2222/nethost_tiller
feat(tiller): add --net-host flag to 'helm init'
2017-04-19 13:59:25 -06:00
Shane Starcher
7150fc3d9e bug(helm) - install/upgrade/search semver constraint support 2017-04-18 18:10:48 -04:00
Justin Scott
85b7890bfd Add docs for new init flag 'net-host'. 2017-04-18 14:43:42 -07:00
Sushil Kumar
2e8d2c0178 Docs updated for new flags 2017-04-13 12:27:32 -07:00
Adam Reese
a92a36762c docs(*): generate latest docs 2017-04-12 13:00:30 -07:00
Adam Reese
6bcd19d519 fix(scripts): don't include plugins for generating docs 2017-04-12 12:59:30 -07:00
Adam Reese
986d21b8ac Merge pull request #2245 from cblecker/verify-docs
docs(*): Add ci script to confirm docs are up to date with commits
2017-04-12 12:31:17 -07:00
Christoph Blecker
190e5c82dd
Update docs 2017-04-12 12:24:40 -07:00
Christoph Blecker
797800a289
Add docs-verify script 2017-04-12 12:22:17 -07:00
Adam Reese
85c41ef11a ref(*): kubernetes v1.6
Rebase on kubernetes v1.6
2017-04-11 15:42:23 -07:00
Adam Reese
41f7277615 fix(ci): disable gosimple
gosimple seems to be eating all memory in CircleCI.  Testing disabling
the check to see if CI builds.
2017-03-22 13:08:34 -07:00
Leszek Charkiewicz
0d399baec2 Add checking installed helm version before downloading latest release
This change prevents downloading the same version as already installed.
2017-03-19 23:11:28 +01:00
Christoph Blecker
ea63663455
Regenerate docs 2017-03-11 16:06:56 -08:00
Christoph Blecker
7b1a383950
Add script to clean homedir out of docs 2017-03-11 13:09:27 -08:00
Ladicle
84e014026c fix(local-cluster): fix missing variable option
`unbound variable` error occurs when docker-machine is not used.
2017-02-17 19:52:11 +09:00
Christoph Blecker
5f981ad96f
Regenerate docs 2017-01-15 12:24:37 -08:00
Adam Reese
052cfe1640 fix(ci): do not push canary image on release 2016-12-01 10:37:40 -08:00
Matt Butcher
aca9f86df6
feat(helm): add command to generate documentation
This adds a hidden 'helm doc' command that generates documentation out
of the Helm help text.

Currently it can create:

- man pages for HELM(1)
- Markdown documentation
- bash autocompletions

Those are the three built-ins for Cobra.

The command is hidden so that it doesn't show up to the regular user,
since this is really a specialized task. It has the advantage of making
it trivially easy to install man pages and bash completion at installation time.
2016-11-29 15:08:24 -07:00
Adam Reese
2c0af5fffd Merge pull request #1550 from mattfarina/feat/gometalinter-versioned
feat(gometalinter): Move to versioned releases
2016-11-15 10:53:10 -08:00
Matt Butcher
48c1ba5355 Merge pull request #1545 from mattfarina/feat/1543-charts-domain-change
feat(charts): Move bucket to domain from path
2016-11-15 11:06:10 -07:00
Wayne Brantley
1f17788d8e use openssl instead of shasum
shasum is not on many platforms (like centos), use openssl instead.
2016-11-15 11:00:25 -05:00
Matt Farina
d2fa03969c
feat(gometalinter): Move to versioned releases
gometalinter has moved to versioned releases. The latest of the v1
major versioned releases can be retrieved through pkg.in. This
change moves gometalinter use to the latest v1 release.
2016-11-14 19:13:51 -05:00
Matt Farina
da73150ce9
fix(tls): download helm and charts over https
Downloading of charts and helm itself happened over http. This
change moves to use https as that is available with valid certs.
2016-11-14 19:06:53 -05:00
Matt Farina
7a79661f0e
feat(charts): Move bucket to domain from path
A bucket name in the path can be migrated to a custom k8s domain
name. This is in preperation for that.
2016-11-14 13:55:33 -05:00
Adam Reese
cf965e2426 fix(scripts): increase deadline for linter 2016-11-11 10:14:40 -08:00
Adam Reese
7f4fd4efbb ref(ci): cleanup ci deploy 2016-11-03 17:29:06 -07:00
Matt Butcher
8934eb5dc6
feat(scripts): add 'get' script to download and install
This adds 'scripts/get`, which is a bash script for fetching and
installing the Helm client. It has the following features:

- It uses the GitHub API to discover the latest release
- It downloads the SHA256 checksum and verifies the binary using it
- It does basic tests on the installation
2016-10-24 17:35:35 -06:00
Adam Reese
e11fb39f6d fix(ci): ensure go packages are compiled before testing
Attempt for build speed record
2016-10-19 08:30:29 -07:00
Adam Reese
72dd427d07 ref(scripts): use gometalinter for linters 2016-10-10 14:20:01 -07:00