in config/identity.go [103:120]
func (i *GCPIdentity) Validate(c *Config) error {
count := 0
if i.ServiceAccountKey != nil {
count += 1
}
if i.EncodedServiceAccountKey != nil {
count += 1
}
if count == 0 {
return errors.New("identity: missing service account key")
}
if count > 1 {
return errors.New("identity: too many service account keys")
}
return nil
}