Skip to content

Commit

Permalink
Set maxscale Field Optional (#1389)
Browse files Browse the repository at this point in the history
Signed-off-by: SK Ali Arman <arman@appscode.com>
  • Loading branch information
sheikh-arman authored Jan 30, 2025
1 parent e5366d5 commit e37dc98
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions apis/catalog/v1alpha1/mariadb_version_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,12 @@ func (m MariaDBVersion) ValidateSpecs() error {
if m.Spec.Version == "" ||
m.Spec.DB.Image == "" ||
m.Spec.Exporter.Image == "" ||
m.Spec.Maxscale.Image == "" ||
m.Spec.InitContainer.Image == "" ||
m.Spec.Coordinator.Image == "" {
return fmt.Errorf(`atleast one of the following specs is not set for mariadbversion "%v":
spec.version,
spec.db.image,
spec.exporter.image,
spec.maxscale.image,
spec.initContainer.image,
spec.coordinator.image.`, m.Name)
}
Expand Down
1 change: 1 addition & 0 deletions apis/catalog/v1alpha1/mariadb_version_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type MariaDBVersionSpec struct {
// Database Image
DB MariaDBVersionDatabase `json:"db"`
// Maxscale Image
// +optional
Maxscale MariaDBVersionMaxscale `json:"maxscale"`
// Exporter Image
Exporter MariaDBVersionExporter `json:"exporter"`
Expand Down
2 changes: 1 addition & 1 deletion apis/catalog/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crds/catalog.kubedb.com_mariadbversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ spec:
- db
- exporter
- initContainer
- maxscale
- podSecurityPolicies
- version
type: object
Expand Down

0 comments on commit e37dc98

Please sign in to comment.