mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-02 12:22:57 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user