Frankkkkk / pykorm

A python 🐍 kubernetes ☸️ ORM πŸš€. Very useful when writing operators for your CRDs with Kopf.
MIT License
73 stars 4 forks source link

Allow the modification of readonly fields #15

Open Frankkkkk opened 4 years ago

Frankkkkk commented 4 years ago

Read only fields were meant to be read only. However sometimes these fields must be set (in the case of an operator managing these resources for example).

We should add a mean to edit these fields with a context manager for example:

with pykorm.fields.UnlockReadOnly:
  obj.read_only = 42