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?
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"]policy-agent/api/v2beta1/policy_types.go
Line 103 in 142a5c5
Should perhaps have
omitemptylike the other optional fields?