Skip to content

Commit c83dcbb

Browse files
authored
Merge pull request #18 from jordlay/jl/add-null-to-common-issues
added null in cgvs to common issues
2 parents a76d93e + 518fc44 commit c83dcbb

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
40.2 KB
Loading

articles/operator-service-manager/troubleshoot-cli-common-issues.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,25 @@ There are multiple solutions available.
170170
- Edit your helm chart, or pass in the image paths in values.yaml, and set the image paths to match the repository structure in your source registry.
171171
- Upload the images to your source registry such that the concatenation of "image_sources" in the `cnf-input.jsonc` file and the image path from the helm chart matches the uploaded location in the source registry.
172172
- The AOSM CLI stores metadata for the images it discovers in `cnf-cli-output/artifacts/artifacts.json`. The path the AOSM CLI searches in the source registry is `<registry_name>/<registry_namespace>/<artifact_name>/<artifact_version>`. You can manually edit this file so that the values match the image's location in your source ACR.
173+
174+
### CGVs don't match CGS when parameter has null type
175+
176+
Currently, AOSM doesn't support `null` as a default value in deployParameters schema, which means that the default value `null` isn't allowed in Configuration Group Schemas either. To work around this issue, the AOSM CLI sets the default value for parameters of type null to be the string `"null"`, which allows an nfdv to publish successfully.
177+
178+
When using the portal to create CGVs, your parameter autofills to have `"null"` as its value. If you don't change this value, the Portal shows an error message, saying: "New Configuration Group Value doesn't match the schema - please edit the values.".
179+
180+
![Screenshot of the portal where there is an error message because the CGVs do not match the CGS](media/cgv_error.png)
181+
182+
To fix this error, change `"null"` to `null` in the CGVs.
183+
184+
For example, originally we have the value `"null"`:
185+
186+
```json
187+
"serviceAccount_name": "null",
188+
```
189+
Which must be changed to the value `null`.
190+
191+
```json
192+
"serviceAccount_name": null,
193+
194+

0 commit comments

Comments
 (0)