Open aviweit opened 2 weeks ago
I would like to ask what is the purpose of additionalAddress
in method privateServiceHandler.createWithNetwork()
?
Thanks.
Hi Avi,
I am looking into this. In the meantime, the additionalAddress(es)
value is designed to accommodate cases when a resource requires multiple address spaces to be provisioned. An easy example of this is k8s clusters which need multiple, non-overlapping address spaces for pods, services, etc.
Specifically for private services, this is necessary because for endpoints for Google-managed services, the IP used to represent the service must not exist within the address space of the VPC of the endpoint. (https://cloud.google.com/vpc/docs/about-accessing-google-apis-endpoints)
However, this requirement is not true for non-Google services. I think there is a bug. I'll let you know what I find!
Creating the file
gcp_psc_ep.json
with the below contents:and invoking:
produced the below message:
which seems to cause the orchestrator to crash:
I updated the below gcp resources.go method to return 1
re-built and run glide command again - which then produced the below error:
after updating addressPurpose constant with the below value:
I was able to create a gcp endpoint with
glide resource create
CLI:I would like to ask whether I am missing something or perhaps a fix should be applied.
Thanks.