Skip to content

Commit

Permalink
feat(dao,used-by-cmd): check imagePullSecrets as well (#2964)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbadstuebner authored Nov 16, 2024
1 parent 92ff64e commit 4c4381b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/dao/dp.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@ func hasSecret(f Factory, spec *v1.PodSpec, ns, name string, wait bool) (bool, e
}
}

for _, imagePullSecret := range spec.ImagePullSecrets {
if imagePullSecret.Name == name {
return true, nil
}
}

saName := spec.ServiceAccountName
if saName != "" {
o, err := f.Get("v1/serviceaccounts", client.FQN(ns, saName), wait, labels.Everything())
Expand Down

0 comments on commit 4c4381b

Please sign in to comment.