Skip to content

crd: spec.preserveUnknownFields: Invalid value: true: must be false ...

I noticed these messages and thought they might be relevant:

$ kubectl get crd varnishconfigs.ingress.varnish-cache.org -o yaml
...
status:
  acceptedNames:
    kind: VarnishConfig
    listKind: VarnishConfigList
    plural: varnishconfigs
    shortNames:
    - vcfg
    singular: varnishconfig
  conditions:
  - lastTransitionTime: "2020-05-26T13:03:00Z"
    message: '[spec.preserveUnknownFields: Invalid value: true: must be false, spec.versions[0].schema.openAPIV3Schema.properties[spec].type:
      Required value: must not be empty for specified object fields, spec.versions[0].schema.openAPIV3Schema.type:
      Required value: must not be empty at the root]'
    reason: Violations
    status: "True"
    type: NonStructuralSchema
...

same for templateconfigs:

$ kubectl get crd templateconfigs.ingress.varnish-cache.org -o yaml
...
status:
  acceptedNames:
    kind: TemplateConfig
    listKind: TemplateConfigList
    plural: templateconfigs
    shortNames:
    - tmplcfg
    - tmplcfgs
    singular: templateconfig
  conditions:
  - lastTransitionTime: "2021-05-23T14:32:34Z"
    message: no conflicts found
    reason: NoConflicts
    status: "True"
    type: NamesAccepted
  - lastTransitionTime: "2021-05-23T14:32:34Z"
    message: the initial names have been accepted
    reason: InitialNamesAccepted
    status: "True"
    type: Established
  - lastTransitionTime: "2021-05-23T14:32:34Z"
    message: '[spec.preserveUnknownFields: Invalid value: true: must be false, spec.versions[0].schema.openAPIV3Schema.properties[spec].type:
      Required value: must not be empty for specified object fields, spec.versions[0].schema.openAPIV3Schema.type:
      Required value: must not be empty at the root]'
    reason: Violations
    status: "True"
    type: NonStructuralSchema
...