Add support for YAML anchors

Bug #1895614 reported by Haw Loeung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Content Cache Charm
Fix Released
Wishlist
Haw Loeung

Bug Description

Hi,

Per YAML spec[1], it supports anchors and references to those. This allows us to reduce duplication in certain things such as specifying backends (e.g. for multiple sites sharing the same set of K8s backends). We should support this, example:

| config: &TEST1 mytestvalue1
| config: &TEST2 mytestvalue2
|
| test:
| test1: *TEST1
| test2: *TEST2

So the charm should be able to support sites_yaml ignoring "config" and the rest is just straight YAML.

[1]https://yaml.org/spec/1.2/spec.html

Related branches

Haw Loeung (hloeung)
Changed in content-cache-charm:
assignee: nobody → Haw Loeung (hloeung)
status: New → In Progress
importance: Undecided → Wishlist
Haw Loeung (hloeung)
Changed in content-cache-charm:
status: In Progress → Fix Committed
Haw Loeung (hloeung)
Changed in content-cache-charm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.