mirror of
https://github.com/malarinv/iperf3-monitor.git
synced 2026-03-08 05:22:35 +00:00
Compare commits
12 Commits
fix-helm-l
...
v0.1.3
| Author | SHA1 | Date | |
|---|---|---|---|
| 96be13a23c | |||
| 8d51afc24e | |||
| a2d57908f6 | |||
|
|
4298031a2d | ||
| e6d1a8fb91 | |||
|
|
a9f2a49549 | ||
| 7f0784d382 | |||
| 050fbcbf3c | |||
| e22d2ff71d | |||
| 1487901337 | |||
| fec4cf64b9 | |||
| f6c26c02b1 |
57
.github/workflows/ci.yaml
vendored
Normal file
57
.github/workflows/ci.yaml
vendored
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: ["main"] # Or your main development branch
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY: ghcr.io
|
||||||
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validate-chart:
|
||||||
|
name: Validate Helm Chart
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Helm
|
||||||
|
uses: azure/setup-helm@v3
|
||||||
|
with:
|
||||||
|
version: v3.10.0
|
||||||
|
|
||||||
|
- name: Helm Lint
|
||||||
|
run: helm lint ./charts/iperf3-monitor
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build Docker Image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: ./exporter
|
||||||
|
push: false # Do not push on PRs
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
test:
|
||||||
|
name: Run Tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# Replace this step with your actual test command(s)
|
||||||
|
- name: Placeholder Test Step
|
||||||
|
run: echo "No tests configured yet. Add your test commands here."
|
||||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -82,8 +82,8 @@ jobs:
|
|||||||
- name: Set Chart Version from Tag
|
- name: Set Chart Version from Tag
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
|
VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
|
||||||
yq e -i '.version = strenv(VERSION)' ./charts/iperf3-monitor/Chart.yaml
|
VERSION=$VERSION yq e -i '.version = strenv(VERSION)' ./charts/iperf3-monitor/Chart.yaml
|
||||||
yq e -i '.appVersion = strenv(VERSION)' ./charts/iperf3-monitor/Chart.yaml
|
VERSION=$VERSION yq e -i '.appVersion = strenv(VERSION)' ./charts/iperf3-monitor/Chart.yaml
|
||||||
cat ./charts/iperf3-monitor/Chart.yaml # Optional: print updated Chart.yaml
|
cat ./charts/iperf3-monitor/Chart.yaml # Optional: print updated Chart.yaml
|
||||||
|
|
||||||
- name: Publish Helm chart
|
- name: Publish Helm chart
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -37,7 +37,7 @@ This separation of concerns ensures scalability, resilience, and aligns with Kub
|
|||||||
1. Add the Helm chart repository (replace with your actual repo URL once published):
|
1. Add the Helm chart repository (replace with your actual repo URL once published):
|
||||||
|
|
||||||
```/dev/null/helm-install.sh#L1-1
|
```/dev/null/helm-install.sh#L1-1
|
||||||
helm repo add iperf3-monitor https://your-github-org.github.io/iperf3-monitor/
|
helm repo add iperf3-monitor https://malarinv.github.io/iperf3-monitor/
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Update your Helm repositories:
|
2. Update your Helm repositories:
|
||||||
@@ -78,7 +78,7 @@ exporter:
|
|||||||
# -- Configuration for the exporter container image.
|
# -- Configuration for the exporter container image.
|
||||||
image:
|
image:
|
||||||
# -- The container image repository for the exporter.
|
# -- The container image repository for the exporter.
|
||||||
repository: ghcr.io/my-org/iperf3-prometheus-exporter # Replace with your repo URL
|
repository: ghcr.io/malarinv/iperf3-monitor
|
||||||
# -- The container image tag for the exporter. If not set, the chart's appVersion is used.
|
# -- The container image tag for the exporter. If not set, the chart's appVersion is used.
|
||||||
tag: ""
|
tag: ""
|
||||||
# -- The image pull policy for the exporter container.
|
# -- The image pull policy for the exporter container.
|
||||||
@@ -430,8 +430,4 @@ The project includes a GitHub Actions workflow (`.github/workflows/release.yml`)
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project is licensed under the terms defined in the `LICENSE` file.
|
This project is licensed under the GNU Affero General Public License v3. See the `LICENSE` file for details.
|
||||||
|
|
||||||
```iperf3-monitor/LICENSE
|
|
||||||
This project is currently unlicensed. Please see the project's documentation or repository for licensing information when it becomes available.
|
|
||||||
```
|
|
||||||
|
|||||||
@@ -12,12 +12,12 @@ keywords:
|
|||||||
- kubernetes
|
- kubernetes
|
||||||
- prometheus
|
- prometheus
|
||||||
- grafana
|
- grafana
|
||||||
home: https://github.com/malarinv/iperf3-monitor # Replace with your repo URL
|
home: https://github.com/malarinv/iperf3-monitor
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/malarinv/iperf3-monitor # Replace with your repo URL
|
- https://github.com/malarinv/iperf3-monitor
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Malar Invention # Replace with your name
|
- name: Malar Invention
|
||||||
email: malarkannan.invention@gmail.com # Replace with your email
|
email: malarkannan.invention@gmail.com
|
||||||
icon: https://raw.githubusercontent.com/malarinv/iperf3-monitor/main/icon.png # Optional icon URL
|
icon: https://raw.githubusercontent.com/malarinv/iperf3-monitor/main/icon.png # Optional icon URL
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
@@ -27,4 +27,8 @@ dependencies:
|
|||||||
- name: kube-prometheus-stack # Example dependency if you package the whole stack
|
- name: kube-prometheus-stack # Example dependency if you package the whole stack
|
||||||
version: ">=30.0.0" # Specify a compatible version range
|
version: ">=30.0.0" # Specify a compatible version range
|
||||||
repository: https://prometheus-community.github.io/helm-charts
|
repository: https://prometheus-community.github.io/helm-charts
|
||||||
condition: serviceMonitor.enabled # Only include if ServiceMonitor is enabled (assuming Prometheus Operator)
|
condition: "serviceMonitor.enabled, !dependencies.useTrueChartsPrometheusOperator"
|
||||||
|
- name: prometheus-operator
|
||||||
|
version: ">={{ dependencies.trueChartsPrometheusOperatorVersion }}"
|
||||||
|
repository: "{{ dependencies.trueChartsPrometheusOperatorRepository }}"
|
||||||
|
condition: "serviceMonitor.enabled, dependencies.useTrueChartsPrometheusOperator"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ exporter:
|
|||||||
# -- Configuration for the exporter container image.
|
# -- Configuration for the exporter container image.
|
||||||
image:
|
image:
|
||||||
# -- The container image repository for the exporter.
|
# -- The container image repository for the exporter.
|
||||||
repository: ghcr.io/malarinv/iperf3-prometheus-exporter # Replace with your repo URL
|
repository: ghcr.io/malarinv/iperf3-monitor
|
||||||
# -- The container image tag for the exporter. If not set, the chart's appVersion is used.
|
# -- The container image tag for the exporter. If not set, the chart's appVersion is used.
|
||||||
tag: ""
|
tag: ""
|
||||||
# -- The image pull policy for the exporter container.
|
# -- The image pull policy for the exporter container.
|
||||||
@@ -118,3 +118,20 @@ networkPolicy:
|
|||||||
namespaceSelector: {}
|
namespaceSelector: {}
|
||||||
# -- Specify pod selectors if needed.
|
# -- Specify pod selectors if needed.
|
||||||
podSelector: {}
|
podSelector: {}
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# Dependency Configuration
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
dependencies:
|
||||||
|
# -- Set to true to use the TrueCharts Prometheus Operator instead of kube-prometheus-stack.
|
||||||
|
# This chart's ServiceMonitor resources require a Prometheus Operator to be functional.
|
||||||
|
# If serviceMonitor.enabled is true, one of these two dependencies will be pulled based on this flag.
|
||||||
|
useTrueChartsPrometheusOperator: false
|
||||||
|
|
||||||
|
# -- Repository for the TrueCharts Prometheus Operator.
|
||||||
|
# Only used if dependencies.useTrueChartsPrometheusOperator is true.
|
||||||
|
trueChartsPrometheusOperatorRepository: "oci://tccr.io/truecharts"
|
||||||
|
|
||||||
|
# -- Chart version for the TrueCharts Prometheus Operator.
|
||||||
|
# Only used if dependencies.useTrueChartsPrometheusOperator is true.
|
||||||
|
trueChartsPrometheusOperatorVersion: "8.11.1"
|
||||||
|
|||||||
14
devbox.json
Normal file
14
devbox.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.7/.schema/devbox.schema.json",
|
||||||
|
"packages": [],
|
||||||
|
"shell": {
|
||||||
|
"init_hook": [
|
||||||
|
"echo 'Welcome to devbox!' > /dev/null"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"test": [
|
||||||
|
"echo \"Error: no test specified\" && exit 1"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
4
devbox.lock
Normal file
4
devbox.lock
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"lockfile_version": "1",
|
||||||
|
"packages": {}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user