Closed mkuziemko closed 2 years ago
I saw you branch with manifests changes, unfortunately it doesn't cover the whole story. Here is a valid fix to our manifests: https://github.com/capactio/hub-manifests/compare/main...mszostok:test-706?expand=1
I tested that with your change, and unfortunately I got such error:
Cannot render given action: while rendering Action: while adding TypeInstances to graph: while resolving backend ID for "mattermost-install-install-db-postgres-install-helm-install-helm-release": cannot find backend storage for specified "helm-release-storage" alias (will retry - 13/15)
Please let me know if you need more info about my setup.
Good point :+1:
We don't need the alias for these manifests as we don't use it in the main workflow. I updated my fork.
The above error was caused by:
typeInstancesBackends, err := r.policyEnforcedCli.ListTypeInstancesBackendsBasedOnPolicy(ctx, rootimpl.Rule, rootimpl.Revision)
In the rendering we are checking if we have:
if step.CapactAction != nil {
based on which we are searching implementation and rules but for the looking of the backends, we passed always the ,,root" implementation which does not work for nested workflows.
Thus, when you removed the aliases from the Mattermost manifests, it couldn't resolve the backend.
Anyway, I verified it one more time installing Postgres and then the Mattermost, and it works.
Description
Changes proposed in this pull request:
There was incorrect backend mapping - we find it by the name of output Type Instance relation which is ok where there is no nested workflow. In the nested workflow, we need to find it by the name of the artifact.
Testing
DISABLE_MONITORING_INSTALLATION=true USE_TEST_SETUP=true make dev-cluster
Related issue(s)