Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…perator into feature/fix-provision

� Conflicts:
�	controllers/cache/redis.go
  • Loading branch information
wangcanfeng committed May 19, 2020
2 parents f550a2e + 8164aa1 commit cb42229
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions controllers/cache/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,16 @@ type RedisReconciler struct {
Labels map[string]string
Name string
Namespace string
CRStatus *lcm.CRStatus
}

// Reconciler implements the reconcile logic of redis service
func (redis *RedisReconciler) Reconcile() (*lcm.CRStatus, error) {
//redis.Labels = redis.NewLabels()
//redis.Name = redis.GetHarborClusterName()
//redis.Namespace = redis.GetHarborClusterNamespace()

crStatus, err := redis.Provision()
if err != nil {
return crStatus, err
}
return nil, nil
}

func (redis *RedisReconciler) Provision() (*lcm.CRStatus, error) {
// TODO
//crStatus, err := redis.Deploy(crStatus)
//if err != nil {
// return crStatus, err
//}
//
//crStatus, err = redis.Readiness(crStatus)
//if err != nil {
// return crStatus, err
//}
return nil, nil
panic("implement me")
}

func (redis *RedisReconciler) Delete() (*lcm.CRStatus, error) {
Expand Down

0 comments on commit cb42229

Please sign in to comment.