github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/helm.toolkit.fluxcd.io/HelmRelease/testdata/degraded.yaml (about)

     1  apiVersion: helm.toolkit.fluxcd.io/v2
     2  kind: HelmRelease
     3  metadata:
     4    name: podinfo
     5    namespace: default
     6  spec:
     7    interval: 10m
     8    timeout: 5m
     9    chart:
    10      spec:
    11        chart: podinfo
    12        version: '6.5.*'
    13        sourceRef:
    14          kind: HelmRepository
    15          name: podinfo
    16        interval: 5m
    17    releaseName: podinfo
    18    install:
    19      remediation:
    20        retries: 3
    21    upgrade:
    22      remediation:
    23        retries: 3
    24    test:
    25      enable: true
    26    driftDetection:
    27      mode: enabled
    28      ignore:
    29      - paths: ["/spec/replicas"]
    30        target:
    31          kind: Deployment
    32    values:
    33      replicaCount: 2
    34  status:
    35    conditions:
    36    - lastTransitionTime: "2024-07-16T12:00:00Z"
    37      message: Helm rollback to previous release default/podinfo.v24 with
    38        chart podinfo@6.5.4 succeeded
    39      observedGeneration: 5
    40      reason: ProgressingWithRetry
    41      status: "True"
    42      type: Reconciling
    43    - lastTransitionTime: "2024-07-16T12:00:00Z"
    44      message: Helm rollback to previous release default/podinfo.v24 with
    45        chart podinfo@6.5.4 succeeded
    46      observedGeneration: 5
    47      reason: RollbackSucceeded
    48      status: "False"
    49      type: Ready
    50    - lastTransitionTime: "2024-07-16T12:00:00Z"
    51      message: "Helm upgrade failed for release default/podinfo with chart
    52        podinfo@6.5.4: cannot patch \"podinfo\" with kind Deployment: admission webhook
    53        \"validate.kyverno.svc-fail\" denied the request: \n\nresource Deployment/default/podinfo
    54        was blocked due to the following policies \n\ndisallow-privilege-escalation:\n
    55        \ autogen-privilege-escalation: 'validation error: Privilege escalation is disallowed.\n
    56        \   The fields spec.containers[*].securityContext.allowPrivilegeEscalation,
    57        spec.initContainers[*].securityContext.allowPrivilegeEscalation,\n    and spec.ephemeralContainers[*].securityContext.allowPrivilegeEscalation
    58        must\n    be set to `false`. rule autogen-privilege-escalation failed at path
    59        /spec/template/spec/containers/0/securityContext/allowPrivilegeEscalation/'"
    60      observedGeneration: 5
    61      reason: UpgradeFailed
    62      status: "False"
    63      type: Released
    64    - lastTransitionTime: "2024-07-16T12:00:00Z"
    65      message: Helm rollback to previous release default/podinfo.v24 with
    66        chart podinfo@6.5.4 succeeded
    67      observedGeneration: 5
    68      reason: RollbackSucceeded
    69      status: "True"
    70      type: Remediated