Преглед изворни кода

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

jusrhee пре 5 година
родитељ
комит
ee83d43df1
1 измењених фајлова са 2 додато и 2 уклоњено
  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