Commit graph

120 commits

Author SHA1 Message Date
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