Fix some errors be ignored (#2290)

Signed-off-by: drivebyer <yang.wu@daocloud.io>
This commit is contained in:
drivebyer
2023-04-17 17:25:07 +02:00
committed by GitHub
parent a9c6d46f7d
commit 1e64ae788e
+2 -3
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