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:
parent
1d0232ffc6
commit
0a68fe3005
3 changed files with 26 additions and 9 deletions
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue