mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* feat: Add custom resource health for flux resources Signed-off-by: Adrian Berger <[email protected]> * chore: Update upgrade docs Signed-off-by: Adrian Berger <[email protected]> --------- Signed-off-by: Adrian Berger <[email protected]> Signed-off-by: Dan Garfield <[email protected]> Co-authored-by: Dan Garfield <[email protected]>
71 lines
2.3 KiB
YAML
71 lines
2.3 KiB
YAML
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: podinfo
|
|
namespace: default
|
|
spec:
|
|
interval: 10m
|
|
timeout: 5m
|
|
chart:
|
|
spec:
|
|
chart: podinfo
|
|
version: '6.5.*'
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: podinfo
|
|
interval: 5m
|
|
releaseName: podinfo
|
|
install:
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
remediation:
|
|
retries: 3
|
|
test:
|
|
enable: true
|
|
driftDetection:
|
|
mode: enabled
|
|
ignore:
|
|
- paths: ["/spec/replicas"]
|
|
target:
|
|
kind: Deployment
|
|
values:
|
|
replicaCount: 2
|
|
status:
|
|
conditions:
|
|
- lastTransitionTime: "2024-07-16T12:00:00Z"
|
|
message: Helm rollback to previous release default/podinfo.v24 with
|
|
chart [email protected] succeeded
|
|
observedGeneration: 5
|
|
reason: ProgressingWithRetry
|
|
status: "True"
|
|
type: Reconciling
|
|
- lastTransitionTime: "2024-07-16T12:00:00Z"
|
|
message: Helm rollback to previous release default/podinfo.v24 with
|
|
chart [email protected] succeeded
|
|
observedGeneration: 5
|
|
reason: RollbackSucceeded
|
|
status: "False"
|
|
type: Ready
|
|
- lastTransitionTime: "2024-07-16T12:00:00Z"
|
|
message: "Helm upgrade failed for release default/podinfo with chart
|
|
[email protected]: cannot patch \"podinfo\" with kind Deployment: admission webhook
|
|
\"validate.kyverno.svc-fail\" denied the request: \n\nresource Deployment/default/podinfo
|
|
was blocked due to the following policies \n\ndisallow-privilege-escalation:\n
|
|
\ autogen-privilege-escalation: 'validation error: Privilege escalation is disallowed.\n
|
|
\ The fields spec.containers[*].securityContext.allowPrivilegeEscalation,
|
|
spec.initContainers[*].securityContext.allowPrivilegeEscalation,\n and spec.ephemeralContainers[*].securityContext.allowPrivilegeEscalation
|
|
must\n be set to `false`. rule autogen-privilege-escalation failed at path
|
|
/spec/template/spec/containers/0/securityContext/allowPrivilegeEscalation/'"
|
|
observedGeneration: 5
|
|
reason: UpgradeFailed
|
|
status: "False"
|
|
type: Released
|
|
- lastTransitionTime: "2024-07-16T12:00:00Z"
|
|
message: Helm rollback to previous release default/podinfo.v24 with
|
|
chart [email protected] succeeded
|
|
observedGeneration: 5
|
|
reason: RollbackSucceeded
|
|
status: "True"
|
|
type: Remediated
|