Skip to content

Commit

Permalink
Merge branch 'master' of github.com:aporeto-inc/addedeffect
Browse files Browse the repository at this point in the history
  • Loading branch information
primalmotion committed Sep 17, 2019
2 parents 5e8a2fa + 19b9952 commit dec604a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions appcreds/appcreds.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ func New(ctx context.Context, m manipulate.Manipulator, namespace string, name s
creds := gaia.NewAppCredential()
creds.Name = name
creds.Roles = roles
creds.Namespace = namespace
creds.AuthorizedSubnets = subnets

return NewWithAppCredential(ctx, m, creds)
if err := Create(ctx, m, namespace, creds); err != nil {
return nil, err
}

return creds, nil
}

// Create generates a new CSR for the provided app credential and calls the upstream service using the supplied
Expand Down

0 comments on commit dec604a

Please sign in to comment.