Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-4065

Improve config validation for ArgoCD Plugin

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      If the "argocd" configuration property is missing when the Argo CD plugin is enabled, the error below is printed in the backstage Pod logs.

      This error message might seem innocuous, however it's confusing if someone believes they have configured the plugin correctly. In my case, I had placed the "argocd" key under the "app" in my app-config.yaml, i.e under the app.argocd key. As a result, I assumed my config was found, but the URL was malformed, or that the $env substitution was not working. 

      In my case, the correct error is "The 'argocd' config property was not found" or similar. The URL error initially lead me to believe my "app.argocd" location was correct.

      ForwardedError: Plugin 'app' startup failed; caused by Error: Invalid app bundle schema. If this error is unexpected you need to run `yarn build` in the app. If that doesn't help you should make sure your config schema is correct and rebuild the app bundle again. Caused by the following schema error, Error: Config validation failed, Config must have required property 'url' { missingProperty=url } at /argocd/appLocatorMethods/0/instances/0; Config must have required property 'url' { missingProperty=url } at /argocd/appLocatorMethods/0/instances/1

              Unassigned Unassigned
              eshortis Evan Shortiss
              RHIDP - Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: