add description for export const variable and function, fix golint

Signed-off-by: 天元 <jianbo.sjb@alibaba-inc.com>
This commit is contained in:
天元
2020-11-17 21:04:53 +08:00
parent cb946bff95
commit fb8c33af8d
47 changed files with 242 additions and 165 deletions
@@ -66,7 +66,7 @@ func (h *MutatingHandler) Handle(ctx context.Context, req admission.Request) adm
return resp
}
// Default sets all the default value for the PodSpecWorkload
// DefaultPodSpecWorkload will set the default value for the PodSpecWorkload
func DefaultPodSpecWorkload(obj *v1alpha1.PodSpecWorkload) {
mutatelog.Info("default", "name", obj.Name)
if obj.Spec.Replicas == nil {