# The following patch adds `anyOf` OpenAPI
# validation for the configuration source of APIcast
# to the APIcast CRD due to at the moment
# of writing this (2020-06-22) kubebuilder
# does not support `anyOf` statement OpenAPI validation
- op: add
  path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/anyOf
  value:
    - required: ["adminPortalCredentialsRef"]
    - required: ["embeddedConfigurationSecretRef"]
