Skip to content
This repository was archived by the owner on Sep 21, 2020. It is now read-only.

error validating "memcachedoperator.0.0.1.csv.yaml"; unknown field "installModes" and unknown field "provider" #45

Closed
sjbylo opened this issue Aug 26, 2019 · 3 comments
Assignees
Labels
triage/not-reproducible Indicates an issue can not be reproduced as described. triage/support Indicates an issue that is a support question.

Comments

@sjbylo
Copy link

sjbylo commented Aug 26, 2019

I'm seeing this error. If I use --validate=false does not help.

$ kubectl apply -f memcachedoperator.0.0.1.csv.yaml
error: error validating "memcachedoperator.0.0.1.csv.yaml": error validating data: [ValidationError(ClusterServiceVersion.spec): unknown field "installModes" in com.coreos.operators.v1alpha1.ClusterServiceVersion.spec, ValidationError(ClusterServiceVersion.spec): unknown field "provider" in com.coreos.operators.v1alpha1.ClusterServiceVersion.spec]; if you choose to ignore these errors, turn validation off with --validate=false

@jmrodri jmrodri added the kind/bug Categorizes issue or PR as related to a bug. label Aug 30, 2019
@joelanford
Copy link
Member

joelanford commented Sep 3, 2019

@sjbylo This is sounds like an issue with your CSV or OLM installation. Can you provide more details? It would be helpful to know the version of OLM and/or the OpenShift cluster and the contents of memcachedoperator.0.0.1.csv.yaml. You may need re-create this issue in the OLM repository since OLM provides the API and validations for CSVs.

/cc @ecordell

Did you use operator-sdk olm-catalog gen-csv to generate the CSV? If so, it would be also be helpful to know the output of operator-sdk version and the steps we could follow to reproduce the issue.

EDIT: Sorry @sjbylo, just realized this issue is in the getting started repo and that you're referring to the CSV that's already present in the repo. Let me try to reproduce.

@joelanford joelanford self-assigned this Sep 3, 2019
@joelanford
Copy link
Member

@sjbylo I am not able to reproduce the issue with the latest version of OLM. What version of OLM and/or OpenShift are you running?

@joelanford joelanford added triage/not-reproducible Indicates an issue can not be reproduced as described. triage/support Indicates an issue that is a support question. and removed kind/bug Categorizes issue or PR as related to a bug. labels Sep 3, 2019
@camilamacedo86
Copy link
Contributor

HI @joelanford,

I understanding that it was faced because of the example file used was outdated. However, since the OLM steps in the Getting Started as its example was updated in the #57 then, I am closing this task. However, please, feel free to re-open if you see that still required.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage/not-reproducible Indicates an issue can not be reproduced as described. triage/support Indicates an issue that is a support question.
Projects
None yet
Development

No branches or pull requests

4 participants