You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Helm: Difference between revisions
Jump to navigation
Jump to search
imported>Martyav (slightly more descriptive text) |
imported>JMeybohm (fix build command) |
||
Line 2: | Line 2: | ||
It is used to build [[Helm chart|Helm charts]], which are packages of Kubernetes resources that are used to deploy apps to a cluster. | It is used to build [[Helm chart|Helm charts]], which are packages of Kubernetes resources that are used to deploy apps to a cluster. | ||
== Packaging == | |||
We're providing separate packages for [https://gerrit.wikimedia.org/r/admin/projects/operations/debs/helm helm 2] and [https://gerrit.wikimedia.org/r/admin/projects/operations/debs/helm3 helm 3], both may be installed at the same time. | |||
=== Importing a new version === | |||
Both packages are build using [[Git-buildpackage]]. The imported upstream tarballs should include the complete vendor directory. | |||
* Check out the version (git tag) to import | |||
$ ./debian/repack ''vX.Y.Z'' | |||
* This drops you into a shell with the git tag checked out. Do necessary changes here and commit | |||
$ glide install --strip-vendor | |||
# or | |||
$ go mod vendor | |||
$ git add -f vendor && git commit -m "added vendor" | |||
* Exiting the shell will build a tarball to import | |||
$ gbp import-orig ''/path/to/tarball.tar.xz'' | |||
* Push changes (including the tag crated by gpb) to gerrit | |||
$ git push gerrit --all | |||
$ git push gerrit --tags | |||
=== Building a new version === | |||
* Check out the git repo on the build host | |||
* Build the package | |||
$ GIT_PBUILDER_AUTOCONF=no gbp buildpackage -sa -us -uc --git-builder=git-pbuilder --git-dist=buster | |||
For ''helm3'' you need to build with debian backports enabled (''GIT_PBUILDER_AUTOCONF=no BACKPORTS=yes gbp ...''). | |||
== Resources == | == Resources == |
Revision as of 14:17, 29 April 2020
Helm is the package manager for Kubernetes.
It is used to build Helm charts, which are packages of Kubernetes resources that are used to deploy apps to a cluster.
Packaging
We're providing separate packages for helm 2 and helm 3, both may be installed at the same time.
Importing a new version
Both packages are build using Git-buildpackage. The imported upstream tarballs should include the complete vendor directory.
- Check out the version (git tag) to import
$ ./debian/repack vX.Y.Z
- This drops you into a shell with the git tag checked out. Do necessary changes here and commit
$ glide install --strip-vendor # or $ go mod vendor $ git add -f vendor && git commit -m "added vendor"
- Exiting the shell will build a tarball to import
$ gbp import-orig /path/to/tarball.tar.xz
- Push changes (including the tag crated by gpb) to gerrit
$ git push gerrit --all $ git push gerrit --tags
Building a new version
- Check out the git repo on the build host
- Build the package
$ GIT_PBUILDER_AUTOCONF=no gbp buildpackage -sa -us -uc --git-builder=git-pbuilder --git-dist=buster
For helm3 you need to build with debian backports enabled (GIT_PBUILDER_AUTOCONF=no BACKPORTS=yes gbp ...).