scylla-operator icon indicating copy to clipboard operation
scylla-operator copied to clipboard

CRDs are missing embedded metadata

Open tnozicka opened this issue 2 years ago • 3 comments

Describe the bug Generated CRDs are missing embedded metadata. One example is

$ kubectl explain scylladbmonitoring.spec.components.prometheus.storage.volumeClaimTemplate.metadata
KIND:     ScyllaDBMonitoring
VERSION:  scylla.scylladb.com/v1alpha1

DESCRIPTION:
     May contain labels and annotations that will be copied into the PVC when
     creating it. No other fields are allowed and will be rejected during
     validation.

     May contain labels and annotations that will be copied into the PVC when
     creating it. No other fields are allowed and will be rejected during
     validation.
$ 

another is this strict validation failure with kube v1.27.1 in or e2e suite

  [FAILED] Unexpected error:
      <*errors.StatusError | 0xc00041e820>: 
      ScyllaDBMonitoring in version "v1alpha1" cannot be handled as a ScyllaDBMonitoring: strict decoding error: unknown field "spec.components.prometheus.storage.volumeClaimTemplate.metadata.creationTimestamp"
      {
          ErrStatus: {
              TypeMeta: {Kind: "", APIVersion: ""},
              ListMeta: {
                  SelfLink: "",
                  ResourceVersion: "",
                  Continue: "",
                  RemainingItemCount: nil,
              },
              Status: "Failure",
              Message: "ScyllaDBMonitoring in version \"v1alpha1\" cannot be handled as a ScyllaDBMonitoring: strict decoding error: unknown field \"spec.components.prometheus.storage.volumeClaimTemplate.metadata.creationTimestamp\"",
              Reason: "BadRequest",
              Details: nil,
              Code: 400,
          },
      }
  occurred
  In [It] at: github.com/scylladb/scylla-operator/test/e2e/set/scylladbmonitoring/scylladbmonitoring.go:69 @ 05/15/23 08:30:48.073

tnozicka avatar May 15 '23 11:05 tnozicka