diff --git a/pkg/api/models/event.go b/pkg/api/models/event.go index 32eb57a99a..02dbf27faf 100644 --- a/pkg/api/models/event.go +++ b/pkg/api/models/event.go @@ -32,7 +32,7 @@ type Event struct { // A human-readable description of the event Message string `json:"message,omitempty"` - // A short, machine understandable string that gives the reason + // A short, machine understandable string that gives the reason for the event Reason string `json:"reason,omitempty"` // Type of this event diff --git a/pkg/api/rest/configure.go b/pkg/api/rest/configure.go index 108c9a2f58..c5a7e44323 100644 --- a/pkg/api/rest/configure.go +++ b/pkg/api/rest/configure.go @@ -43,6 +43,7 @@ func Configure(api *operations.KubernikusAPI, rt *apipkg.Runtime) { api.GetClusterCredentialsHandler = handlers.NewGetClusterCredentials(rt) api.GetClusterInfoHandler = handlers.NewGetClusterInfo(rt) api.GetOpenstackMetadataHandler = handlers.NewGetOpenstackMetadata(rt) + api.GetClusterEventsHandler = handlers.NewGetClusterEvents(rt) api.ServerShutdown = func() {} diff --git a/pkg/api/spec/embedded_spec.go b/pkg/api/spec/embedded_spec.go index fc3004c462..755c97d8ae 100644 --- a/pkg/api/spec/embedded_spec.go +++ b/pkg/api/spec/embedded_spec.go @@ -309,7 +309,7 @@ func init() { "type": "string" }, "reason": { - "description": "A short, machine understandable string that gives the reason", + "description": "A short, machine understandable string that gives the reason for the event", "type": "string" }, "type": {