Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions references/generator-yaml-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ deletable:

If the resource is NOT in an allowed state, the delete is requeued.

### Spec CEL Validations

Adds kubebuilder `XValidation` markers to the generated resource Spec:

```yaml
spec_validations:
- rule: "!has(self.importFrom) || !has(self.certificate)"
message: "importFrom and certificate are mutually exclusive"
```

Both `rule` and `message` are required. Rules use Kubernetes CEL syntax and
are enforced by CRD admission.

### Tags

```yaml
Expand Down Expand Up @@ -215,6 +228,7 @@ operations:
| `is_arn` | bool | Override default ARN field detection |
| `is_attribute` | bool | Field is part of an Attributes map (SNS/SQS pattern) |
| `is_secret` | bool | Field becomes a SecretKeyReference |
| `is_secret_reference` | bool | Field becomes a name/namespace-only SecretReference when the controller owns the data-key convention |

### Immutability

Expand Down