auto-generate configuration CRD (#3102)

* auto-generate configuration CRD
* make all subconfig optional
* remove field enable crd validation
* update field descriptions which use proxy types
This commit is contained in:
Felix Kunde
2026-06-22 10:44:46 +02:00
committed by GitHub
parent e4e686588e
commit a664816c09
20 changed files with 2662 additions and 2249 deletions
+5 -1
View File
@@ -103,7 +103,11 @@ func (c *Controller) createPostgresCRD() error {
}
func (c *Controller) createConfigurationCRD() error {
return c.createOperatorCRD(acidv1.ConfigurationCRD(c.opConfig.CRDCategories))
crd, err := acidv1.OperatorConfigurationCRD(c.opConfig.CRDCategories)
if err != nil {
return fmt.Errorf("could not create OperatorConfiguration CRD object: %v", err)
}
return c.createOperatorCRD(crd)
}
func readDecodedRole(s string) (*spec.PgUser, error) {