Skip to content

Commit

Permalink
set some external references on the dev team
Browse files Browse the repository at this point in the history
  • Loading branch information
christeredvartsen committed Apr 17, 2024
1 parent 97e1223 commit 9ada269
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/setup_local/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,15 @@ func run(ctx context.Context, cfg *seedConfig, log logrus.FieldLogger) error {
return err
}
}
if _, err := dbtx.UpdateTeamExternalReferences(ctx, gensql.UpdateTeamExternalReferencesParams{
GoogleGroupEmail: ptr.To("nais-team-devteam@" + cfg.Domain),
AzureGroupID: ptr.To(uuid.MustParse("70c0541d-c079-4d10-9c50-164681e0b900")),
GithubTeamSlug: ptr.To("devteam"),
GarRepository: ptr.To("projects/some-project-123/locations/europe-north1/repositories/devteam"),
Slug: devteam.Slug,
}); err != nil {
return err
}
dbtx.ResourceUtilizationUpsert(ctx, generateUtilizationData("dev", "devteam", "devapp", time.Now().Add(-24*time.Hour*7), time.Now())).Exec(func(i int, err error) {
if err != nil {
log.Errorf("error updating resource utilization for team %s: %v", devteam.Slug, err)
Expand Down

0 comments on commit 9ada269

Please sign in to comment.