Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kubernetes 为什么运营商courier verify抱怨版本不匹配?_Kubernetes - Fatal编程技术网

Kubernetes 为什么运营商courier verify抱怨版本不匹配?

Kubernetes 为什么运营商courier verify抱怨版本不匹配?,kubernetes,Kubernetes,我正在尝试使用operator Framework的operator sdk验证我为Kubernetes操作符构建的CSV。在执行此操作时,我遇到了以下错误 来自操作员信使验证的此错误是什么意思 ERROR: CRD.spec.version does not match CSV.spec.crd.owned.version 如果您的捆绑包中有一个CSV中未提及的CRD,但其spec.version与CSV不同,则可能会发生这种情况 否则,您的CSV可能如下所示: apiVersion: op

我正在尝试使用operator Framework的operator sdk验证我为Kubernetes操作符构建的CSV。在执行此操作时,我遇到了以下错误

来自
操作员信使验证的此错误是什么意思

ERROR: CRD.spec.version does not match CSV.spec.crd.owned.version

如果您的捆绑包中有一个CSV中未提及的CRD,但其
spec.version
与CSV不同,则可能会发生这种情况

否则,您的CSV可能如下所示:

apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
spec:
  customeresourcedefinitions:
    owned:
    - name: something
    version: v1alpha1  <=================

如果您的捆绑包中有一个CSV中未提及的CRD,但其
spec.version
与CSV不同,则可能会发生这种情况

否则,您的CSV可能如下所示:

apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
spec:
  customeresourcedefinitions:
    owned:
    - name: something
    version: v1alpha1  <=================
    CustomResourceDefinition.apiextensions.k8s.io
    "something.mycompany.com" is invalid: spec.version:
    Invalid value: "v1alpha2": must match the first version in spec.versions