Comments (2)
I suspect (guess) that the job had a different condition that Helm didn't know about. Can you show the status output of e.g. kubectl describe job
, both before and after the job finished being "active" please.
from helm.
I am experiencing the same issue with Kyverno chart, where it is failing to upgrade due to incorrect job state detection.
From the debug output I can see
helm:QPQQU> client.go:740: [debug] Add/Modify event for infra-kyverno-clean-reports: MODIFIED
helm:QPQQU> client.go:779: [debug] infra-kyverno-clean-reports: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
helm:QPQQU>
helm:QPQQU> client.go:486: [debug] Starting delete for "infra-kyverno-clean-reports" Job
helm:QPQQU>
helm:QPQQU> wait.go:104: [debug] beginning wait for 1 resources to be deleted with timeout of 5m0s
helm:QPQQU>
helm:QPQQU> upgrade.go:476: [debug] warning: Upgrade "infra" failed: post-upgrade hooks failed: 1 error occurred:
helm:QPQQU> * timed out waiting for the condition
and when I run kubectl describe job
$ kubectl describe job infra-kyverno-clean-reports
Name: infra-kyverno-clean-reports
Namespace: infra
Selector: batch.kubernetes.io/controller-uid=78201865-0e6c-4c44-92a6-a2b4c856fb73
Labels: app.kubernetes.io/component=hooks
app.kubernetes.io/instance=infra
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/part-of=infra-kyverno
app.kubernetes.io/version=3.2.5
helm.sh/chart=kyverno-3.2.5
Annotations: helm.sh/hook: post-upgrade
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded,hook-failed
Parallelism: 1
Completions: 1
Completion Mode: NonIndexed
Start Time: Tue, 13 Aug 2024 12:23:50 -0400
Completed At: Tue, 13 Aug 2024 12:23:57 -0400
Duration: 7s
Pods Statuses: 0 Active (0 Ready) / 1 Succeeded / 0 Failed
Pod Template:
Labels: batch.kubernetes.io/controller-uid=78201865-0e6c-4c44-92a6-a2b4c856fb73
batch.kubernetes.io/job-name=infra-kyverno-clean-reports
controller-uid=78201865-0e6c-4c44-92a6-a2b4c856fb73
job-name=infra-kyverno-clean-reports
Service Account: kyverno-admission-controller
Containers:
kubectl:
Image: bitnami/kubectl:1.28.5
Port: <none>
Host Port: <none>
SeccompProfile: RuntimeDefault
Command:
/bin/bash
-c
set -euo pipefail
NAMESPACES=$(kubectl get namespaces --no-headers=true | awk '{print $1}')
for ns in ${NAMESPACES[@]};
do
COUNT=$(kubectl get policyreports.wgpolicyk8s.io -n $ns --no-headers=true | awk '/pol/{print $1}' | wc -l)
if [ $COUNT -gt 0 ]; then
echo "deleting $COUNT policyreports in namespace $ns"
kubectl get policyreports.wgpolicyk8s.io -n $ns --no-headers=true | awk '/pol/{print $1}' | xargs kubectl delete -n $ns policyreports.wgpolicyk8s.io
else
echo "no policyreports in namespace $ns"
fi
done
COUNT=$(kubectl get clusterpolicyreports.wgpolicyk8s.io --no-headers=true | awk '/pol/{print $1}' | wc -l)
if [ $COUNT -gt 0 ]; then
echo "deleting $COUNT clusterpolicyreports"
kubectl get clusterpolicyreports.wgpolicyk8s.io --no-headers=true | awk '/pol/{print $1}' | xargs kubectl delete clusterpolicyreports.wgpolicyk8s.io
else
echo "no clusterpolicyreports"
fi
Environment: <none>
Mounts: <none>
Volumes: <none>
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal SuccessfulCreate 3m29s job-controller Created pod: infra-kyverno-clean-reports-cz5fj
Normal Completed 3m22s job-controller Job completed
It seems to be some bug.
Versions:
Kubernetes
Client Version: v1.27.1
Kustomize Version: v5.0.1
Server Version: v1.29.3
helm version v3.15.3
from helm.
Related Issues (20)
- Helm lint does not check for case in pod's spec.hostname HOT 4
- Tilt - Error in helm: could not parse Helm version from string: "3.15.4+gfa9efb0\n" HOT 2
- get.helm.sh down HOT 10
- Add template function to generate a random binary string HOT 1
- Helm `merge` mutates the leftmost dict HOT 4
- Bug? Helm `merge` ORs boolean values HOT 4
- Helm does not handle duplicate volume mount names; only the last defined volume mount is used
- calling "https://grafana.github.io/helm-charts" and deploying to default namespace HOT 1
- Deployed Kubernetes resource differs from its manifest in Helm output HOT 2
- Helm ignore alias property in dependencies HOT 1
- `helm upgrade --wait-for-jobs` does not detect a job error in certain situations
- `--wait-for-jobs` - the `isRetryableError()` returns false positive for Job failures.
- High Severity Vulnerabilities [CVE-2024-34156,CVE-2024-34155,CVE-2024-34158] detected. HOT 1
- Kubernetes configuration file is group-readable HOT 3
- Upgrading to Helm 3.16 broke dependencies references HOT 4
- Helm 3.16.0 broke 'dep up' for charts.jetstack.io / cert-manager HOT 2
- Error: INSTALLATION FAILED: repo bitnami not found HOT 2
- Error: INSTALLATION FAILED: error evaluating symlink /root/snap/firmware-updater/127/.config/gtk-2.0/gtkfilechooser.ini
- Helm Chart Rollbacks Not Handling Persistent Volumes Correctly
- false error of missing of dependency HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm.