This message was deleted.
# kubernetes
s
This message was deleted.
a
I've grabbed the k8s resource with
k8s.core.v1.Service.get
- just trying to figure out how best to use
$myservice.metadata.annotations.apply
to extract what I need
g
Something like this should do the trick:
Copy code
export const neg_status = svc.metadata.annotations.apply(x => {
    const status = x['<http://cloud.google.com/neg-status|cloud.google.com/neg-status>'];
    const obj = JSON.parse(status);
    return obj["network_endpoint_groups"]["443"]
})

const neg = gcp.compute.getNetworkEndpointGroup({
    name: neg_status,
    zone: "us-east1-d"
})