Commit Graph

33 Commits

Author SHA1 Message Date
Sean Eagan 68747d0815 Use helm 3 CLI as backend
Helm 3 breaking changes (likely non-exhaustive):

- crd-install hook removed and replaced with crds directory in
  chart where all CRDs defined in it will be installed before
  any rendering of the chart
- test-failure hook annotation value removed, and test-success
  deprecated. Use test instead
- `--force` no longer handles recreating resources which
  cannot be updated due to e.g. immutability [0]
- `--recreate-pods` removed, use declarative approach instead [1]

[0]: https://github.com/helm/helm/issues/7082
[1]: https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments

Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
Change-Id: I20ff40ba55197de3d37e5fd647e7d2524a53248f
2021-10-04 21:40:26 -05:00
Sean Eagan 5d2447560b Support builtin chart dependencies
This adds support for using the same builtin chart dependencies [0]
as `helm install|upgrade ...` would use.

[0]: https://helm.sh/docs/developing_charts/#chart-dependencies

Change-Id: Ifc541dc273fa2a5c5b4e43125f468ea3fdb0f379
2019-08-22 08:13:03 -05:00
Roman Gorshunov d404e3c034 Change various URLs for the OpenDev migration
Change-Id: I3d345cfe1b3cf6134f5aad69ce639ddd21dc101f
2019-07-26 16:32:02 +02:00
pengdake b703ca1c37 Add chart about rabbitmq and remove timeout from example
1. According to
https://github.com/openstack/openstack-helm/blob/master/keystone/templates/job-rabbit-init.yaml,
We need to add chart about rabbitmq.
2. Timeout is overridden by `wait.timout`, we should remove it from
example manifest.

Change-Id: Ia455886b2d2666e15a3454e9208cae89c3140826
Signed-off-by: pengdake <19921207pq@gmail.com>
2018-12-05 19:00:16 +08:00
pengdake c4864f1b45 Update manifest named keystone-manifest
The charts of mariadb and memcached are moved to openstack-helm-infra.
So we need update keystone-manifest.

Change-Id: Ie5cb4fcc5bf7b1dc31880eef6fbb6d0600598680
Signed-off-by: pengdake <19921207pq@gmail.com>
2018-11-30 11:21:46 +08:00
Marshall Margenau cd0242780e Run helm tests by default
- Armada will now run helm tests by default, and the charts must
  disable tests if they choose. A helm test that does not exist
  is still a happy-path resolution.
- Documentation and schema updates to signify new deault behavior.
- Preparing to deprecate `test_charts` in ChartGroup processing.

Change-Id: I8e51e33a5d9559b11c2b75e122ecfc97af084ca4
2018-07-17 09:18:39 -05:00
Sean Eagan 2a1a94828d Change chart `test` key to object and support cleanup flag
Previously the chart `test` key was a boolean.  This changes it to an
object which initially supports an `enabled` flag (covering the
previous use case) and adds support for helm's test cleanup option
(underneath an `options` key which mirrors what we have for `upgrade`).
Existing charts will continue to function the same, with cleanup always
turned on, and ability to use the old boolean `test` key for now.  When
using the new `test` object however, cleanup defaults to false to match
helm's interface and allow for test pod debugging.  Test pods can be
deleted on the next armada apply as well, to allow for debugging in the
meantime, by adding `pre`-`upgrade`-`delete` actions for the test pod.
The `test` commands in the API and CLI now support `cleanup` options as
well.

Change-Id: I92f8822aeaedb0767cb07515d42d8e4f3e088150
2018-06-27 10:47:02 -05:00
Anthony Lin c973720c07 Update HTK Path - OSH Infra
Updated configurations to point to openstack-helm-infra
for reference to helm-toolkit as helm-toolkit has been
removed from the openstack-helm repo [0]

[0] https://review.openstack.org/#/c/558065/

Change-Id: Ia7f4da6beb5df5a98a1c35e66090d82960b00a34
2018-05-16 05:02:43 +00:00
Felipe Monteiro 6339efcfd8 test(validate): Validate Armada's own examples
This is to validate Armada's own chart/chart group/manifest
documents under examples using internal schema validation
to verify that the examples are up to date with latest Armada
code changes.

Change-Id: I4379eba727ee26acc501d0a81ae7cd828a0e4f51
2018-03-19 17:50:22 -04:00
gardlt 3b879fc846 Improved document validation
BREAKING CHANGE: Armada will no longer support
recursive monolithic documents such that a Manifest
fully defines ChartGroups inline and ChartGroups
fully define Charts inline. Only name-based references
to other documents is supported.

- Author document schemas in standalone
  JSON schema files
- Update validation to return all failures available
- Removed unit tests for support of recursive monolithic
  documents

Change-Id: Idb91fa552d3d7a3d7d525609d505fe7380443238
2018-02-23 11:11:09 -05:00
Felipe Monteiro 39b5a876fe Add unit tests for Manifest handler
Change-Id: Ia7e1c0861cb79b78a65ad95f50729a85a874a892
2018-02-05 17:14:12 -05:00
gardlt 1a0c33c818 fix(tiller): pre-delete-actions
- selecting when to wait for redeployment

Change-Id: Ie7746443946ec05c6a4daaca07cfc741b9194de9
2017-11-03 20:41:52 +00:00
gardlt 7b26e59422 feat(cli): using-click-framework
- using click framework
- added api client
- allow interactions between code and service endpoints
- documention on the command line
- updated gitignore

Change-Id: Ibe359025f5b35606d876c29fa88e04048f276cc8
2017-11-02 20:59:57 +00:00
gardlt a99fc4ad6c bug(wait): fixing how we wait on chart and group
- added abilty to choose labels to wait on
- created wait object

Change-Id: Ia3b6f7bd7b6ef15779b087c613d69f4f6a7b41e9
2017-11-02 19:51:18 +00:00
drewwalters96 be8e86351f feat(manifest): ability to override manifest value
- Add --set flag to override manifest values from CLI
- Add --values flag to override manifest values from values file
- Add support to override manifests values with API values option

Closes #146

Change-Id: Iefa14e4d3005aab3ee803ffb65dfe1a867507c0e
2017-11-02 00:03:41 +00:00
Steve Wilkerson ad95562b90 fix(examples): Remove openstack-aio example
Removes the openstack-aio example yaml as it's no longer relevant
to the current state of openstack-helm

Change-Id: I7904851cc1861081c845eee0b312615692e81145
2017-09-28 09:18:51 -05:00
gardlt bb26131ce2 feat(api): policy enforcement and api standard
- enhanced logging
- created base structure
- updated docs
- PasteDeploy auth
- Oslo Policy

Closes #107

Change-Id: I805863c57f17fcfb26dac5d03efb165e4be49a4e
2017-09-20 21:54:39 +00:00
Alexis Rivera De La Torre d5f4378731 feat(armada): adding helm testing framework
- added helm test framework to armada
- added helm test status

Closes #151

Change-Id: I417cae04b4595ad0d4fd05889d90c83907607c47
2017-09-20 21:54:39 +00:00
gardlt 16b14169f8 feat(source): checkout via reference
- provide source tool ability to checkout commit hash

Change-Id: Ic3b101a4877fd89516df8c4814802780a15e2461
2017-09-17 00:47:58 +00:00
Omar Rivera 498cf6c98f Fix oslo_config and oslo_log configurations
* Ensure that configurations are done via the global `cfg` object
* Ensure that the logger is configure through the global object
* Upload a configuration sample file with DEFAULT section having
  the armada.conf and oslo_log namespace
2017-08-07 21:43:32 -05:00
Tim Heyer 4554cac0d9 [Feat] Support remote tarball as chart source
-Add functionality to download a tarball from a URL, decompress/extract
 the archive, and use as a chart source
-Compartmentalized functionality to later support extracting, but not
 downloading, local tarballs
-Refactor specific git utils to general source utils
-Small exception handling bug fix
2017-08-02 15:12:12 -05:00
gardlt d175e5ef92 [feat] upgrading daemonsets
- rolling update for daemonsets
- search pods by labels
2017-08-01 11:30:54 -05:00
gardlt 86846d64bf [bug] get armada object after valid document
- calling object get after vaild doc
2017-07-27 14:06:05 -05:00
gardlt afb7fe83ab [feat] adding standard armada manifest
- adding tmeplate armada manifest
- create Armada Manifest
- updated validation for new documents
- updated testing
- updated docs
2017-07-26 14:44:05 -05:00
Tim Heyer 5e580ee3cb Fix chart cleanup bug
-chart cleanup was never refactored for new yaml format
-fix chart cleanup syntax
-add simple.yaml for quick tests
-fix chart cleanup cli flag
2017-07-19 13:57:00 -05:00
gardlt 818aba66b2 [docs] update readme 2017-07-05 12:15:24 -05:00
gardlt 55c3a0fa8f [feat] adding sequenced deployments
* added new structure to the armada yaml
2017-06-30 07:40:10 -05:00
Tim Heyer a22d2d0bb0 Implement native tiller timeout support
-Update tiller.py and armada.py to support native tiller timeout
-Update documentation with the new yaml timeout keyword
-Update tiller version to 2.4.2
-Create tests for timeout ability, as well as structure for further test development
-Fix gRPC message size bug
2017-06-27 15:46:30 -05:00
gardlt 629a118f49 [feature] implement-api-service
* created tiller status
* created apply api
* fixing prefix-issues
2017-05-01 17:16:11 -05:00
Alexis Rivera DeLa Torre adcdbd59de [bug] removing-used-section (#47)
* example section
2017-04-18 08:59:10 -07:00
Alexis Rivera DeLa Torre e4f49e9f8a [feature] adding-pre-post-actions-to-yaml (#44)
* fix multiple release items
* remove old configs in kubernetes
* add skip flags
2017-04-17 14:24:30 -05:00
Abel Lopez 4f20d4c0dc
Updated example file
last week, openstack-helm renamed common to helm-toolkit

Also updated README with easier virtualenv usage
2017-03-01 10:31:23 -08:00
Alan Meadows 501d3d5ca2 Initial Armada Commit (#1)
* Initial commit of Armada framework

* python based .gitignore

* incorporate pull request feedback
2017-02-10 15:27:04 -08:00