func Match(ds *apps.DaemonSet, history *apps.ControllerRevision) (bool, error) {
	patch, err := getPatch(ds)
	if err != nil {
		return false, err
	}
	return bytes.Equal(patch, history.Data.Raw), nil
}
// Match check if the given DaemonSet's template matches the template stored in the given history.
Match check if the given DaemonSet's template matches the template stored in the given history.
// Match check if the given DaemonSet ' s template matches the template stored in the given history .
func Match(ds *apps.DaemonSet, history *apps.ControllerRevision) (bool, error) {
	patch, err := getPatch(ds)
	if err != nil {
		return false, err
	}
	return bytes.Equal(patch, history.Data.Raw), nil
}
func Match ( ds * apps . DaemonSet , history * apps . ControllerRevision ) ( bool , error ) { patch , err := getPatch ( ds ) if err != nil { return false , err } return bytes . Equal ( patch , history . Data . Raw ) , nil }
Match check if the given DaemonSet's template matches the template stored in the given history.
Match check if the given DaemonSet ' s template matches the template stored in the given history .