17 Commits

Author SHA1 Message Date
Yue Tao
4a709349a9 meta_data.yaml: add sha256sum checksum
Test Plan:
Pass: Verify sha256sum checksum via "download -s"

Story: 2008846
Task: 44578

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Change-Id: I78d9dff2af0afb18c6db4e8d2d39ef79b5cf5864
2022-03-03 14:30:40 +08:00
Charles Short
dc35de7b88 debian: Correct helm-upload path
helm-upload was located on /usr/sbin while the puppet
module was expecting it to be located in /usr/local/sbin.
Put it in the place where the puppet module was expecting it.

Test Plan:
Pass Build helm with correct paths.
Pass Check to see if helm-upload is located in /usr/local/sbin.

Story: 2009101
Task: 43715

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I0dc22b4e5888cbfd26728588d0c09a5a47bd3305
2022-01-31 14:17:03 +00:00
Bin Qian
ee3657d36f relocate /www to /var/www
Relocate writable /www to /var/www

Story: 2009101
Task: 43538
Depends-on: https://review.opendev.org/c/starlingx/metal/+/810023
Change-Id: I8f31f7097419abb471fa156d52437c68da958484
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2021-12-13 09:46:23 -05:00
Yue Tao
44e0c64748 helm: update meta_data.yaml and remove dl_hook
"dl_files" replaces the ${HELM_SOURCE} in dl_hook
"src_path" replaces the ${SRC} in dl_hook

debrepack deploys the 2 fields to build directory,
so no longer need dl_hook

Test Plan:

Pass: successfully build test

Story: 2009101
Task: 43715

Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: Icae8471dc5480f8176946143361e65f626ca5fef
2021-12-08 08:57:19 +08:00
Tracey Bogue
f98b1a5b40 Add Debian packaging for helm and chartmuseum
These packages require the following files in a local mirror:
* chartmuseum-0.12.0.tar.gz
* chartmuseum-v0.12.0-amd64
* helm-v3.2.1-linux-amd64.tar.gz

Story: 2009101
Task: 43715

Signed-off-by: Tracey Bogue <tracey.bogue@windriver.com>
Change-Id: I85c854f1fb62efa993a030fe06105bb2c0751165
2021-11-02 06:48:57 -05:00
Jim Gauld
a4d7cb9832 helmv2-cli armada pod running and ready check
This modifies helmv2-cli check for armada pod readiness.
There can be multiple kubernetes armada pods in the system, each
in different condition. This now selects armada pods that are
running and ready instead of just selecting the first found pod.

i.e., status.phase 'Running' and status.conditions 'Ready=True'

Change-Id: Ib998d60f3442835d9dbd8e93bf6aaa54ede2e218
Closes-Bug: 1886429
Signed-off-by: Jim Gauld <james.gauld@windriver.com>
2020-09-25 09:24:34 -04:00
Dongqi Chen
af359d4938 Add auto-versioning to starlingx/integ packages
This update makes use of the PKG_GITREVCOUNT variable
to auto-version the packages in this repo.

Story: 2007750
Task: 39951
Change-Id: I854419c922b9db4edbbf6f1e987a982ec2ec7b59
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
2020-06-24 09:48:28 +08:00
Jim Gauld
e0bf31f63f Add support for Helm v3, chartmuseum, and armada chart
This adds support for Helm v3:
- 'helm init' and 'helm serv' were removed in v3, and helm
  initialization was simplified so that is not required in build.
- chart validation and version checking is enforced with 'helm lint',
  so all Charts require the tag: apiVersion: v1 (or v2).
- 'chartmuseum' is a drop-in replacement for 'helm serv', and is
  currently used for building charts only. It is not part of ISO
  image.
- armada chart is built and installed to /opt/extracharts. This
  provides a Kubernetes pod with armada-api and tiller containers.

This provides a Helm v2 client (i.e., helmv2-cli) that gives access
to containerized armada/tiller managed charts. This can be used as
an interactive shell, or as a wrapper for single helm v2 commands.

Change-Id: Iff2b219ea765cf9278c6e80c6aeb5b98cc9a0626
Depends-On: https://review.opendev.org/732731
Story: 2007000
Task: 38893
Signed-off-by: Jim Gauld <james.gauld@windriver.com>
2020-06-10 03:44:59 -04:00
Saul Wold
83c6575d51 integ: Convert wrsroot -> sysadmin
This also changes the group wrs_protected to sys_protected
to de-brand the user and group names.

Depends-On: I887464a20fc17d66529caea03be2b445156f9426
Change-Id: Ic2ea06d3ac15c31854a604af5f4cecf9094fcaea
Story: 2004716
Task: 28748
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2019-06-14 15:09:09 -07:00
Robert Church
1be7dcd3bd Add support for multiple helm repositories in helm-upload
Update the helm-upload script to require specifying a specific helm
repository to use with it's operations.

Change-Id: I4b1a3615a6bd5d0bdd834a1cdf27c05d5a1057a0
Story: 2005424
Task: 30645
Signed-off-by: Robert Church <robert.church@windriver.com>
2019-04-27 05:02:48 -04:00
Al Bailey
ce13ffe1f2 Upversion to kubernetes 1.13.5 and helm 2.13.1
Updated the spec file and src version.

Story: 2005198
Task: 30209
Depends-On: I8b6f7bf14afda36ee8c558175598f3e810506fe8
Change-Id: If9476b26b315e8c863e1ec487cbf701972a82a98
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-04-01 10:10:06 -05:00
Angie Wang
d2a4c3d012 Helm repository replication
This updates the helm-upload to stop syncing charts to standby
controller as charts are changed to store in drbd fs.

Story: 2004520
Task: 28343
Depends-On: https://review.openstack.org/#/c/630763/
Change-Id: I12f17fae6124650d878ba7a560f94b7a8ed36e56
Signed-off-by: Angie Wang <angie.wang@windriver.com>
2019-01-14 15:05:47 -05:00
Joseph Richard
d3ff5a1c77 Upversion helm spec to v2.12.1
This commit upversions helm from v2.11.0 to v2.12.1.
This is necessary as support for kubernetes v1.12 support is only
introduced in helm v2.12.

Story: 2004520
Task: 28777
Depends-on: I2501cd1174f85810892e51ac8a44746302eeb120
Change-Id: I605f1ba2c7fda52d9e0bf84b6132314efad15b24
Signed-off-by: Joseph Richard <joseph.richard@windriver.com>
2019-01-08 15:55:37 +00:00
Al Bailey
4d3140627a Up-version Helm from 2.9.1 to 2.11.0
Point the spec and data file to the newer version.
Reset the TIS patch version from 3 to 1

Story: 2002843
Task: 26751
Depends-On: Ic6a75a2c89d6992433fe78407ff4464da339e776
Change-Id: I5afb5847204c62214689f9e246a4c9c0ddaf02b7
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2018-10-11 15:14:22 -05:00
Robert Church
98aa0d5f2b Enable helm repository and chart upload tool
There's a lot going on here but conceptually we're just enabling a
local helm repo along with a helper script to install helm charts into
the repo.

The first item is to configure lighttpd to serve up helm charts as
static information (so no proxying) at http://127.0.0.1/helm_charts".
This is fairly straightforward, but the files are served out of
/www which isn't a replicated filesystem and which is owned by the www
user.

The helm puppet manifest is modified to create the "helm_charts"
directory for the webserver, to generate the initial index file,
and to tell helm to add the new repo for the "wrsroot" user.  The
various commands are run as specific users with specific environment
variables, this is key to making everything work as planned.

To allow the wrsroot user to upload charts into /www the helm-upload
script will re-run itself as the www user.  /etc/sudoers.d is modified
to allow this without asking for a password.  The upload script will
copy the specified charts in to /www/pages/helm_charts, and will then
regenerate the index.yaml file. The upload script will then try to
sync the files over to the other node.  To enable this without
prompting for a password we modify /etc/rsyncd.conf to allow
passwordless syncing into /www/helm_charts.

In a future commit we'll need to sync charts with the other
controller when booting up, and also configure the local starlingx
helm repo on the second controller.

Change-Id: I86a7795decb7833cb22c04e34e298c8d24ed7fa3
Signed-off-by: David Sullivan <david.sullivan@windriver.com>
Story: 2002876
Task: 22831
Depends-On: https://review.openstack.org/596802
2018-08-27 13:25:56 -04:00
Don Penney
2b2aede21f Remove tiller image tarball from helm package
This update removes the tiller-2.9.1-docker-image.tgz tarball from
the helm package until it can be properly gernerated within the
build framework.

Story: 2002876
Task: 22831

Change-Id: Ie54187b0462be22af5e8935fd4fd25c6ff913332
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-07-31 08:59:40 -04:00
Chris Friesen
53d3777a35 Add helm package for kubernetes
Story: 2002876
Task: 22831
Depends-On: https://review.openstack.org/587279

Change-Id: I4d376cf3adc3b95d51c78f1a2aa47017fb022aa9
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-07-31 08:59:40 -04:00