Commit Graph

20 Commits

Author SHA1 Message Date
Sergiy Markin 4be7fa44a7 Armada timeout adjustment
This PS set read/connection timeout to None for http requests.

Change-Id: Ic874485bb82a9c386224f5adc530e366b01ae24e
2023-05-11 21:15:22 +00:00
SPEARS, DUSTIN (ds443n) 0e9d828fe6 Update armada to focal
Update kubernetes client to v26.1.0
Updating armada to focal base image
Remove xenial and opensuse dockerfiles
Update tox python from py35 to py38
Add apparmor for docker build
Uplift HTK chart version 0.2.52
Bumping up some python dependencies to get in sync with shipyard
Added clear-firewall role for airskiff-deploy playbook

Change-Id: If06a3f60466702d05a21c24a7cb8041bed41507a
2023-03-20 11:30:37 -04:00
HUGHES, ALEXANDER (ah8742) b787c418e3 Standardize Armada code with YAPF
From recently merged document updates in [0] there is a desire to
standardize the Airship project python codebase.  This is the effort
to do so for the Armada project.

[0] https://review.opendev.org/#/c/671291/

Change-Id: I4fe916d6e330618ea3a1fccfa4bdfdfabb9ffcb2
2019-07-31 10:16:15 -05:00
Roman Gorshunov d404e3c034 Change various URLs for the OpenDev migration
Change-Id: I3d345cfe1b3cf6134f5aad69ce639ddd21dc101f
2019-07-26 16:32:02 +02:00
Sean Eagan cbb8ed33e1 Add caching and cleanup of chart tarballs
Caching and cleanup of git repository chart sources was previously
implemented. This adds these features for tarball sources as well.

This also implements transitive chart dependency sourcing. Previously
only a single level of dependencies were being downloaded, which
would lead to an error when multiple dependency levels exist.

Change-Id: I988e473a6ea29331e036d26c3ec7269374e0188f
2018-10-29 16:02:44 -05:00
Marshall Margenau 1062aaf1bf Manage temp dirs from git clone.
- In some cases armada was not cleaning up temp dirs properly

Change-Id: I567989d9ac4363fff49c95802b61a3c459074d36
2018-06-25 19:08:18 -05:00
Marshall Margenau f235512d57 Adding yapf config, plus formatted code.
- Adding yapf diff to pep8 target
- Adding yapf tox target to do actual format

** The rest of this PS contains formatted code only, no other changes

Change-Id: Idfef60f53565add2d0cf65bb8e5b91072cf0aded
2018-06-22 14:56:04 -05:00
Felipe Monteiro f27ab29db7 [test] Increase armada.handlers.armada test coverage
This is a multi-part PS because these patches may include small
fix-ups to the code base itself, so the intention is to keep
the patches small and easily reversible. This patchset introduces
the following:

  * html coverage report (execute tox -e cover then open index.html
    under htmlcov folder which is created by py.test)
  * adds additional unit tests for pre_flight_ops
  * adds more robust assertions for those tests

Change-Id: Ib29d7d8d0c3b686a36c5a87fc46d4594bb1838a6
2018-06-11 10:15:28 -04:00
Sean Eagan fe310b194e Remove references to old git repos
This removes references to the old att-comdev git repos, either updating
to the openstack github mirror or deleting as appropriate. Old project
name (UCP) references are left alone for now.

Change-Id: I53b294a3c574fa0bca4037e5e00ad31d92f26977
2018-05-29 10:15:13 -05:00
Tin Lam 8d1521e96c style(pep8): remove E722 exclusion
This patch set removes E722 pep8 exclusion that allows for "bare"
except: statement.

Change-Id: Icdce885366541b88aabbef35166cf196a588676b
Signed-off-by: Tin Lam <tin@irrational.io>
2018-05-08 23:11:18 -05:00
drewwalters96 5b75f0a9b4 feat(source): Add support for SSH key authentication
- Add support for SSH key auth using existing config file value
- Add authentication exceptions
- Remove redundant git error handling from Armada handler

Closes #169

Change-Id: Ia0f61e0b74893289bb90560a743a243393d89c56
2018-02-13 16:10:34 -05:00
Felipe Monteiro 732af63051 Add unit tests for main Armada handler
This PS adds unit tests for the armada handler in
armada.handlers.armada. These unit tests are among
the most important as the Armada handler itself
interacts with most every other part of the application.

Note that the current unit tests are not only incorrect
(they don't pass) but they skip unconditionally as well.

So this PS is needed to correctly implement the intent
behind the original unit tests herein.

Change-Id: Iecb3e540e1d52eb5a25d9f6825b3d0f5339ede2a
2018-02-02 22:42:09 +00:00
Marshall Margenau c117b945ad feat(proxy): add proxy support to armada/Chart/v1 for git clone
Support proxy for installing armada/Chart/v1, as data.source.proxy_server when data.source.type = 'git'.

Closes #191

Change-Id: I9bfd7dbd63c86f65b24b27bd5eec547f862e2311
2018-02-01 20:49:46 -06:00
Felipe Monteiro bfff1f4ed3 tests(git): Unskip git tests and add conditional skip test.
This PS unskips the last remaining git test in test_source which
had an unconditional unittests.skip() decorator applied to it.
The source_cleanup test now issues a warning if the repo path
isn't found and the associated test (passing in a bad path)
simply asserts that the warning was called.

This also adds a conditional skip to the git clone unit tests
in the event that the user doesn't have network connectivity.

Change-Id: Ic300c48a4e0c361e37ec15cd3675415f8170a817
2018-01-22 21:09:26 -05:00
gardlt ef26f5c36e feat(source): adding tar https functionality
- updated download function
- add option for certs in config

Change-Id: Ic8dd8629fa759cd81deae5d4d94056154e71f6c1
2017-11-03 21:32:17 +00:00
Mark Burnett 083ba20f50 fix(git): allow specifying git refs for sources
This allows, e.g., pointing at a particular Gerrit Patch Set using
natural configuration, e.g.:

    ---
    schema: armada/Chart/v1
    metadata:
      schema: metadata/Document/v1
      name: ceph-config
    data:
      chart_name: ceph-config
      release: ceph-config
      namespace: ucp
      timeout: 3600
      install:
        no_hooks: true
      upgrade:
        no_hooks: true
      values: {}
      source:
        type: git
        location: https://github.com/openstack/openstack-helm
        subpath: ceph
        reference: refs/changes/54/457754/73
      dependencies: []

Change-Id: Ib6af0fec2bbfa1fa4e523d839df44af047697522
2017-10-18 14:17:17 -05:00
Pete Birley 746cbd0bd8 Fix(linting): Make Armada pep8 compliant
This patch set makes Armada pep8 compliant. Note the hapi/** is
autogenerated and therefore should be excluded from linting.

Change-Id: I123eefb543f9bd9cf0bc6bd98ed95646d8d72cc3
2017-09-29 11:46:58 -04: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
Tim Heyer ea6ad23672 Migrate from pygit2 to GitPython
Change-Id: Ib477b945e922fd0a1767bd6643c0a45751599fad
2017-08-09 21:20:25 +00: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