Poonam Jadhav 559c61e6b6
Net-2712/resource hcl parsing (#18250)
* Initial protohcl implementation

Co-authored-by: Matt Keeler <mkeeler@users.noreply.github.com>
Co-authored-by: Daniel Upton <daniel@floppy.co>

* resourcehcl: implement resource decoding on top of protohcl

Co-authored-by: Daniel Upton <daniel@floppy.co>

* fix: resolve ci failures

* test: add additional unmarshalling tests

* refactor: update function test to clean protohcl package imports

---------

Co-authored-by: Matt Keeler <mkeeler@users.noreply.github.com>
Co-authored-by: Daniel Upton <daniel@floppy.co>
2023-08-11 15:52:51 -04:00

34 lines
433 B
HCL

ID = {
Type = {
Group = "mesh"
GroupVersion = "v1alpha1"
Kind = "Upstreams"
}
}
Data = {
Workloads = {
Prefixes = ["api"]
}
Upstreams = [
{
DestinationRef = {
Type = {
Group = "catalog"
GroupVersion = "v1alpha1"
Kind = "Service"
}
Name = "db"
}
DestinationPort = "tcp"
IpPort = {
Port = 1234
}
}
]
}