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:
Tim Ramlot 2024-06-28 10:03:43 +02:00
parent 1b9c02e999
commit e906cb8db0
No known key found for this signature in database
GPG Key ID: 47428728E0C2878D
2 changed files with 10 additions and 10 deletions

View File

@ -60,11 +60,11 @@ 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.TPP.CABundleSecretRef != nil {
if iss.Spec.Venafi.TPP.CABundleSecretRef.Name == secret.Name {
affected = append(affected, iss)
continue
}
}
}
if iss.Spec.Venafi.Cloud != nil {

View File

@ -62,11 +62,11 @@ 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.TPP.CABundleSecretRef != nil {
if iss.Spec.Venafi.TPP.CABundleSecretRef.Name == secret.Name {
affected = append(affected, iss)
continue
}
}
}
if iss.Spec.Venafi.Cloud != nil {