Morten Linderud
065dfb0e5b
[Makefile] Support reproducible builds
...
Circleci is used to build the release artifacts and embeds build paths
into the binary release. To reproduce the release binaries we then need
to also build in the same path as a result.
$ strings linux-amd64/helm | grep "home/circleci" | wc -l
174
Go 1.13 introduces `-trimpath` which strips the build path from all
compiled binaries. This should enable people to reproduce the
distributed helm binaries.
https://reproducible-builds.org/docs/source-date-epoch/
https://golang.org/doc/go1.13#go-command
Signed-off-by: Morten Linderud <morten@linderud.pw>
5 years ago
Mateusz Szostok
e14db65ad2
fix(Makefile): remove orphaned targets for documentation
...
Signed-off-by: Mateusz Szostok <szostok.mateusz@gmail.com>
5 years ago
Cagatay Gurturk
5fa57aa905
Add v3 to missing line
...
Signed-off-by: Cagatay Gurturk <info@cagataygurturk.com>
5 years ago
Cagatay Gurturk
7066ac2f58
Fixed Makefile with the new package name
...
Signed-off-by: Cagatay Gurturk <info@cagataygurturk.com>
5 years ago
Matt Farina
ea0f59d69f
Merge pull request #6576 from mattfarina/fix-go-modules
...
Fixing the ability to build v3
5 years ago
Matt Farina
cc51efda47
Fixing the ability to build v3
...
Signed-off-by: Matt Farina <matt@mattfarina.com>
5 years ago
Matt Farina
a1a8825cdc
Removing some duplicate go module stuff not needed
...
Signed-off-by: Matt Farina <matt@mattfarina.com>
5 years ago
Matt Farina
e3137d106a
Migrating dependency management to go modules
...
Signed-off-by: Matt Farina <matt@mattfarina.com>
5 years ago
Marc Khouzam
6cc1bd2ef4
Poposal: Hook to run acceptance tests ( #6256 )
...
* Allow to run acceptance tests from main Helm repo
To run the acceptance tests, one can now do:
make test-acceptance
Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
* Allow to run completion tests from main Helm repo
To run the completion tests, one can now do:
make test-completion
Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
* Use the word 'clone' instead
Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
* Use test-acceptance-completion naming
Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
5 years ago
Matthew Fisher
c728611e5a
feat(cli): support XDG base directory specification
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Taylor Thomas
29c343278e
feat(action): Refactors unit tests with better fakes
...
This also adds unit tests for the Atomic and Wait functionality
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
5 years ago
Adam Reese
e061bc1855
ref(circleci): refactor ci setup
...
* fix go dep cache
* zip binary comes bundled already with image
* remove branch name from cache key
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
895e9192d4
feat(*): use vanity import helm.sh/helm
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
21d3a40f3b
feat(tests): replace gometalinter with golangci-lint
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
f791421fab
feat(Makefile): add formatting target
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
d94707db86
ref(*): remove helmVersion chart constraint
...
* Remove helmVersion constraint from charts
* Guard compile time set variables behind `internal/`
* Allow configuration of UserAgent for HTTPGetter
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
f79521be7d
feat(Makefile): automate go vendoring and building
...
The `build` target will compile helm only when source code is modified
and run `dep ensure` if needed.
Only ensure golang tools are installed when needed for a specific target.
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Matt Butcher
7061716406
ref: require name by default on 'helm install' ( #4858 )
...
This is described in the official Helm 3 proposal: https://github.com/helm/community/blob/master/helm-v3/000-helm-v3.md
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
6 years ago
Adam Reese
a02a598c33
ref(tests): simplify cmd test setup/teardown
...
Ensure proper cleanup of `HELM_HOME` and `HELM_DEBUG`
7 years ago
Adam Reese
36e034551f
ref(*): rebuild build version object
7 years ago
Adam Reese
840c489c6b
feat(dep): replace glide with dep
7 years ago
Adam Reese
68c0b6a24a
ref(proto): remove unused protobufs
7 years ago
Adam Reese
12a8baef64
ref(Makefile): cleanup and consolidate
7 years ago
Adam Reese
082a7bbb05
remove proto make targets
7 years ago
Adam Reese
b62dfb9898
remove tiller build infra
7 years ago
Adam Reese
e909258fe8
remove rudder build infra
7 years ago
Manuel Rüger
87cd8ce79a
Remove Mercurial build-time dependency
...
Since the only dep (bitbucket.org/ww/goautoneg) that required it is gone in
845e990143 (diff-f16a80eae23d5b298c2652448ec420cfL4)
7 years ago
Matthew Fisher
fbe04e73d3
Merge pull request #3413 from oilbeater/master
...
Reduce binary size
7 years ago
Adam Reese
31e6446b8e
ref(glide): remove need for scripts/setup-apimachinery.sh ( #3446 )
7 years ago
Oilbeater
d1b3523b2b
Update Makefile
...
Remove symbol table and debug info from go binary to reduce image size
7 years ago
Helgi Þormar Þorbjörnsson
06cc1ea389
Make build-cross TARGETS configurable ( #3185 )
...
Lets us build a subset of the targets while still using build-cross
To build for multiple linux archs:
TARGETS="linux/amd64 linux/386" make clean build-cross dist APP=helm VERSION=v25.12.2
7 years ago
Adam Reese
46598952ea
fix(ci): lower number of parallel builds
...
circleci chokes with too many processes
7 years ago
Sushil Kumar
61c3a44dc3
Fixed issues reported by test-style
8 years ago
Maciej Kwiek
d9f72deb0d
Add comments to exported Rudder methods
...
Added make target
Lowered docker image sizes
Updated ruder.pb.go
8 years ago
Maciej Kwiek
cce50f8052
Add experimental dockerfiles
...
Added dockerfiles for rudder service and tiller run with
--experimental-release flag
8 years ago
Reinhard Nägele
8c437e518b
Update Makefile to require Mercurial
8 years ago
Adam Reese
986d21b8ac
Merge pull request #2245 from cblecker/verify-docs
...
docs(*): Add ci script to confirm docs are up to date with commits
8 years ago
Christoph Blecker
797800a289
Add docs-verify script
8 years ago
Adam Reese
85c41ef11a
ref(*): kubernetes v1.6
...
Rebase on kubernetes v1.6
8 years ago
Christoph Blecker
7b1a383950
Add script to clean homedir out of docs
8 years ago
Manjunath A Kumatagi
f59121f5c7
Add linux/ppc64le to build-cross target
8 years ago
rmehra
0378b4a1af
Add linux/arm64 to cross-compile targets.
8 years ago
Adam Reese
385ba906eb
fix(Makefile): fix glob overriding packaged tar
8 years ago
Nicolas Lamirault
77b105af91
Add default binary
8 years ago
Nicolas Lamirault
b71a93e391
Split packages
...
Split helm and tiller packages.
8 years ago
Nicolas Lamirault
f80f468d9a
Update Makefile
8 years ago
Nicolas Lamirault
a6f82d884c
Add ARM target for binaries
...
```
$ make build-cross dist VERSION=v2.2.0
CGO_ENABLED=0 gox -output="_dist/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='darwin/amd64 linux/amd64 linux/386 windows/amd64 linux/arm' -tags '' -ldflags ' -X k8s.io/helm/pkg/version
.Version=v2.1.0 -X k8s.io/helm/pkg/version.GitCommit=b3d812b3462e5ac8192f656c7098b1b54f29ffa3 -X k8s.io/helm/pkg/version.GitTreeState=dirty -extldflags "-static"' k8s.io/helm/cm
d/helm
Number of parallel builds: 3
--> darwin/amd64: k8s.io/helm/cmd/helm
--> linux/amd64: k8s.io/helm/cmd/helm
--> windows/amd64: k8s.io/helm/cmd/helm
--> linux/386: k8s.io/helm/cmd/helm
--> linux/arm: k8s.io/helm/cmd/helm
```
```
$ ls -a _dist/
. darwin-amd64 helm-v2.2.0-linux-386.tar.gz helm-v2.2.0-linux-arm.tar.gz linux-386 linux-arm
.. helm-v2.2.0-darwin-amd64.tar.gz helm-v2.2.0-linux-amd64.tar.gz helm-v2.2.0-windows-amd64.tar.gz linux-amd64 windows-amd64
```
8 years ago
Miyurz
f630d0e954
Had a word with @technosophos and it seems we no longer need hg check as all other repos can be cloned via git
8 years ago
Miyurz
2f9c3c2e5d
If not mercurial, clone with git. dont exit if no mercurial is there
8 years ago
Matt Butcher
6b25f85dee
fix(Makefile): build windows amd64 binaries
...
This adds back support for Windows now that it has been tested by the
community.
Closes #1596
8 years ago
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.
8 years ago
Adam Reese
273e0d3995
fix(*): statically link cross builds
...
closes : #1362
8 years ago
Adam Reese
a0d3e43b53
fix(Makefile): allow overriding the version for canary builds
8 years ago
Adam Reese
9b91996c8a
fix(Makefile): explicitly set bash shell in Makefile
...
fixes #1302
8 years ago
Adam Reese
729f9b816f
chore(ci): limit cross build targets
...
Limit cross builds to linux/amd64 linux/386 darwin/amd64
8 years ago
Adam Reese
eda3910361
feat(ci): upload checksum with binary releases
...
closes #1214
8 years ago
Matt Butcher
4f09b05613
feat(helm): implement new index format
...
This implements a new index file format for repository indices. It also
implements a new format for requirements.yaml.
Breaking change: This will break all previous versions of Helm, and will
impact helm search, repo, serve, and fetch functions.
Closes #1197
8 years ago
Matt Butcher
e4c217768e
ref(*): update to Kubernetes 1.4
...
This starts with #1211 and does the other updates necessary for
bumping us to Kubernetes 1.4.
8 years ago
Adam Reese
5f1bd67ed0
feat(ci): build canary helm binaries using CI
8 years ago
Adam Reese
147df3b85a
fix(Makefile): cleanup _dist files
8 years ago
Adam Reese
8d44ed0d54
feat(release): remove tiller from cross compile
8 years ago
Adam Reese
868b82c8f7
Merge pull request #1049 from adamreese/feat/dist
...
feat(Makefile): add target for building releases
8 years ago
Naveen Srinivasan
5f015322e2
Fix the clean task when directory not present
...
The Makefile has clean task that was failing when the ./rootfs/tiller
was not present
8 years ago
Adam Reese
dd7cebc39f
feat(Makefile): add target for building releases
...
* Add README and License files to archive
* Compress archives for smaller download size
https://github.com/kubernetes/helm/issues/999
8 years ago
Adam Reese
e7738c5c56
feat(ci): add windows build
8 years ago
Adam Reese
fcaa426491
chore(*): add missing license blocks to source code
8 years ago
Adam Reese
f44f6780fc
feat(ci): validate license block in source files
8 years ago
Adam Reese
8429242084
feat(build): add make target for cross builds
8 years ago
Aaron Crickenberger
e5bc9ef176
Avoid use of -f for docker tag
...
As of docker 1.10, `-f` has been removed as an option for `docker tag`
https://docs.docker.com/engine/deprecated/
8 years ago
Matt Butcher
5c93c2a0cd
fix(proto): keep a local protoc Go plugin
...
This works around issues where $GOPATH/bin has a different version of
the protobuf Go plugin than the one Kubernetes uses.
8 years ago
Adam Reese
818c878700
chore(*): use k8s.io as the import path
9 years ago
Matt Butcher
0eb9825c9a
fix(make): add protoc target to top Makefile
...
Closes #670
9 years ago
Adam Reese
7a434da506
fix(Makefile): fix broken cross binary build
9 years ago
Matt Butcher
aa7f5e113d
fix(Makefile): add bootstrap warnings
...
See #647
9 years ago
Adam Reese
e22853b845
fix(Makefile): remove rogue line in Makefile
9 years ago
Adam Reese
90aefb936b
ref(Makefile): use GOBIN for go builds
9 years ago
Michelle Noorali
ef4da35607
Merge pull request #629 from michelleN/tiller-img
...
chore(*): update tiller image
9 years ago
Michelle Noorali
25aef96c3c
chore(*): update tiller image
9 years ago
Adam Reese
b3bc9a9134
feat(Makefile): go build optimizations
9 years ago
Adam Reese
f1ebfec446
fix(Makefile): build before testing
9 years ago
Adam Reese
2d9563b483
Merge pull request #19 from adamreese/fix/makefile-madness
...
fix(Makefile): disable verbose on build
9 years ago
Adam Reese
af88c5863f
fix(Makefile): disable verbose on build
9 years ago
Michelle Noorali
274067a2b4
ref(Makefile): add default registry + "/"s
9 years ago
Adam Reese
efdf5cd4ec
feat(Makefile): add docker build tooling
...
Still needs a dockerfile
/cc @michelleN
9 years ago
Adam Reese
6092f01fac
feat(Makefile): add Makefile
9 years ago