6a4cf76bce
Add the supported minimum Kubernetes version into the application metadata file. The minimum Kubernetes version is set to 1.24.4 and should be changed accordingly for future application updates. The "supported_k8s_version:minimum" field is optional but it will become mandatory in the near future. This also contains a fix to properly trigger the Tox metadata checks. Test Plan PASS: build-pkgs && build-image PASS: Apply application Story: 2010929 Task: 49512 Change-Id: I86684f0b9d0dcc20b436aa99b7c7ac31d6299c5f Signed-off-by: Igor Soares <Igor.PiresSoares@windriver.com>
113 lines
3.9 KiB
YAML
113 lines
3.9 KiB
YAML
---
|
|
- project:
|
|
check:
|
|
jobs:
|
|
- openstack-tox-linters
|
|
- k8sapp-node-interface-metrics-exporter-tox-py39
|
|
- k8sapp-node-interface-metrics-exporter-tox-pylint
|
|
- k8sapp-node-interface-metrics-exporter-tox-flake8
|
|
- k8sapp-node-interface-metrics-exporter-tox-metadata
|
|
- go-lint
|
|
- go-test
|
|
gate:
|
|
jobs:
|
|
- openstack-tox-linters
|
|
- k8sapp-node-interface-metrics-exporter-tox-py39
|
|
- k8sapp-node-interface-metrics-exporter-tox-pylint
|
|
- k8sapp-node-interface-metrics-exporter-tox-flake8
|
|
- k8sapp-node-interface-metrics-exporter-tox-metadata
|
|
|
|
- job:
|
|
name: k8sapp-node-interface-metrics-exporter-tox-py39
|
|
parent: openstack-tox-py39
|
|
description: |
|
|
Run py39 test for k8sapp_node_interface_metrics_exporter
|
|
nodeset: debian-bullseye
|
|
required-projects:
|
|
- starlingx/config
|
|
- starlingx/fault
|
|
- starlingx/update
|
|
- starlingx/utilities
|
|
- starlingx/root
|
|
files:
|
|
- python3-k8sapp-node-interface-metrics-exporter/*
|
|
vars:
|
|
tox_extra_args: -c python3-k8sapp-node-interface-metrics-exporter/k8sapp_node_interface_metrics_exporter/tox.ini
|
|
tox_constraints_file: '{{ ansible_user_dir }}/src/opendev.org/starlingx/root/build-tools/requirements/debian/upper-constraints.txt'
|
|
|
|
- job:
|
|
name: k8sapp-node-interface-metrics-exporter-tox-metadata
|
|
parent: tox
|
|
description: |
|
|
Run metadata test for k8sapp_node_interface_metrics_exporter
|
|
nodeset: debian-bullseye
|
|
required-projects:
|
|
- starlingx/config
|
|
- starlingx/fault
|
|
- starlingx/update
|
|
- starlingx/utilities
|
|
- starlingx/root
|
|
vars:
|
|
tox_envlist: metadata
|
|
tox_extra_args: -c python3-k8sapp-node-interface-metrics-exporter/k8sapp_node_interface_metrics_exporter/tox.ini
|
|
tox_constraints_file: '{{ ansible_user_dir }}/src/opendev.org/starlingx/root/build-tools/requirements/debian/upper-constraints.txt'
|
|
|
|
- job:
|
|
name: k8sapp-node-interface-metrics-exporter-tox-pylint
|
|
parent: tox
|
|
description: |
|
|
Run pylint test for k8sapp_node_interface_metrics_exporter
|
|
nodeset: debian-bullseye
|
|
required-projects:
|
|
- starlingx/config
|
|
- starlingx/fault
|
|
- starlingx/update
|
|
- starlingx/utilities
|
|
- starlingx/root
|
|
files:
|
|
- python3-k8sapp-node-interface-metrics-exporter/*
|
|
vars:
|
|
tox_envlist: pylint
|
|
tox_extra_args: -c python3-k8sapp-node-interface-metrics-exporter/k8sapp_node_interface_metrics_exporter/tox.ini
|
|
tox_constraints_file: '{{ ansible_user_dir }}/src/opendev.org/starlingx/root/build-tools/requirements/debian/upper-constraints.txt'
|
|
|
|
- job:
|
|
name: k8sapp-node-interface-metrics-exporter-tox-flake8
|
|
parent: tox
|
|
description: |
|
|
Run flake8 test for k8sapp_node_interface_metrics_exporter
|
|
nodeset: debian-bullseye
|
|
required-projects:
|
|
- starlingx/config
|
|
- starlingx/fault
|
|
- starlingx/update
|
|
- starlingx/utilities
|
|
- starlingx/root
|
|
files:
|
|
- python3-k8sapp-node-interface-metrics-exporter/*
|
|
vars:
|
|
tox_envlist: flake8
|
|
tox_extra_args: -c python3-k8sapp-node-interface-metrics-exporter/k8sapp_node_interface_metrics_exporter/tox.ini
|
|
tox_constraints_file: '{{ ansible_user_dir }}/src/opendev.org/starlingx/root/build-tools/requirements/debian/upper-constraints.txt'
|
|
|
|
- job:
|
|
name: go-lint
|
|
parent: golangci-lint
|
|
description: |
|
|
Run go linting
|
|
vars:
|
|
go_version: 1.21.5
|
|
golangci_lint_version: 1.55.2
|
|
zuul_work_dir: "{{ zuul.project.src_dir }}/metrics-exporter-api/docker/metrics-exporter-api"
|
|
|
|
- job:
|
|
name: go-test
|
|
parent: golang-go
|
|
description: |
|
|
Run go test
|
|
vars:
|
|
go_version: 1.21.5
|
|
go_command: test -coverprofile=coverage.out ./...
|
|
# golangci_lint_version: 1.55.2
|
|
zuul_work_dir: "{{ zuul.project.src_dir }}/metrics-exporter-api/docker/metrics-exporter-api"
|