portainer/portainer · error
failed to convert pod to application: %w
Error message
failed to convert pod to application: %w
What it means
Error "failed to convert pod to application: %w" thrown in portainer/portainer.
Source
Thrown at api/kubernetes/cli/persistent_volume_claims.go:279
resources := PortainerApplicationResources{
ReplicaSets: replicaSetItems,
Deployments: deploymentItems,
StatefulSets: statefulSetItems,
DaemonSets: daemonSetItems,
}
for i := range pvcs {
for _, pod := range pods.Items {
for _, podVolume := range pod.Spec.Volumes {
if podVolume.PersistentVolumeClaim == nil {
continue
}
if podVolume.PersistentVolumeClaim.ClaimName != pvcs[i].Name || pod.Namespace != pvcs[i].Namespace {
continue
}
application, err := kcl.ConvertPodToApplication(pod, resources, false)
if err != nil {
return nil, fmt.Errorf("failed to convert pod to application: %w", err)
}
if application == nil {
continue
}
alreadyAdded := false
for _, existing := range pvcs[i].OwningApplications {
if existing.Name == application.Name && existing.Namespace == application.Namespace {
alreadyAdded = true
break
}
}
if !alreadyAdded {
pvcs[i].OwningApplications = append(pvcs[i].OwningApplications, *application)
}
}
}
}
View on GitHub (pinned to 17e74456ff)
When it happens
Trigger: Thrown at api/kubernetes/cli/persistent_volume_claims.go:279 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of portainer/portainer@17e74456ff (2026-08-26).
Data as JSON: /api/errors/bff90a0ec976d301.
Report an issue: GitHub.