Skip to content

Commit

Permalink
workaround: reload CA certificates anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
pjuarezd committed Aug 26, 2023
1 parent e4153f0 commit ec9f9b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ func (c *Controller) checkOpenshiftSignerCACertInOperatorNamespace(ctx context.C
},
}
_, err = c.kubeClientSet.CoreV1().Secrets(namespace).Create(ctx, csrSignerSecret, metav1.CreateOptions{})
// Reload CA certificates
c.createTransport()
return err
}
return err
Expand All @@ -271,6 +273,9 @@ func (c *Controller) checkOpenshiftSignerCACertInOperatorNamespace(ctx context.C
return err
}
klog.Infof("'%s/%s' secret changed, updating '%s/%s' secret", OpenshiftKubeControllerNamespace, OpenshiftCATLSSecretName, namespace, OperatorCSRSignerCASecretName)
c.fetchTransportCACertificates()
// Reload CA certificates
c.createTransport()
}
return nil
}
Expand Down

0 comments on commit ec9f9b3

Please sign in to comment.