oauth2/google: remove meta validations for aws external credentials

This commit is contained in:
Jin Qin
2023-08-23 22:30:37 +00:00
parent a835fc4358
commit 1e74fc2e35
3 changed files with 18 additions and 146 deletions

View File

@@ -185,10 +185,6 @@ func (c *Config) parse(ctx context.Context) (baseCredentialSource, error) {
awsCredSource.IMDSv2SessionTokenURL = c.CredentialSource.IMDSv2SessionTokenURL
}
if err := awsCredSource.validateMetadataServers(); err != nil {
return nil, err
}
return awsCredSource, nil
}
} else if c.CredentialSource.File != "" {