store time of the cluster event

This commit is contained in:
Murat Kabilov
2017-09-26 13:17:23 +02:00
parent c44cfff988
commit f77852a152
3 changed files with 3 additions and 2 deletions
+1 -2
View File
@@ -48,8 +48,7 @@ func (c *Controller) clusterWorkerID(clusterName spec.NamespacedName) uint32 {
func (c *Controller) createTPR() error {
tpr := thirdPartyResource(constants.TPRName)
_, err := c.KubeClient.ThirdPartyResources().Create(tpr)
if err != nil {
if _, err := c.KubeClient.ThirdPartyResources().Create(tpr); err != nil {
if !k8sutil.ResourceAlreadyExists(err) {
return err
}