Open antoineozenne opened 2 years ago
I am unable to replicate this on my end. I committed invalid yaml but got only one failed job. What kind of bad values are you committing to git?
These values (with spec.values.resources.requests.cpu: 10mm
):
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: kyverno
namespace: kyverno
spec:
releaseName: kyverno
chart:
spec:
chart: kyverno
version: v2.1.10
sourceRef:
kind: HelmRepository
name: kyverno
namespace: flux-system
interval: 5m
install:
remediation:
retries: 3
values:
resources:
requests:
cpu: 10mm
memory: 128Mi
limits:
cpu: 500m
memory: 1Gi
initResources:
requests:
cpu: 10m
memory: 64Mi
limits:
cpu: 100m
memory: 256Mi
When committing bad values to force the git commit status as failed, the commit is first marked as success (before all resources are reconciled), then after the kustomize-controller retries, marked as failed. The commit should not have a status before all resources are reconciled. Here is my configuration for this use case.
My repo tree:
My manifests:
And the GitLab jobs: