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

unknown field "includeTemplates" #267

Open
Eric-zch opened this issue May 31, 2024 · 1 comment
Open

unknown field "includeTemplates" #267

Eric-zch opened this issue May 31, 2024 · 1 comment

Comments

@Eric-zch
Copy link

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"
@benjaminjb
Copy link
Contributor

benjaminjb commented Jun 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants