mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-04 15:25:00 -04:00
Support internal load balancers (#2388)
* arch: support internal lb on Azure * arch: support internal lb on GCP * helm: remove lb svc from verify deployment * arch: support internal lb on AWS * terraform: add jump hosts for internal lb * cli: expose internalLoadBalancer in config * ci: add e2e-manual-internal * add in-cluster endpoint to terraform output
This commit is contained in:
parent
fe7e16e1cc
commit
0c89f57ac5
46 changed files with 1310 additions and 412 deletions
|
@ -181,11 +181,20 @@ func (c *Client) ShowInfrastructure(ctx context.Context, provider cloudprovider.
|
|||
return state.Infrastructure{}, errors.New("terraform show: no values returned")
|
||||
}
|
||||
|
||||
ipOutput, ok := tfState.Values.Outputs["ip"]
|
||||
outOfClusterEndpointOutput, ok := tfState.Values.Outputs["out_of_cluster_endpoint"]
|
||||
if !ok {
|
||||
return state.Infrastructure{}, errors.New("no IP output found")
|
||||
return state.Infrastructure{}, errors.New("no out_of_cluster_endpoint output found")
|
||||
}
|
||||
ip, ok := ipOutput.Value.(string)
|
||||
outOfClusterEndpoint, ok := outOfClusterEndpointOutput.Value.(string)
|
||||
if !ok {
|
||||
return state.Infrastructure{}, errors.New("invalid type in IP output: not a string")
|
||||
}
|
||||
|
||||
inClusterEndpointOutput, ok := tfState.Values.Outputs["in_cluster_endpoint"]
|
||||
if !ok {
|
||||
return state.Infrastructure{}, errors.New("no in_cluster_endpoint output found")
|
||||
}
|
||||
inClusterEndpoint, ok := inClusterEndpointOutput.Value.(string)
|
||||
if !ok {
|
||||
return state.Infrastructure{}, errors.New("invalid type in IP output: not a string")
|
||||
}
|
||||
|
@ -231,7 +240,8 @@ func (c *Client) ShowInfrastructure(ctx context.Context, provider cloudprovider.
|
|||
}
|
||||
|
||||
res := state.Infrastructure{
|
||||
ClusterEndpoint: ip,
|
||||
ClusterEndpoint: outOfClusterEndpoint,
|
||||
InClusterEndpoint: inClusterEndpoint,
|
||||
APIServerCertSANs: apiServerCertSANs,
|
||||
InitSecret: []byte(secret),
|
||||
UID: uid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue