@@ -29,17 +29,16 @@ type CinderTemplate struct {
2929
3030 // +kubebuilder:validation:Optional
3131 // +kubebuilder:default=cinder
32- // DatabaseUser - optional username used for cinder DB, defaults to cinder
33- // TODO: -> implement needs work in mariadb-operator, right now only cinder
34- DatabaseUser string `json:"databaseUser"`
32+ // DatabaseAccount - optional MariaDBAccount used for cinder DB, defaults to cinder
33+ DatabaseAccount string `json:"databaseAccount"`
3534
3635 // +kubebuilder:validation:Required
37- // Secret containing OpenStack password information for CinderDatabasePassword
36+ // Secret containing OpenStack password information
3837 Secret string `json:"secret"`
3938
4039 // +kubebuilder:validation:Optional
41- // +kubebuilder:default={database: CinderDatabasePassword, service: CinderPassword}
42- // PasswordSelectors - Selectors to identify the DB and ServiceUser password from the Secret
40+ // +kubebuilder:default={service: CinderPassword}
41+ // PasswordSelectors - Selectors to identify the ServiceUser password from the Secret
4342 PasswordSelectors PasswordSelector `json:"passwordSelectors"`
4443}
4544
@@ -79,11 +78,6 @@ type CinderServiceTemplate struct {
7978
8079// PasswordSelector to identify the DB and AdminUser password from the Secret
8180type PasswordSelector struct {
82- // +kubebuilder:validation:Optional
83- // +kubebuilder:default="CinderDatabasePassword"
84- // Database - Selector to get the cinder database user password from the Secret
85- // TODO: not used, need change in mariadb-operator
86- Database string `json:"database"`
8781 // +kubebuilder:validation:Optional
8882 // +kubebuilder:default="CinderPassword"
8983 // Service - Selector to get the cinder service password from the Secret
0 commit comments