Add driftdetection

close #50 (closed)

ubuntu@bastion:~/sylva-core$ kubectl -n teama--wc1 get hr sylva-units                                  
NAME          AGE     READY   STATUS
sylva-units   5d22h   True    Helm upgrade succeeded for release teama--wc1/sylva-units.v3 with chart sylva-units@0.0.0-git+8d7aa74bf3e7.1
ubuntu@bastion:~/sylva-core$ kubectl -n teama--wc1 get hr sylva-units  -o yaml
apiVersion: helm.toolkit.fluxcd.io/v2                                                                 
kind: HelmRelease             
metadata:                                                                                             
  annotations:              
    reconcile.fluxcd.io/forceAt: "2025-07-18T08:03:17.631993683Z"                                     
    reconcile.fluxcd.io/requestedAt: "2025-07-18T08:03:17.631993683Z"                                 
  creationTimestamp: "2025-07-18T07:53:07Z"                                                           
  finalizers:                            
  - finalizers.fluxcd.io                                                                              
  generation: 3                                                                                       
  labels:                                                                                             
    sylva-units-operator/sylva-units-release: wc1                                                     
  name: sylva-units                                                                                   
  namespace: teama--wc1                                                                               
  resourceVersion: "10633288"                                                                         
  uid: 40575a5f-ec34-4b60-9c68-da07d5087d2b                                                           
spec:                                                                                                 
  chart:                                                                                              
    spec:                                                                                             
      chart: charts/sylva-units                                                                       
      reconcileStrategy: Revision                                                                     
      sourceRef:                                                                                      
        kind: GitRepository                                                                           
        name: sylva-units-5a32b949                                                                    
      valuesFiles:                                                                                    
      - charts/sylva-units/values.yaml                                                                
      - charts/sylva-units/workload-cluster.values.yaml               
      version: '*'                               
  driftDetection:                                                                                     
    ignore:                                                                                           
    - paths:           
      - /metadata/annotations 
    mode: enabled 

Local tests output ^

Edited by Loic Nicolle

Merge request reports

Loading