feat(dao,used-by-cmd): check imagePullSecrets as well (#2964)
parent
92ff64eac3
commit
4c4381b834
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue