update prometheus to v2.48.1 in prometheus chart (#144) #366
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: ci | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
# endpoint-controller-test: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Test | |
# run: | | |
# cd controllers/endpoint-controller | |
# bazel test --define version=dummy //... | |
charts-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.17.2' | |
- name: Install extra tooling | |
run: | | |
go install github.com/google/go-jsonnet/cmd/jsonnet@latest | |
go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest | |
go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.11.0 | |
- name: Render jsonnet rules for Netic OaaS chart | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
$GITHUB_WORKSPACE/charts/oaas-observability/scripts/update-rules.sh | |
- name: Render documentation | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
helm-docs | |
git update-index -q --ignore-submodules --refresh | |
if ! git diff-files --quiet --ignore-submodules -- ; then | |
echo Generating documentation caused a change - did you forget to run 'helm-docs' before commit? | |
exit 1 | |
fi | |
- name: Set up Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.12.1 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Set up chart-testing | |
uses: helm/chart-testing-action@v2.6.0 | |
- name: Setup polaris | |
uses: fairwindsops/polaris/.github/actions/setup-polaris@master | |
with: | |
version: 8.2.4 | |
- name: Run chart-testing (lint) | |
run: | | |
export PATH=$GITHUB_WORKSPACE/polaris:$PATH | |
ct lint --config ct.yaml | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
run: | | |
changed=$(ct list-changed --target-branch main) | |
if [[ -n "$changed" ]]; then | |
echo "changed=true" >> $GITHUB_OUTPUT | |
fi | |
- name: Create kind cluster | |
uses: helm/kind-action@v1.7.0 | |
if: steps.list-changed.outputs.changed == 'true' | |
- name: Install cert-manager | |
run: | | |
helm repo add jetstack https://charts.jetstack.io | |
helm repo update | |
helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version v1.6.1 --set installCRDs=true | |
if: steps.list-changed.outputs.changed == 'true' | |
- name: Install priority class | |
run: | | |
cat <<EOF | kubectl apply -f - | |
apiVersion: scheduling.k8s.io/v1 | |
kind: PriorityClass | |
metadata: | |
name: secure-cloud-stack-technical-operations-critical | |
value: 500000000 | |
preemptionPolicy: "PreemptLowerPriority" | |
globalDefault: false | |
description: "Secure Cloud Stack Technical Operations Critical Units" | |
EOF | |
if: steps.list-changed.outputs.changed == 'true' | |
- name: Run chart-testing (install) | |
run: ct install --config ct.yaml |