This commit enables access to platform service APIs from within
Kubernetes pods prior to initial controller unlock. Prior to
this changes, service endpoints were only reconfigured right
before the unlock making sysinv apis inaccessible to services
running inside the pods as they can not reach the loopback IP
(127.0.0.1).
This is achieved by reconfiguring service endpoints
a) during initial bootstrap play from loopback IP to the provided
management and OAM IPs
b) during subsequent replays with newly provided management
and/or oam network config values.
Tests performed:
- Bootstrap with defaults, verify endpoints
- Change management subnet value and replay, verify endpoints
- Change oam floating IP and replay, verify endpoints
- Configure host for unlock
- Unlock controller
Story: 2004695
Task: 30914
Related-Bug: #1828880
Change-Id: I9ef9d30bbf8713c75206b338aefd53c3e77db0cb
Signed-off-by: Tee Ngo <tee.ngo@windriver.com>