-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support dependency outputs #525
Conversation
b369938
to
3fd7d35
Compare
@@ -43,7 +43,7 @@ install: | |||
#externalDatabase.database: "{{ bundle.dependencies.mysql.parameters.database-name }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have another issue to address bundle.dependencies.DEP.parameters.PARAM
#533
if err != nil { | ||
return errors.Wrap(err, "unable to instantiate driver") | ||
} | ||
i := action.Uninstall{ | ||
Driver: driver, | ||
Driver: driver, | ||
OperationConfig: args.ApplyFiles(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change here is part of a PR to cnab-go (see cnabio/cnab-go#112). In the meantime, we'll use my fork.
pkg/config/runtime-manifest.go
Outdated
|
||
if bun.Outputs == nil || m.Action == ActionUninstall { | ||
// uninstalls are done backwards, so we don't have outputs available from dependencies | ||
// TODO: validate that they weren't trying to use them at build time so they don't find out at uninstall time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #532
pkg/config/runtime-manifest.go
Outdated
return nil, err | ||
bun["dependencies"] = deps | ||
for alias, bun := range m.bundles { | ||
// TODO: Do we still want to allow resolving against bundle.dependencies.ALIAS.parameters.NAME and credentials? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We aren't going to support bundle.dependencies.DEP.credentials anymore. I will come back in another PR and remove that from the docs and examples.
481b2b3
to
b63d918
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 LGTM!
* Inject the output values for each dependency into /cnab/app/dependencies/SLUG/outputs * Inject the bundle.json for each dependency into /cnab/app/dependencies/SLUG/bundle.json * Inject bundle.dependencies.DEP.outputs.OUTPUT
Rebased |
/cnab/app/dependencies/ALIAS/outputs
/cnab/app/dependencies/ALIAS/bundle.json
bundle.dependencies.ALIAS.outputs.OUTPUT
Closes #432