From aaceee0a786cd6eae988d69cb98b34fb24fdcdd7 Mon Sep 17 00:00:00 2001 From: Jan Steffen Date: Wed, 22 Jun 2022 15:02:13 +0200 Subject: [PATCH] Make ClusterBootstrapTokenCreated known again (#180) --- pkg/domain/constants/events/events.go | 2 ++ pkg/domain/projectors/cluster.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pkg/domain/constants/events/events.go b/pkg/domain/constants/events/events.go index 9d2704ea5..6cf2d83f6 100644 --- a/pkg/domain/constants/events/events.go +++ b/pkg/domain/constants/events/events.go @@ -42,6 +42,8 @@ const ( ClusterUpdated es.EventType = "ClusterUpdated" // ClusterDeleted event emitted when a Cluster has been deleted ClusterDeleted es.EventType = "ClusterDeleted" + // IGNORED: ClusterBootstrapTokenCreated event emitted when a bootstrap token has been created + ClusterBootstrapTokenCreated es.EventType = "ClusterBootstrapTokenCreated" // CertificateRequested event emitted when a certificate has been requested CertificateRequested es.EventType = "CertificateRequested" diff --git a/pkg/domain/projectors/cluster.go b/pkg/domain/projectors/cluster.go index 5bac060f9..2f15bceca 100644 --- a/pkg/domain/projectors/cluster.go +++ b/pkg/domain/projectors/cluster.go @@ -90,6 +90,8 @@ func (c *clusterProjector) Project(ctx context.Context, event es.Event, cluster if err := c.projectDeleted(event, cluster.DomainProjection); err != nil { return nil, err } + case events.ClusterBootstrapTokenCreated: + // IGNORED, not in use anymore default: return nil, errors.ErrInvalidEventType }