File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 5454- (Bugfix) Fix ArangoRoute Target switch in case of temporary error
5555- (Bugfix) Fix IntOrString Schema Type
5656- (Feature) Enable Operator Handler StackTraces
57+ - (Feature) Add spec validation for MLExtension
5758
5859## [ 1.2.43] ( https://github.com/arangodb/kube-arangodb/tree/1.2.43 ) (2024-10-14)
5960- (Feature) ArangoRoute CRD
Original file line number Diff line number Diff line change @@ -112,10 +112,17 @@ func (a *ArangoMLExtensionSpec) Validate() error {
112112
113113 return shared .WithErrors (shared .PrefixResourceErrors ("spec" ,
114114 shared .PrefixResourceErrors ("metadataService" , a .GetMetadataService ().Validate ()),
115- shared .PrefixResourceErrors ("storage" , shared .ValidateOptionalInterface (a .GetStorage ())),
115+ shared .PrefixResourceErrors ("storage" , func () error {
116+ if a .GetStorageType () == ArangoMLExtensionSpecStorageTypeExtension {
117+ return shared .ValidateRequiredInterface (a .Storage )
118+ }
119+
120+ return nil
121+ }()),
116122 shared .PrefixResourceErrors ("init" , a .GetInit ().Validate ()),
117123 shared .PrefixResourceErrors ("deployment" , a .GetDeployment ().Validate ()),
118124 shared .PrefixResourceErrors ("jobsTemplates" , a .GetJobsTemplates ().Validate ()),
119125 shared .PrefixResourceErrors ("integrationSidecar" , a .GetIntegrationSidecar ().Validate ()),
126+ shared .PrefixResourceErrors ("storageType" , shared .ValidateOptionalInterface (a .StorageType )),
120127 ))
121128}
You can’t perform that action at this time.
0 commit comments