Skip to content

A required field with a default value in CRD is being forced to be informed #996

@mfilipe

Description

@mfilipe

I have a situation with two projects: (1) use Krane and (2) use Helm. Both projects are deploying PerconaPGCluster that has a required field called querySource in its CRD, and this field is an enum with a default value.

When I use Helm to deploy PerconaPGCluster without setting querySource, the deployment happens, and querySource is set with the default value. Using Krane, a validation error happens (error validating data: ValidationError(PerconaPGCluster.spec.pmm): missing required field "querySource") and the deployment doesn't happen.

Why is that behavior happening in Krane? It should accept a deployment without querySource like Helm, no?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions