Skip to content
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

Separate relations into separate yaml document #156

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

rafalop
Copy link
Contributor

@rafalop rafalop commented Nov 21, 2023

To adjust to new juju 3.2 behaviour that does not
allow relations referencing overlay applications
in the base bundle.

Ref: https://bugs.launchpad.net/juju/+bug/2041785

Resolves: #149

@rafalop
Copy link
Contributor Author

rafalop commented Nov 23, 2023

FYI this change is compatible with older juju versions (ie 2.x).

Copy link
Collaborator

@nicolasbock nicolasbock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat that the fix is so simple 😄

tools/juju-bundle-applications.py Outdated Show resolved Hide resolved
@nicolasbock nicolasbock force-pushed the fix-juju3-relations branch 3 times, most recently from 3ec5687 to 6fe376b Compare November 28, 2023 16:54
To adjust to new juju 3.2 behaviour that does not allow relations
referencing overlay applications in the base bundle.

Ref: https://bugs.launchpad.net/juju/+bug/2041785

Resolves: canonical#149
Co-authored-by: Nicolas Bock <[email protected]>
@nicolasbock nicolasbock merged commit 7a732e1 into canonical:main Nov 28, 2023
2 checks passed
@lathiat
Copy link
Contributor

lathiat commented Jun 14, 2024

I only just caught up on this one and just wanted to note that using --- to start a new yaml document within the same file is a fantastic hack.

I had solved this in my local branch by deploying an overlay/blank.yaml as the base bundle, and then passing in the real base bundle (e.g. openstack.yaml) as the first overlay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cannot deploy generated bundle in juju 3.x
3 participants