BUGFIX: Venafi issuer and clusterissuer checks were failing due to nilpointer exception
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
parent
1b9c02e999
commit
e906cb8db0
@ -60,13 +60,13 @@ func (c *controller) issuersForSecret(secret *corev1.Secret) ([]*v1.ClusterIssue
|
||||
affected = append(affected, iss)
|
||||
continue
|
||||
}
|
||||
}
|
||||
if iss.Spec.Venafi.TPP.CABundleSecretRef != nil {
|
||||
if iss.Spec.Venafi.TPP.CABundleSecretRef.Name == secret.Name {
|
||||
affected = append(affected, iss)
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
if iss.Spec.Venafi.Cloud != nil {
|
||||
if iss.Spec.Venafi.Cloud.APITokenSecretRef.Name == secret.Name {
|
||||
affected = append(affected, iss)
|
||||
|
||||
@ -62,13 +62,13 @@ func (c *controller) issuersForSecret(secret *corev1.Secret) ([]*v1.Issuer, erro
|
||||
affected = append(affected, iss)
|
||||
continue
|
||||
}
|
||||
}
|
||||
if iss.Spec.Venafi.TPP.CABundleSecretRef != nil {
|
||||
if iss.Spec.Venafi.TPP.CABundleSecretRef.Name == secret.Name {
|
||||
affected = append(affected, iss)
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
if iss.Spec.Venafi.Cloud != nil {
|
||||
if iss.Spec.Venafi.Cloud.APITokenSecretRef.Name == secret.Name {
|
||||
affected = append(affected, iss)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user