@@ -92,6 +92,11 @@ func (c *ProvisionECRHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
opts, err := GetSharedProvisionerOpts(c.Config(), infra)
+ if err != nil {
+ c.HandleAPIError(w, r, apierrors.NewErrInternal(err))
+ return
+ }
+
vaultToken := ""
if c.Config().CredentialBackend != nil {
@@ -31,6 +31,7 @@ func AutoMigrate(db *gorm.DB) error {
&models.SubEvent{},
&models.ProjectUsage{},
&models.ProjectUsageCache{},
+ &models.CredentialsExchangeToken{},
&ints.KubeIntegration{},
&ints.BasicIntegration{},
&ints.OIDCIntegration{},