diff --git a/internal/status/gql_reporter.go b/internal/status/gql_reporter.go index e5d7354a5..e86ac7c5f 100644 --- a/internal/status/gql_reporter.go +++ b/internal/status/gql_reporter.go @@ -11,6 +11,7 @@ import ( "github.com/sirupsen/logrus" "github.com/kubeshop/botkube/internal/remote" + "github.com/kubeshop/botkube/pkg/version" ) var _ StatusReporter = (*GraphQLStatusReporter)(nil) @@ -55,11 +56,12 @@ func (r *GraphQLStatusReporter) ReportDeploymentStartup(ctx context.Context) err err := r.withRetry(ctx, logger, func() error { var mutation struct { - Success bool `graphql:"reportDeploymentStartup(id: $id, resourceVersion: $resourceVersion)"` + Success bool `graphql:"reportDeploymentStartup(id: $id, resourceVersion: $resourceVersion, botkubeVersion: $botkubeVersion)"` } variables := map[string]interface{}{ "id": graphql.ID(r.gql.DeploymentID()), "resourceVersion": r.getResourceVersion(), + "botkubeVersion": version.Info().Version, } err := r.gql.Client().Mutate(ctx, &mutation, variables) return err