mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-09 23:42:21 -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
|
@ -50,7 +50,7 @@ func main() {
|
|||
|
||||
creds := atlscredentials.New(nil, []atls.Validator{validator})
|
||||
|
||||
vpcIP, err := getIPinVPC(ctx, *provider)
|
||||
vpcIP, err := getVPCIP(ctx, *provider)
|
||||
if err != nil {
|
||||
log.With(zap.Error(err)).Fatalf("Failed to get IP in VPC")
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ func main() {
|
|||
}
|
||||
}
|
||||
|
||||
func getIPinVPC(ctx context.Context, provider string) (string, error) {
|
||||
func getVPCIP(ctx context.Context, provider string) (string, error) {
|
||||
switch cloudprovider.FromString(provider) {
|
||||
case cloudprovider.Azure:
|
||||
metadata, err := azurecloud.NewMetadata(ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue