Fix some errors be ignored (#2290)

Signed-off-by: drivebyer <yang.wu@daocloud.io>
This commit is contained in:
drivebyer 2023-04-17 23:25:07 +08:00 committed by GitHub
parent a9c6d46f7d
commit 1e64ae788e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -241,12 +241,11 @@ func (c *Cluster) initUsers() error {
}
// Create creates the new kubernetes objects associated with the cluster.
func (c *Cluster) Create() error {
func (c *Cluster) Create() (err error) {
c.mu.Lock()
defer c.mu.Unlock()
var (
err error
var (
service *v1.Service
ep *v1.Endpoints
ss *appsv1.StatefulSet