mirror of
https://github.com/status-im/consul.git
synced 2025-02-02 08:56:43 +00:00
559c61e6b6
* 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>
26 lines
323 B
HCL
26 lines
323 B
HCL
ID {
|
|
Type = gvk("mesh.v1alpha1.Upstreams")
|
|
Name = "api"
|
|
}
|
|
|
|
Data {
|
|
Workloads {
|
|
Prefixes = ["api"]
|
|
}
|
|
|
|
Upstreams = [
|
|
{
|
|
DestinationRef = {
|
|
Type = gvk("catalog.v1alpha1.Service")
|
|
Name = "db"
|
|
}
|
|
|
|
DestinationPort = "tcp"
|
|
|
|
IpPort = {
|
|
Port = 1234
|
|
}
|
|
}
|
|
]
|
|
}
|