mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-23 07:20:37 -04:00
Only upload kubeadm certs if key is rotated
Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com> Co-authored-by: 3u13r <lc@edgeless.systems>
This commit is contained in:
parent
586b65f089
commit
260d2571c1
56 changed files with 527 additions and 326 deletions
|
@ -154,6 +154,10 @@ func (c *Client) GetState() (state.ConstellationState, error) {
|
|||
return state.ConstellationState{}, errors.New("client has no uid")
|
||||
}
|
||||
stat.UID = c.uid
|
||||
if len(c.loadBalancerPubIP) == 0 {
|
||||
return state.ConstellationState{}, errors.New("client has no load balancer public IP")
|
||||
}
|
||||
stat.BootstrapperHost = c.loadBalancerPubIP
|
||||
if len(c.location) == 0 {
|
||||
return state.ConstellationState{}, errors.New("client has no location")
|
||||
}
|
||||
|
@ -213,6 +217,10 @@ func (c *Client) SetState(stat state.ConstellationState) error {
|
|||
return errors.New("state has no uuid")
|
||||
}
|
||||
c.uid = stat.UID
|
||||
if len(stat.BootstrapperHost) == 0 {
|
||||
return errors.New("state has no bootstrapper host")
|
||||
}
|
||||
c.loadBalancerPubIP = stat.BootstrapperHost
|
||||
if len(stat.AzureLocation) == 0 {
|
||||
return errors.New("state has no location")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue