refactor: relation naming - #115
Merged
Merged
Conversation
The relation names weren't ideal in the grand scheme of usage in the controller snap. Instead, if we naming the correctly it should allow us to add better versioning in the future.
manadart
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The relation names weren't ideal in the grand scheme of usage in the controller snap. Instead, if we naming the correctly it should allow us to add better versioning in the future.
Setup Tempo
Build the charm with
charmcraft packTo make this proper, we need a COS-lite or something similar. I used COS-lite on microk8s and then deployed tempo in the same model.
Once there is a COS-lite with tempo we need to offer the
tempo:tracingrelation.Controller charm setup
To make this "simple" we can only deploy a local controller charm using IAAS controllers. So we need to bootstrap a IAAS controller (again for simplicity I'm using LXD).
$ juju bootstrap lxd test --bootstrap-base=ubuntu@24.04 --controller-charm-path=./juju-controller_ubuntu@24.04-amd64.charm $ juju switch controller $ juju consume cos:admin/lite.tempo $ juju integrate controller:charm-tracing tempo:tracingVerify the endpoints are consumed
Verify that the information is set as vars:
You might have to trigger a hook invocation with something like
juju config -m controller controller identity-provider-url="foo".🎉