Kubernetes Power Manager App setup

Story: 2010773
Task: 48113

Change-Id: Ifb48071bd81a6940b7fb2007c9e4984b8ef91ada
Signed-off-by: Eduardo Juliano Alberti <eduardo.alberti@windriver.com>
This commit is contained in:
Eduardo Juliano Alberti 2023-05-26 11:57:10 -03:00
parent a8128edc31
commit 789f333dec
4 changed files with 160 additions and 0 deletions

106
.zuul.yaml Normal file
View File

@ -0,0 +1,106 @@
---
- project:
vars:
ensure_tox_version: '<4'
check:
jobs:
- openstack-tox-linters
gate:
jobs:
- openstack-tox-linters
post:
jobs:
- stx-app-kubernetes-power-manager-upload-git-mirror
- job:
name: stx-app-kubernetes-power-manager-upload-git-mirror
parent: upload-git-mirror
description: >
Mirrors opendev.org/starlingx/app-kubernetes-power-manager to
github.com/starlingx/app-kubernetes-power-manager
vars:
git_mirror_repository: starlingx/app-kubernetes-power-manager
secrets:
- name: git_mirror_credentials
secret: stx-app-kubernetes-power-manager-github-secret
pass-to-parent: true
- secret:
name: stx-app-kubernetes-power-manager-github-secret
data:
user: git
host: github.com
# yamllint disable-line rule:line-length
host_key: github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6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4LQuDTKGLdvFQKbhmbqhwGVktbHS1rhrOUObEh9AO6pg9XmklnzalJ9t+uv4wfZnOIPb
JvL6kpE/eRzbkKYrwqlYQPD9pqUj0IOtoRO8s72eE7R6uJKmhVojtnvIwCLVXBw3iwk64
t6F8P2OiCoACXbs3hY51DM6DKAw3Ct1iX3eXLCLR4vWI2iaReNWiecRFz3SvumgRuiZuM
J9TL37Gwjn9ZfgRMXYtw/IMRXkoMynAKlyBHKnkcUvZhioVsRu3TLoiMWKQQuQYtYyW9X
bJKz7HtBHXU4GCU0/shuTYDMwKfpSBoIzkLQzHHkGNZfuRQaia0leCPllNrq/zb7vHsWN
3qIcPf49JfS1Fpn9Mf841UHE7Wkk4sWmsSc/kj4nkx5bKJhb2rj+cdFJKEEBuqii24wkA
Qk5lIZdEEt1Nww2us9DL84jQSard+X8v7Eh9EWFhNnx864opvYbHP9Zj7IYG3qvj1bOIn
oVWxlk+5VjKCnVKlj/L3UNHkUKuEQcsbDNyoKqeaE57m66TL2KcBErhmcRJcyk4lVViU0
gE83Q8BhbUac94YFJkU59wVJERd2mNSbhJiPvUf+b7ydWoLMSTaVvW7NH/Ft0Y=

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
# Nothing

3
test-requirements.txt Normal file
View File

@ -0,0 +1,3 @@
# hacking pulls in flake8
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
bashate >= 0.2

50
tox.ini Normal file
View File

@ -0,0 +1,50 @@
[tox]
envlist = linters
minversion = 2.3
skipsdist = True
sitepackages=False
[testenv]
install_command = pip install -U {opts} {packages}
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
passenv =
XDG_CACHE_HOME
[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}
[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:bandit]
basepython = python3
description = Dummy environment to allow bandit to be run in subdir tox