Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: CI

on:
pull_request:
branches:
- "main"
push:
branches:
- "main"

jobs:

helm:
name: Helm chart
runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Lint
run: |
docker run --rm --interactive --network host \
--name ct-lint \
--volume $PWD:/workdir \
--workdir /workdir \
quay.io/helmpack/chart-testing:v3.10.1 sh -c 'git config --global --add safe.directory /workdir \
&& helm repo add bitnami https://charts.bitnami.com/bitnami \
&& helm repo add apisix https://charts.apiseven.com \
&& ct lint \
--charts charts/api7 \
--charts charts/gateway \
--charts charts/ingress-controller'

- name: Setup Kubernetes
uses: engineerd/[email protected]
with:
version: v0.22.0
image: kindest/node:v1.31.0

- name: Test install charts
run: |
kubectl cluster-info
docker run --rm --interactive --network host \
--name ct \
--volume $HOME/.kube/config:/root/.kube/config \
--volume $PWD:/workdir \
--workdir /workdir \
quay.io/helmpack/chart-testing:v3.10.1 sh -c 'git config --global --add safe.directory /workdir \
&& helm repo add bitnami https://charts.bitnami.com/bitnami \
&& helm repo add apisix https://charts.apiseven.com \
&& ct install \
--charts charts/api7 \
--charts charts/ingress-controller'

- name: Test gateway charts
run: |
kubectl cluster-info
docker run --rm --interactive --network host \
--name ct \
--volume $HOME/.kube/config:/root/.kube/config \
--volume $PWD:/workdir \
--workdir /workdir \
quay.io/helmpack/chart-testing:v3.10.1 sh -c 'git config --global --add safe.directory /workdir \
&& helm repo add bitnami https://charts.bitnami.com/bitnami \
&& helm repo add apisix https://charts.apiseven.com \
&& ct install \
--charts charts/gateway --helm-extra-set-args "--set etcd.enabled=true"'

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.23'

- name: Run helm-docs
run: |
go install github.com/norwoodj/helm-docs/cmd/[email protected]
helm-docs --chart-search-root=${GITHUB_WORKSPACE}/charts
DIFF=$(git diff ${GITHUB_WORKSPACE}/charts/*/README.md)
if [ ! -z "$DIFF" ]; then
echo "Please use helm-docs in your clone, of your fork, of the project, and commit an updated README.md for the chart."
echo "$DIFF"
exit 1
fi
5 changes: 5 additions & 0 deletions charts/api7/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ version: 0.17.20
# It is recommended to use it with quotes.
appVersion: "3.8.10"

maintainers:
- name: API7
email: [email protected]
url: https://api7.ai

dependencies:
- name: prometheus
condition: prometheus.builtin
Expand Down
6 changes: 6 additions & 0 deletions charts/api7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

A Helm chart for Kubernetes

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| API7 | <[email protected]> | <https://api7.ai> |

## Requirements

| Repository | Name | Version |
Expand Down
14 changes: 7 additions & 7 deletions charts/api7/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ prometheus:
registry: docker.io
repository: api7/prometheus
tag: 2.48.1-debian-11-r0
existingSecret: "" # name of existing secret to mount the path of prometheus client certs.
existingSecret: "" # name of existing secret to mount the path of prometheus client certs.
enableRemoteWriteReceiver: true
enableAdminAPI: true
serviceAccount:
Expand Down Expand Up @@ -305,15 +305,15 @@ dashboard_configuration:
prometheus:
addr: "http://api7-prometheus-server:9090"
timeout: "30s"
basic_auth: # access the prometheus with basic-auth
username: "" # Basic-auth username. If the username is empty, basic-auth authentication is not performed when requesting prometheus.
basic_auth: # access the prometheus with basic-auth
username: "" # Basic-auth username. If the username is empty, basic-auth authentication is not performed when requesting prometheus.
password: ""
tls:
server_name: ""
insecure_skip_verify: false
enable_client_cert: false
key_file: "" # the file path of the private key for requesting prometheus, (e.g. /app/prometheus/certs/tls.key)
cert_file: "" # the file path of the certificate for requesting prometheus, (e.g. /app/prometheus/certs/tls.crt)
cert_file: "" # the file path of the certificate for requesting prometheus, (e.g. /app/prometheus/certs/tls.crt)
ca_file: "" # the file path of the ca to verify the prometheus tls server. (e.g. /app/prometheus/certs/ca.crt)
whitelist:
- "/api/v1/query_range"
Expand Down Expand Up @@ -370,15 +370,15 @@ dp_manager_configuration:
prometheus:
addr: "http://api7-prometheus-server:9090"
timeout: "30s"
basic_auth: # access the prometheus with basic-auth
username: "" # Basic-auth username. If the username is empty, basic-auth authentication is not performed when requesting prometheus.
basic_auth: # access the prometheus with basic-auth
username: "" # Basic-auth username. If the username is empty, basic-auth authentication is not performed when requesting prometheus.
password: ""
tls:
server_name: ""
insecure_skip_verify: false
enable_client_cert: false
key_file: "" # the file path of the private key for requesting prometheus, (e.g. /app/prometheus/certs/tls.key)
cert_file: "" # the file path of the certificate for requesting prometheus, (e.g. /app/prometheus/certs/tls.crt)
cert_file: "" # the file path of the certificate for requesting prometheus, (e.g. /app/prometheus/certs/tls.crt)
ca_file: "" # the file path of the ca to verify the prometheus tls server. (e.g. /app/prometheus/certs/ca.crt)
consumer_cache:
size: 50000
Expand Down
5 changes: 5 additions & 0 deletions charts/gateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ version: 0.2.22
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: "3.8.10"

maintainers:
- name: API7
email: [email protected]
url: https://api7.ai

dependencies:
- name: etcd
version: 8.7.7
Expand Down
4 changes: 4 additions & 0 deletions charts/ingress-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ keywords:
type: application
version: 0.1.9
appVersion: 2.0.4
maintainers:
- name: API7
email: [email protected]
url: https://api7.ai
sources:
- https://github.com/api7/api7-helm-chart
6 changes: 6 additions & 0 deletions charts/ingress-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

Ingress Controller for API7

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| API7 | <[email protected]> | <https://api7.ai> |

## Source Code

* <https://github.com/api7/api7-helm-chart>
Expand Down
Loading