From c6c693d51cdc6daa4eafe34ccab5ce35496bf516 Mon Sep 17 00:00:00 2001 From: Caio Correa Date: Wed, 27 Mar 2024 11:32:40 -0300 Subject: [PATCH] Add app-rook-ceph repo setup for FluxCD App Story: 2011066 Task: 49782 Change-Id: Ia31587b2afe14516c0b631e7a058446bc7b1bfaa Signed-off-by: Caio Correa --- .zuul.yaml | 8 +++++++ README.md | 16 +++++++++++++ requirements.txt | 1 + test-requirements.txt | 3 +++ tox.ini | 54 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 82 insertions(+) create mode 100644 .zuul.yaml create mode 100644 README.md create mode 100644 requirements.txt create mode 100644 test-requirements.txt create mode 100644 tox.ini diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..7ccbd0a --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,8 @@ +--- +- project: + check: + jobs: + - openstack-tox-linters + gate: + jobs: + - openstack-tox-linters diff --git a/README.md b/README.md new file mode 100644 index 0000000..bcdcc9d --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# app-rook-ceph +App-rook-ceph fluxCD app + +### About app-rook-ceph +Rook is a Ceph orchestrator providing a containerized solution for Ceph Storage. This application tracks the latest compatible upstream version of Rook and packs it targeting StarlingX platforms on fresh instalations. For systems that already have a Ceph backend installed, there's a [migration app](https://opendev.org/starlingx/rook-ceph) available. + +### Installation Guide +For instructions on how to build and install app-rook-ceph, follow the [StarlingX Rook Ceph App installation guide](https://wiki.openstack.org/wiki/StarlingX/Containers/Applications/app-rook-ceph). + + +#### References +[StarlingX](https://www.starlingx.io/) + +[Rook Ceph](https://rook.io/) + +[Migration App](https://opendev.org/starlingx/rook-ceph) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c01ade2 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +# Nothing diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..fa7c694 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,3 @@ +# hacking pulls in flake8 +hacking>=1.1.0,<=2.0.0 # Apache-2.0 +bashate >= 0.2 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..feb7435 --- /dev/null +++ b/tox.ini @@ -0,0 +1,54 @@ +[tox] +envlist = linters +minversion = 2.9 +skipsdist = True +sitepackages=False + +[testenv] +basepython = python3 +install_command = pip install -U \ + {opts} {packages} \ + -c{env:TOX_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt} +setenv = + VIRTUAL_ENV={envdir} + OS_STDOUT_CAPTURE=1 + OS_STDERR_CAPTURE=1 + OS_DEBUG=1 + OS_LOG_CAPTURE=1 +deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +allowlist_externals = + bash + +[testenv:flake8] +basepython = python3 +description = Dummy environment to allow flake8 to be run in subdir tox + +[testenv:pylint] +basepython = python3 +description = Dummy environment to allow pylint to be run in subdir tox + +[testenv:metadata] +basepython = python3 +description = Dummy environment to allow sysinv-app to be run in subdir tox + +[testenv:bandit] +basepython = python3 +description = Dummy environment to allow bandit to be run in subdir tox + +[testenv:bashate] +# Treat all E* codes as Errors rather than warnings using: -e 'E*' +commands = + bash -c "find {toxinidir} \ + -not \( -type d -name .?\* -prune \) \ + -type f \ + -not -name \*~ \ + -not -name \*.md \ + -name \*.sh \ + -print0 | xargs -r -n 1 -0 bashate -v \ + -e 'E*'" + +[testenv:linters] +commands = + {[testenv:bashate]commands}