func hasGrafanaSpecChanged(actual *appsv1.Deployment, desired *argoprojv1a1.ArgoCD) bool {
	// Replica count
	if desired.Spec.Grafana.Size != nil { // Replica count specified in desired state
		if *desired.Spec.Grafana.Size >= 0 && *actual.Spec.Replicas != *desired.Spec.Grafana.Size {
			return true
		}
	} else { // Replica count NOT specified in desired state
		if *actual.Spec.Replicas != common.ArgoCDDefaultGrafanaReplicas {
			return true
		}
	}
	return false
}
// hasGrafanaSpecChanged will return true if the supported properties differs in the actual versus the desired state.
hasGrafanaSpecChanged will return true if the supported properties differs in the actual versus the desired state.
// hasGrafanaSpecChanged will return true if the supported properties differs in the actual versus the desired state .
func hasGrafanaSpecChanged(actual *appsv1.Deployment, desired *argoprojv1a1.ArgoCD) bool {
	if desired.Spec.Grafana.Size != nil {  specified in desired state
		if *desired.Spec.Grafana.Size >= 0 && *actual.Spec.Replicas != *desired.Spec.Grafana.Size {
			return true
		}
	} else {  NOT specified in desired state
		if *actual.Spec.Replicas != common.ArgoCDDefaultGrafanaReplicas {
			return true
		}
	}
	return false
}
func hasGrafanaSpecChanged ( actual * appsv1 . Deployment , desired * argoprojv1a1 . ArgoCD ) bool { if desired . Spec . Grafana . Size != nil { if * desired . Spec . Grafana . Size >= 0 && * actual . Spec . Replicas != * desired . Spec . Grafana . Size { return true } } else { if * actual . Spec . Replicas != common . ArgoCDDefaultGrafanaReplicas { return true } } return false }
hasGrafanaSpecChanged will return true if the supported properties differs in the actual versus the desired state.
hasGrafanaSpecChanged will return true if the supported properties differs in the actual versus the desired state .
// Replica count // Replica count specified in desired state // Replica count NOT specified in desired state