refmt code

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2020-03-23 10:01:22 +08:00
parent 16d392065e
commit 0ac15ea744

View File

@@ -25,8 +25,8 @@ import (
) )
/** /**
s2irun-controller used to handle s2irun's delete logic. s2irun-controller used to handle s2irun's delete logic.
s2irun creation and operation provided by s2ioperator s2irun creation and operation provided by s2ioperator
*/ */
type Controller struct { type Controller struct {
client clientset.Interface client clientset.Interface
@@ -219,9 +219,9 @@ func (c Controller) syncHandler(key string) error {
} }
/** /**
DeleteS2iBinary mainly cleans up two parts of S2iBinary DeleteS2iBinary mainly cleans up two parts of S2iBinary
1. s2ibinary bound to s2irun 1. s2ibinary bound to s2irun
2. s2ibinary that has been created for more than 24 hours but has not been used 2. s2ibinary that has been created for more than 24 hours but has not been used
*/ */
func (c Controller) DeleteS2iBinary(s2irun *devopsv1alpha1.S2iRun) error { func (c Controller) DeleteS2iBinary(s2irun *devopsv1alpha1.S2iRun) error {
s2iBinName := s2irun.Labels[devopsv1alpha1.S2iBinaryLabelKey] s2iBinName := s2irun.Labels[devopsv1alpha1.S2iBinaryLabelKey]