Skip to content

Serializing PolicySpec includes standards: null and cannot be kubectl applied #68

Open
@foot

Description

@foot

Error from flux:

Policy/weave.policies.tenancy.dev-team-allowed-clusters dry-run failed, reason: Invalid, error: Policy.pac.weave.works "weave.policies.tenancy.dev-team-allowed-clusters" is invalid: [spec.standards: Invalid value: "null": spec.standards in body must be of type array: "null", spec.targets.labels: Invalid value: "null": spec.targets.labels in body must be of type array: "null"]

Standards []PolicyStandard `json:"standards"`

Should perhaps have omitempty like the other optional fields?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions