forked from RemoteSync/librnms-helm-charts
Test pipeline
Test pipeline Test pipeline Fix pipeline Fix liting
This commit is contained in:
parent
7c859e8d3c
commit
1956965950
51
.github/workflows/chart-testing.yml
vendored
Normal file
51
.github/workflows/chart-testing.yml
vendored
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
name: Lint and Test Charts
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set up Helm
|
||||||
|
uses: azure/setup-helm@v4.2.0
|
||||||
|
with:
|
||||||
|
version: v3.14.4
|
||||||
|
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
|
- name: Set up chart-testing
|
||||||
|
uses: helm/chart-testing-action@v2.6.1
|
||||||
|
|
||||||
|
- name: Add repositories
|
||||||
|
run: |
|
||||||
|
for dir in $(ls -d charts/*/); do
|
||||||
|
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: Run chart-testing (list-changed)
|
||||||
|
id: list-changed
|
||||||
|
run: |
|
||||||
|
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
|
||||||
|
if [[ -n "$changed" ]]; then
|
||||||
|
echo "changed=true" >> "$GITHUB_OUTPUT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Run chart-testing (lint)
|
||||||
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
|
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
|
||||||
|
|
||||||
|
- name: Create kind cluster
|
||||||
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
|
uses: helm/kind-action@v1.10.0
|
||||||
|
|
||||||
|
- name: Run chart-testing (install)
|
||||||
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
|
run: ct install --target-branch ${{ github.event.repository.default_branch }} --skip-clean-up
|
@ -5,5 +5,5 @@ dependencies:
|
|||||||
- name: mysql
|
- name: mysql
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 10.3.0
|
version: 10.3.0
|
||||||
digest: sha256:7b8a3f1182b70837c842c8a9fe7c1fa913cadd6800f1f780f94c357af7fca21f
|
digest: sha256:f1e63eec3d96520ef7cd365ece9a281d57e48f811fd9e19d47baefa37fceee76
|
||||||
generated: "2024-07-05T12:50:36.211666249Z"
|
generated: "2024-07-09T11:51:38.284682+02:00"
|
||||||
|
@ -2,14 +2,17 @@ apiVersion: v2
|
|||||||
name: librenms
|
name: librenms
|
||||||
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring system.
|
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring system.
|
||||||
type: application
|
type: application
|
||||||
version: 3.10.0
|
version: 3.10.1
|
||||||
appVersion: "24.5.0"
|
appVersion: "24.5.0"
|
||||||
|
maintainers:
|
||||||
|
- name: TheChef23
|
||||||
|
url: https://github.com/TheChef23
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: redis
|
- name: redis
|
||||||
version: "~19.6.0"
|
version: "~19.6.0"
|
||||||
repository: "https://charts.bitnami.com/bitnami"
|
repository: "https://charts.bitnami.com/bitnami"
|
||||||
when: redis.enabled == true
|
condition: redis.enabled
|
||||||
- name: mysql
|
- name: mysql
|
||||||
version: "~10.3.0"
|
version: "~10.3.0"
|
||||||
repository: "https://charts.bitnami.com/bitnami"
|
repository: "https://charts.bitnami.com/bitnami"
|
||||||
when: mysql.enabled == true
|
condition: mysql.enabled
|
||||||
|
2
charts/librenms/ci/test-values.yaml
Normal file
2
charts/librenms/ci/test-values.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
librenms:
|
||||||
|
appkey: base64:RTMmh+i10E2RMcDxookMu47BTzJQy87hOU+k/zcuPnA=
|
@ -21,8 +21,6 @@ librenms:
|
|||||||
$config['distributed_poller_group'] = '0';
|
$config['distributed_poller_group'] = '0';
|
||||||
$config['distributed_poller'] = true;
|
$config['distributed_poller'] = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Frontend container configurations options
|
# Frontend container configurations options
|
||||||
frontend:
|
frontend:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user