openshift-online / maestro

Maestro Service Repo
Apache License 2.0
11 stars 20 forks source link

e2e breaks due to oc version update #203

Closed morvencao closed 1 month ago

morvencao commented 1 month ago

the e2e testing in github action fails due to oc version update to 4.17.0 and template api version is not correct.

# make secrets-template
oc process \
    --filename="templates/secrets-template.yml" \
    --local="true" \
    --ignore-unknown-parameters="true" \
    --param="ENVIRONMENT=development" \
    --param="KLOG_V=4" \
         ...
> "templates/secrets-template.json"
error: failed to read input object (not a Template?): unable to decode "templates/secrets-template.yml": no kind "Template" is registered for version "v1" in scheme "k8s.io/kubectl/pkg/scheme/scheme.go:28"
make: *** [Makefile:267: secrets-template] Error 1

oc version:

# oc version
Client Version: 4.17.0
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3

/cc @clyang82 @skeeey