Makefile: implement helper to process OpenShift templates

just for manual checks if the template syntax is fine
and align with the github action to use the same code
This commit is contained in:
Florian Schüller 2024-04-24 16:43:13 +02:00 committed by Florian Schüller
parent 1d0232ffc6
commit 0a68fe3005
3 changed files with 26 additions and 9 deletions

View file

@ -276,15 +276,7 @@ jobs:
- uses: redhat-actions/oc-installer@v1
- name: Process template
run: |
mkdir processed-templates
oc process -f templates/openshift/composer.yml \
-p IMAGE_TAG=image_tag \
--local \
-o yaml > processed-templates/composer.yml
oc process -f templates/openshift/maintenance.yml \
-p IMAGE_TAG=image_tag \
--local \
-o yaml > processed-templates/maintenance.yml
make process-templates
- uses: stackrox/kube-linter-action@v1.0.5
with: