Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CASM-3552: Use new api checker for this repo #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
26 changes: 26 additions & 0 deletions .github/workflows/k8s-api-checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run Api Checker
on:
pull_request:
branches:
- main
- master
workflow_dispatch:
jobs:
k8s-api-checker:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check for removed and deprecated api usage
uses: Cray-HPE/.github/actions/csm-k8s-api-checker@v0-csm-k8s-api-checker
with:
prerequisite: |
helm dependency build charts/cray-certmanager
helm template --generate-name --dry-run charts/cray-certmanager > cray-certmanager.yaml
helm template --generate-name --dry-run charts/cray-certmanager-init --set Values.namespace.istioInjection="enabled" > cray-certmanager-init.yaml
helm template --generate-name --dry-run charts/cray-certmanager-issuers > cray-certmanager-issuers.yaml
sed -i.orig -e 's/release-name-//g' cray-certmanager.yaml cray-certmanager-init.yaml cray-certmanager-issuers.yaml
rm *.orig