Skip to content

Commit

Permalink
Make ClusterBootstrapTokenCreated known again (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
jastBytes committed Jun 22, 2022
1 parent f98e55f commit aaceee0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/domain/constants/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions pkg/domain/projectors/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit aaceee0

Please sign in to comment.