Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubescape in ArgoCD always get out of sync (divisor: '0') #531

Open
mogaal opened this issue Nov 3, 2024 · 0 comments
Open

Kubescape in ArgoCD always get out of sync (divisor: '0') #531

mogaal opened this issue Nov 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mogaal
Copy link

mogaal commented Nov 3, 2024

Description

When running kubescape helm chart in ArgoCD

Environment

OS: K8S (EKS)
Version: Helm Chart 1.22.0

Steps To Reproduce

Install using ArgoCD as below:

---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: kubescape
  namespace: argocd
spec:
  project: base-infra
  destination:
    namespace: kubescape
    server: https://kubernetes.default.svc
  sources:
    - repoURL: https://kubescape.github.io/helm-charts/
      chart: "kubescape-operator"
      targetRevision: 1.22.0
      helm:
        releaseName: kubescape
  syncPolicy:
   automated:
     prune: true
     selfHeal: true
   syncOptions:
    - CreateNamespace=true
    - ServerSideApply=true

Expected behavior

All resources should keep the sync

Actual Behavior

It gets out of sync constantly, as you can see in the image below:

Screenshot 2024-11-03 at 17 09 30

The way how I "fixed" it is by telling ArgoCD to ignore those fields:

  ignoreDifferences:
  - group: apps
    kind: Deployment
    jqPathExpressions:
      - .spec.template.spec.containers[].env[].valueFrom.resourceFieldRef.divisor
  - group: apps
    kind: DaemonSet
    jqPathExpressions:
      - .spec.template.spec.containers[].env[].valueFrom.resourceFieldRef.divisor

Additional context

N/A

@mogaal mogaal added the bug Something isn't working label Nov 3, 2024
@mogaal mogaal changed the title Kubescape in ArgoCD always get our of sync (divisor: '0') Kubescape in ArgoCD always get out of sync (divisor: '0') Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant