-
Bug
-
Resolution: Done
-
Major
-
None
-
AMQ 7.7.0.OPR.2.GA, AMQ 7.8.0.dev
-
None
-
False
-
False
-
?
-
-
Documented as Resolved Issue
-
Verified in a release
-
-
I am not able to use pageSizeBytes in address settings in the CR.
CRD says this property must be a integer, but the CRD description says it can be specified as a string using K,Mb,Gb notation.
From CRD:
pageSizeBytes: description: >- The page size in bytes to use for an address. Supports byte notation like K, Mb, GB, etc. type: integer
If I try to use a string notation, like 512K in the CR, it is no applied and exited with the log message:
The ActiveMQArtemis "ex-aao" is invalid: spec.addressSettings.addressSetting.pageSizeBytes: Invalid value: "string": spec.addressSettings.addressSetting.pageSizeBytes in body must be of type integer: "string"
If I use a integer value like 512000, CR is applied by operator fails to create an broker instance with the and log the error:
E1023 13:06:58.544030 1 reflector.go:134] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:126: Failed to list *v2alpha3.ActiveMQArtemis: v2alpha3.ActiveMQArtemisList.Items: []v2alpha3.ActiveMQArtemis: v2alpha3.ActiveMQArtemis.Spec: v2alpha3.ActiveMQArtemisSpec.AddressSettings: v2alpha3.AddressSettingsType.AddressSetting: []v2alpha3.AddressSettingType: v2alpha3.AddressSettingType.PageSizeBytes: ReadString: expects " or n, but found 5, error found in #10 byte of ...|zeBytes":512000},{"a|..., bigger context ...|ddressDrop","maxSizeBytes":"1Mb","pageSizeBytes":512000},{"addressFullPolicy":"FAIL","match":"addres|...