Status apart, database fixed

Complete the manifest

Difficulty 2 of 3Not solved yet

Complete the CRD so that the operator writes status through its own endpoint, which users who edit the spec cannot touch, and so that spec.database cannot change once a Backup exists.

Your first answer is the one that counts. After a miss you can try again, or ask for the answer.

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: backups.ops.example.com
spec:
group: ops.example.com
scope: Namespaced
names:
plural: backups
singular: backup
kind: Backup
versions:
- name: v1
served: true
storage: true
subresources:
: {}
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
database:
type: string
maxLength: 63
:
- rule: "self == "
message: database is immutable
status:
type: object
properties:
phase:
type: string