func SetServiceLastAppliedConfigAnnotation(svc *corev1.Service) error {
	b, err := json.Marshal(svc.Spec)
	if err != nil {
		return err
	}
	if svc.Annotations == nil {
		svc.Annotations = map[string]string{}
	}
	svc.Annotations[LastAppliedConfigAnnotation] = string(b)
	return nil
}
// SetServiceLastAppliedConfigAnnotation set last applied config info to Service's annotation
SetServiceLastAppliedConfigAnnotation set last applied config info to Service's annotation
// SetServiceLastAppliedConfigAnnotation set last applied config info to Service ' s annotation
func SetServiceLastAppliedConfigAnnotation(svc *corev1.Service) error {
	b, err := json.Marshal(svc.Spec)
	if err != nil {
		return err
	}
	if svc.Annotations == nil {
		svc.Annotations = map[string]string{}
	}
	svc.Annotations[LastAppliedConfigAnnotation] = string(b)
	return nil
}
func SetServiceLastAppliedConfigAnnotation ( svc * corev1 . Service ) error { b , err := json . Marshal ( svc . Spec ) if err != nil { return err } if svc . Annotations == nil { svc . Annotations = map [ string ] string { } } svc . Annotations [ LastAppliedConfigAnnotation ] = string ( b ) return nil }
SetServiceLastAppliedConfigAnnotation set last applied config info to Service's annotation
SetServiceLastAppliedConfigAnnotation set last applied config info to Service ' s annotation