# v1alpha1ResourceDiff

Type: object

ResourceDiff holds the diff between a live and target resource object in Argo CD.
It is used to compare the desired state (from Git/Helm) with the actual state in the cluster.

Schema: [v1alpha1ResourceDiff](https://sourcey-argocd.pages.dev/api/models/v1alpha1resourcediff/index.md)

- `diff` (optional)
  Type: string
  
  Diff contains the JSON patch representing the difference between the live and target resource.
  
  Deprecated: Use NormalizedLiveState and PredictedLiveState instead to compute differences.

- `group` (optional)
  Type: string
  
  Group represents the API group of the resource (e.g., "apps" for Deployments).

- `hook` (optional)
  Type: boolean
  
  Hook indicates whether this resource is a hook resource (e.g., pre-sync or post-sync hooks).

- `kind` (optional)
  Type: string
  
  Kind represents the Kubernetes resource kind (e.g., "Deployment", "Service").

- `liveState` (optional)
  Type: string
  
  LiveState contains the JSON-serialized resource manifest of the resource currently running in the cluster.

- `modified` (optional)
  Type: boolean
  
  Modified indicates whether the live resource has changes compared to the target resource.

- `name` (optional)
  Type: string
  
  Name is the name of the resource.

- `namespace` (optional)
  Type: string
  
  Namespace specifies the namespace where the resource exists.

- `normalizedLiveState` (optional)
  Type: string
  
  NormalizedLiveState contains the JSON-serialized live resource state after applying normalizations.
  Normalizations may include ignoring irrelevant fields like timestamps or defaults applied by Kubernetes.

- `predictedLiveState` (optional)
  Type: string
  
  PredictedLiveState contains the JSON-serialized resource state that Argo CD predicts based on the
  combination of the normalized live state and the desired target state.

- `resourceVersion` (optional)
  Type: string
  
  ResourceVersion is the Kubernetes resource version, which helps in tracking changes.

- `targetState` (optional)
  Type: string
  
  TargetState contains the JSON-serialized resource manifest as defined in the Git/Helm repository.