crossplane / crossplane/crossplane-tools

Generate webhook functions for fields with `+immutable` comment tag

Open
#40 2 comments 5 reactions 0 assignees View on GitHub
enhancement wontfix
Dominant language
Go
Stars
37
Forks
38
PR merge metrics
No merged PRs in 30d

Description

### What problem are you facing?

Webhooks are available in Crossplane now and immutability check on `UPDATE` action is implemented [manually](https://github.com/crossplane/crossplane/blob/736e72a/apis/apiextensions/v1/xrd_webhooks.go#L49) for each field.

### How could Crossplane help solve your problem?

Similar to reference resolver generation, we can have a generator in crossplane-tools that will scan the fields for `// +immutable` tag and generate the logic automatically.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.