unknown field "includeTemplates"
This is related to configuration in file https://github.com/CrunchyData/postgres-operator-examples/blob/main/kustomize/install/default/kustomization.yaml
I tried to apply it in my openshift with version 4.14.21, I got error message: error: json: unknown field "includeTemplates"
oc apply --server-side -k kustomize/install/default
error: json: unknown field "includeTemplates"
Hey @Eric-zch, sorry you're running into this. I have a hunch, but just to double-check, what's the output you get for oc version --client?
I haven't updated my oc in a while, so here's what I get if I just use what's on my path:
> oc version --client
Client Version: 4.10.17
> oc kustomize ../crunchydata/pgo-examples-june/kustomize/install/default
error: json: unknown field "includeTemplates"
But when I download the oc for 4.14, I get
> ./oc version --client
Client Version: 4.14.27
Kustomize Version: v5.0.1
And the oc kustomize command produces the expected YAML.
We have a section in our docs about using older kubectl or kustomize, but we don't talk about oc there; if this solves the problem for you, we might want to add a line to the docs about that.