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 }