func AddAnnotations(objMeta *metav1.ObjectMeta, annotations map[string]string) {
	if objMeta.Annotations == nil {
		objMeta.Annotations = make(map[string]string)
	}
	for k, v := range annotations {
		idx := strings.Index(v, string(TemplateVarCurrentTime))
		if idx == -1 {
			objMeta.Annotations[k] = v
		} else {
			objMeta.Annotations[k] = strings.ReplaceAll(v, string(TemplateVarCurrentTime), time.Now().Format(time.RFC3339))
		}
	}
	return
}
AddAnnotations add given annotations to given meta object
Object annotations will be overridden if any of the given annotations exists with the same key
package hook
import (
	"strings"
	"time"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)