Skip to content

Commit

Permalink
Use the actual urlmap name
Browse files Browse the repository at this point in the history
  • Loading branch information
Reasonable-Solutions committed Feb 15, 2024
1 parent 50e4712 commit b3ee2d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/reconcilers/google/cdn/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (r *cdnReconciler) Reconcile(ctx context.Context, client *apiclient.APIClie
}
teamEmail := *naisTeam.GoogleGroupEmail

urlMapName := "nais-cdn-urlmap"
urlMapName := "nais-cdn"
cacheInvalidatorRole := "projects/nais-management-7178/roles/cdnCacheInvalidator"

// bucket name needs to be globally unique
Expand Down Expand Up @@ -129,6 +129,7 @@ func (r *cdnReconciler) Reconcile(ctx context.Context, client *apiclient.APIClie
return fmt.Errorf("create team access for cache invalidation: %w", err)
}

// ❌
err = r.ensureUrlMapPathRule(urlMapName, naisTeam, backendBucket)
if err != nil {
return fmt.Errorf("create urlMap: %w", err)
Expand Down

0 comments on commit b3ee2d4

Please sign in to comment.