You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is no check to ensure the values used for baseLang and secondaryLangs are valid. This causes that the failure happens while already deploying MAS on the cluster which is frustrating as the mas install has to be invoked again passing again all parameters.
Feature and motivation
Example of failure
TASK [ibm.mas_devops.suite_app_config : Configure application in workspace] **** fatal: [localhost]: FAILED! => changed=false msg: 'Failed to create object: b''{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"ManageWorkspace.apps.mas.ibm.com \\"instance-nft-wsnft\\" is invalid: spec.settings.languages.secondaryLangs[1]: Unsupported value: \\"PT\\": supported values: \\"AR\\", \\"CS\\", \\"DA\\", \\"DE\\", \\"EN\\", \\"ES\\", \\"FI\\", \\"FR\\", \\"HE\\", \\"HR\\", \\"HU\\", \\"IT\\", \\"JA\\", \\"KO\\", \\"NL\\", \\"NO\\", \\"PL\\", \\"PT-BR\\", \\"RU\\", \\"SK\\", \\"SL\\", \\"SV\\", \\"TR\\", \\"UK\\", \\"ZH-CN\\", \\"ZH-TW\\"","reason":"Invalid","details":{"name":"instance-nft-wsnft","group":"apps.mas.ibm.com","kind":"ManageWorkspace","causes":[{"reason":"FieldValueNotSupported","message":"Unsupported value: \\"PT\\": supported values: \\"AR\\", \\"CS\\", \\"DA\\", \\"DE\\", \\"EN\\", \\"ES\\", \\"FI\\", \\"FR\\", \\"HE\\", \\"HR\\", \\"HU\\", \\"IT\\", \\"JA\\", \\"KO\\", \\"NL\\", \\"NO\\", \\"PL\\", \\"PT-BR\\", \\"RU\\", \\"SK\\", \\"SL\\", \\"SV\\", \\"TR\\", \\"UK\\", \\"ZH-CN\\", \\"ZH-TW\\"","field":"spec.settings.languages.secondaryLangs[1]"}]},"code":422}\n''' reason: Unprocessable Entity
Usage example
During mas install the language var should be evaluated against valid values and ask for the user to reinsert in case of invalid value.
The text was updated successfully, but these errors were encountered: