-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/metrics/malloc_info
- Loading branch information
Showing
63 changed files
with
1,910 additions
and
3,496 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# | ||
# Copyright (C) 2019-2023 vdaas.org vald team <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
name: "Deploy Chaos Mesh" | ||
description: "A action to deploy Chaos Mesh" | ||
|
||
inputs: | ||
chaos_mesh_version: | ||
description: "The Chaos Mesh version to use. The default version is `versions/CHAOS_MESH_VERSION`" | ||
required: false | ||
default: "" | ||
helm_extra_options: | ||
description: "Extra options that passed to Helm command" | ||
required: false | ||
default: "" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Fetch Chaos Mesh version | ||
id: chaos_mesh_version | ||
shell: bash | ||
run: | | ||
CHAOS_MESH_VERSION=${CHAOS_MESH_VERSION:-`cat versions/CHAOS_MESH_VERSION`} | ||
echo "version=${CHAOS_MESH_VERSION}" >> $GITHUB_OUTPUT | ||
env: | ||
CHAOS_MESH_VERSION: ${{ inputs.chaos_mesh_version }} | ||
|
||
- name: Check k3d | ||
shell: bash | ||
id: check_k3d | ||
run: | | ||
kubectl cluster-info | ||
- name: Check Helm | ||
shell: bash | ||
run: | | ||
helm version | ||
- name: Deploy Chaos Mesh | ||
shell: bash | ||
run: | | ||
make kubectl/install | ||
curl -sSL "https://mirrors.chaos-mesh.org/v${CHAOS_MESH_VERSION}/install.sh" | bash -s -- --k3s | ||
helm install \ | ||
${HELM_EXTRA_OPTIONS} \ | ||
vald-chaos-test tests/chaos/chart | ||
env: | ||
HELM_EXTRA_OPTIONS: ${{ inputs.helm_extra_options }} | ||
CHAOS_MESH_VERSION: ${{ steps.chaos_mesh_version.outputs.version }} |
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,57 @@ | ||
# | ||
# Copyright (C) 2019-2023 vdaas.org vald team <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
name: "Determine Docker image tag" | ||
description: "A action to determine Docker image tag" | ||
|
||
outputs: | ||
PRIMARY_TAG: | ||
description: "Primary tag" | ||
value: ${{ steps.determine_tag_name.outputs.PRIMARY_TAG }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Dump Github context | ||
shell: bash | ||
run: | | ||
echo "GITHUB_REF $GITHUB_REF" | ||
echo "GITHUB_EVENT_PATH $GITHUB_EVENT_PATH" | ||
echo "GITHUB_EVENT_NAME ${{ github.event_name }}" | ||
echo "GITHUB_EVENT_NUMBER ${{ github.event.number }}" | ||
- name: Determine tag name | ||
shell: bash | ||
id: determine_tag_name | ||
run: | | ||
if [[ "$GITHUB_REF" =~ ^refs/tags/.* ]]; then | ||
tag_name=`echo $GITHUB_REF | sed -e 's:^refs/tags/::'` | ||
primary_tag="${tag_name}" | ||
elif [ "${{ github.event_name }}" = "pull_request" ]; then | ||
pr_num=`cat $GITHUB_EVENT_PATH | jq -r ".number"` | ||
echo "PR-${pr_num}" > versions/VALD_VERSION | ||
primary_tag="pr-${pr_num}" | ||
elif [ "${{ github.event_name }}" = "pull_request_target" ]; then | ||
pr_num=`cat $GITHUB_EVENT_PATH | jq -r ".number"` | ||
echo "PR-${pr_num}" > versions/VALD_VERSION | ||
primary_tag="pr-${pr_num}" | ||
elif [ "$GITHUB_REF" = "refs/heads/main" ]; then | ||
echo "nightly" > versions/VALD_VERSION | ||
primary_tag="nightly" | ||
else | ||
primary_tag="unknown" | ||
fi | ||
echo "PRIMARY_TAG is determined: ${primary_tag}" | ||
echo "PRIMARY_TAG=${primary_tag}" >> $GITHUB_OUTPUT |
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,56 @@ | ||
# | ||
# Copyright (C) 2019-2023 vdaas.org vald team <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
name: "Dump context to log" | ||
description: "A action to dump context to log" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "Dump GitHub context" | ||
shell: bash | ||
run: echo $JSON | ||
env: | ||
JSON: ${{toJSON(github)}} | ||
|
||
- name: "Dump job context" | ||
shell: bash | ||
run: echo $JSON | ||
env: | ||
JSON: ${{ toJSON(job) }} | ||
|
||
- name: "Dump steps context" | ||
shell: bash | ||
run: echo $JSON | ||
env: | ||
JSON: ${{toJSON(steps)}} | ||
|
||
- name: "Dump runner context" | ||
shell: bash | ||
run: echo $JSON | ||
env: | ||
JSON: ${{toJSON(runner)}} | ||
|
||
- name: "Dump strategy context" | ||
shell: bash | ||
run: echo $JSON | ||
env: | ||
JSON: ${{toJSON(strategy)}} | ||
|
||
- name: "Dump matrix context" | ||
shell: bash | ||
run: echo $JSON | ||
env: | ||
JSON: ${{toJSON(matrix)}} |
Oops, something went wrong.