Procházet zdrojové kódy

Merge branch 'kubeconfig' of https://github.com/porter-dev/porter into frontend-boilerplate

jusrhee před 5 roky
rodič
revize
ee83d43df1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      internal/forms/user.go

+ 2 - 2
internal/forms/user.go

@@ -61,8 +61,8 @@ func (luf *LoginUserForm) ToUser() (*models.User, error) {
 type UpdateUserForm struct {
 	WriteUserForm
 	ID              uint     `form:"required"`
-	RawKubeConfig   string   `json:"rawKubeConfig"`
-	AllowedClusters []string `json:"allowedClusters"`
+	RawKubeConfig   string   `json:"rawKubeConfig,omitempty"`
+	AllowedClusters []string `json:"allowedClusters,omitempty"`
 }
 
 // ToUser converts an UpdateUserForm to models.User by parsing the kubeconfig