add redis as alternative metrics store #390
Workflow file for this run
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
name: Additional Helm chart linting | |
# Like lintcharts.yaml, the other lint Helm chart workflow, this workflow uses kube-linter | |
# kube-linter checks Helm templates but it does not check what is contained in {{ define ... }} blocks | |
# This workflow builds on the other workflow by producing Kubernetes YAML files from the templates and running kube-linter on those files | |
# See iter8-tools/iter8#1452 | |
# Only runs when charts have changed | |
# Lint Helm charts | |
# Use templates to create Kubernetes YAML files and lint them | |
on: | |
pull_request: | |
branches: | |
- master | |
paths: | |
- charts/** | |
jobs: | |
http: | |
name: Lint HTTP performance test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Get modified files in the charts/iter8 folder | |
id: modified-files | |
uses: tj-actions/changed-files@v35 | |
with: | |
files: charts/iter8 | |
- uses: azure/setup-helm@v3 | |
if: steps.modified-files.outputs.any_modified == 'true' | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Kubernetes YAML file | |
if: steps.modified-files.outputs.any_modified == 'true' | |
run: | | |
helm template charts/iter8 \ | |
--set tasks={http} \ | |
--set http.url=http://httpbin.default/get >> iter8.yaml | |
- name: Lint Kubernetes YAML file | |
if: steps.modified-files.outputs.any_modified == 'true' | |
uses: stackrox/kube-linter-action@v1 | |
with: | |
directory: iter8.yaml | |
grpc: | |
name: Lint gRPC performance test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Get modified files in the charts/iter8 folder | |
id: modified-files | |
uses: tj-actions/changed-files@v35 | |
with: | |
files: charts/iter8 | |
- uses: azure/setup-helm@v3 | |
if: steps.modified-files.outputs.any_modified == 'true' | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Kubernetes YAML file | |
if: steps.modified-files.outputs.any_modified == 'true' | |
run: | | |
helm template charts/iter8 \ | |
--set tasks={grpc} \ | |
--set grpc.host="hello.default:50051" \ | |
--set grpc.call="helloworld.Greeter.SayHello" \ | |
--set grpc.protoURL="https://raw.githubusercontent.com/grpc/grpc-go/master/examples/helloworld/helloworld/helloworld.proto" >> iter8.yaml | |
- name: Lint Kubernetes YAML file | |
if: steps.modified-files.outputs.any_modified == 'true' | |
uses: stackrox/kube-linter-action@v1 | |
with: | |
directory: iter8.yaml |