When a user exports a spam filter CRD that was created by the Dash0 Kubernetes operator and feeds it back into the CLI via spam-filters create -f, spam-filters update -f, or apply -f, the CLI rejects the document:
unsupported spam filter apiVersion "operator.dash0.com/v1alpha1" (supported: "v1alpha1", "v1alpha2")
The operator stamps apiVersion: operator.dash0.com/v1alpha1 on its CRD resources (standard Kubernetes TypeMeta behavior). The CLI's DetectSpamFilterAPIVersion compares the raw string against bare enum values (v1alpha1, v1alpha2) and fails on the group-prefixed form.
The same issue applies to the canonical dash0.com/v1alpha1 prefix that the server will emit once apiVersion canonicalization ships.
Affected commands:
dash0 spam-filters create -f <file>
dash0 spam-filters update -f <file>
dash0 apply -f <file> (when the file contains a spam filter document)
When a user exports a spam filter CRD that was created by the Dash0 Kubernetes operator and feeds it back into the CLI via
spam-filters create -f,spam-filters update -f, orapply -f, the CLI rejects the document:The operator stamps
apiVersion: operator.dash0.com/v1alpha1on its CRD resources (standard KubernetesTypeMetabehavior). The CLI'sDetectSpamFilterAPIVersioncompares the raw string against bare enum values (v1alpha1,v1alpha2) and fails on the group-prefixed form.The same issue applies to the canonical
dash0.com/v1alpha1prefix that the server will emit once apiVersion canonicalization ships.Affected commands:
dash0 spam-filters create -f <file>dash0 spam-filters update -f <file>dash0 apply -f <file>(when the file contains a spam filter document)