forked from apache/apisix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upstream: (52 commits) feat: add kubernetes discovery module (apache#4880) docs: fix For L7 proxy -> For L4 proxy (apache#6423) fix(deps): upgrade jsonschema to 0.9.8 (apache#6407) docs: translate Chinese to English in en clickhouse-logger (apache#6416) docs: add zh proxy-control.md&modify other doc error (apache#6346) docs: update public API relative usage (apache#6318) docs(cn): remove datadog from sidebar & fix doc lint conf (apache#6411) fix(request-validation): should not limit the urlencoded post args number (apache#6396) docs: fix configuration file typo (apache#6395) docs(extern-plugin): the implementation of runner (apache#6336) docs: polishing skywalking-logger plugin's docs (apache#6377) doc: adjust the directory structure of observability's documents (apache#6391) change(admin): empty nodes should be encoded as array (apache#6384) fix: should not limit the header number (apache#6379) ci: remove unnecessary tmate action (apache#6367) fix(opentelemetry): batch_span_processor export zero length spans (apache#6349) feat(graphql): support http get and post json request (apache#6343) feat: support for configuring the number of etcd health check retries (apache#6322) feat(wasm): support getting request body (apache#6325) fix(hmac-auth): hmac-auth plugin sort array param (apache#6314) ...
- Loading branch information
Showing
140 changed files
with
5,271 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: "Feature request" | ||
description: Ask for a new feature or an improvement of an existing one | ||
title: "feat: As a User, I want to ... so that ..." | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
The more information you fill in, the better we can help you. | ||
- Please use English on public channel. | ||
- Encourage using words rather than pictures to describe your demand. | ||
- Encourage pre-searching with keywords in the issue. | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Issue description | ||
description: Provide a clear and concise description of what you want. | ||
validations: | ||
required: true |
Submodule action-tmate
deleted from
079a16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
pull_request: | ||
branches: [master, 'release/**'] | ||
paths: | ||
- 'docs/**' | ||
- '**/*.md' | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: CI Kubernetes | ||
|
||
on: | ||
push: | ||
branches: [ master, 'release/**' ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**/*.md' | ||
pull_request: | ||
branches: [ master, 'release/**' ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**/*.md' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
kubernetes-discovery: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- ubuntu-18.04 | ||
os_name: | ||
- linux_openresty | ||
- linux_openresty_1_17 | ||
|
||
runs-on: ${{ matrix.platform }} | ||
timeout-minutes: 15 | ||
env: | ||
SERVER_NAME: ${{ matrix.os_name }} | ||
OPENRESTY_VERSION: default | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2.4.0 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Extract branch name | ||
if: ${{ startsWith(github.ref, 'refs/heads/release/') }} | ||
id: branch_env | ||
shell: bash | ||
run: | | ||
echo "##[set-output name=version;]$(echo ${GITHUB_REF##*/})" | ||
- name: Setup kubernetes cluster | ||
run: | | ||
KIND_VERSION="v0.11.1" | ||
KUBECTL_VERSION="v1.22.0" | ||
curl -Lo ./kind "https://kind.sigs.k8s.io/dl/${KIND_VERSION}/kind-$(uname)-amd64" | ||
curl -Lo ./kubectl "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" | ||
chmod +x ./kind | ||
chmod +x ./kubectl | ||
./kind create cluster --name apisix-test --config ./t_kubernetes/configs/kind.yaml | ||
./kubectl wait --for=condition=Ready nodes --all --timeout=180s | ||
./kubectl apply -f ./t_kubernetes/configs/account.yaml | ||
./kubectl apply -f ./t_kubernetes/configs/endpoint.yaml | ||
KUBERNETES_CLIENT_TOKEN_CONTENT=$(./kubectl get secrets | grep apisix-test | awk '{system("./kubectl get secret -o jsonpath={.data.token} "$1" | base64 --decode")}') | ||
KUBERNETES_CLIENT_TOKEN_DIR="/tmp/var/run/secrets/kubernetes.io/serviceaccount" | ||
KUBERNETES_CLIENT_TOKEN_FILE=${KUBERNETES_CLIENT_TOKEN_DIR}/token | ||
mkdir -p ${KUBERNETES_CLIENT_TOKEN_DIR} | ||
echo -n "$KUBERNETES_CLIENT_TOKEN_CONTENT" > ${KUBERNETES_CLIENT_TOKEN_FILE} | ||
echo 'KUBERNETES_SERVICE_HOST=127.0.0.1' | ||
echo 'KUBERNETES_SERVICE_PORT=6443' | ||
echo 'KUBERNETES_CLIENT_TOKEN='"${KUBERNETES_CLIENT_TOKEN_CONTENT}" | ||
echo 'KUBERNETES_CLIENT_TOKEN_FILE='${KUBERNETES_CLIENT_TOKEN_FILE} | ||
./kubectl proxy -p 6445 & | ||
- name: Linux Install | ||
run: | | ||
sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev | ||
sudo cpanm --notest Test::Nginx >build.log 2>&1 || (cat build.log && exit 1) | ||
sudo --preserve-env=OPENRESTY_VERSION ./ci/${{ matrix.os_name }}_runner.sh do_install | ||
- name: Run test cases | ||
run: | | ||
./ci/kubernetes-ci.sh run_case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Performance Test | ||
|
||
on: | ||
pull_request: | ||
branches: [master, 'release/**'] | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**/*.md' | ||
|
||
jobs: | ||
performance: | ||
if: github.event_name == 'pull_request' && github.event.label.name == 'performance' | ||
runs-on: ubuntu-18.04 | ||
timeout-minutes: 45 | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2.4.0 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Cache deps | ||
uses: actions/cache@v2.1.7 | ||
env: | ||
cache-name: cache-deps | ||
with: | ||
path: deps | ||
key: ${{ runner.os }}-${{ env.cache-name }}-${{ matrix.os_name }}-${{ hashFiles('rockspec/apisix-master-0.rockspec') }} | ||
|
||
- name: Install Dependencies | ||
run: sudo ./ci/performance_test.sh install_dependencies | ||
|
||
- name: Install wrk2 | ||
run: sudo ./ci/performance_test.sh install_wrk2 | ||
|
||
- name: Install SystemTap Tools | ||
run: sudo ./ci/performance_test.sh install_stap_tools | ||
|
||
- name: Perf Test | ||
run: ./ci/performance_test.sh run_performance_test | ||
|
||
- name: Upload Performance Test Result | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: perf.txt | ||
path: | | ||
output/performance.txt | ||
retention-days: 3 | ||
|
||
- name: Upload flamegrpah | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: flamegraph.svg | ||
path: | | ||
output/flamegraph.svg | ||
retention-days: 3 | ||
|
||
# you can view the generated flamegraph by | ||
# 1. open https://github.com/apache/apisix/actions | ||
# 2. click the "Performance Test" button | ||
# 3. choose the workflows that belong to your commits | ||
# we need a way to have this address automatically appear in the comments of the PR running this workflow. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
[submodule "t/toolkit"] | ||
path = t/toolkit | ||
url = https://github.com/api7/test-toolkit.git | ||
[submodule ".github/actions/action-tmate"] | ||
path = .github/actions/action-tmate | ||
url = https://github.com/mxschmitt/action-tmate | ||
[submodule "t/grpc_server_example"] | ||
path = t/grpc_server_example | ||
url = https://github.com/api7/grpc_server_example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.