Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8SPSMDB-1174: Improve telemetry requests #1725

Merged
merged 7 commits into from
Dec 2, 2024
Merged

K8SPSMDB-1174: Improve telemetry requests #1725

merged 7 commits into from
Dec 2, 2024

Conversation

egegunes
Copy link
Contributor

@egegunes egegunes commented Nov 14, 2024

K8SPSMDB-1174 Powered by Pull Request Badge

CHANGE DESCRIPTION

Before these changes, operator was only sending telemetry requests to version service while cluster is newly deployed. This makes it impossible for us to track usage of new features in long running clusters.

With these changes, operator will configure a cronjob to send telemetry requests every hour at a random minute.

Also, I added some fields that we're missing:

  1. VolumeExpansionEnabled
  2. MCSEnabled
  3. UserManagementEnabled
  4. RoleManagementEnabled

version-service PR: Percona-Lab/percona-version-service#334

CHECKLIST

Jira

  • Is the Jira ticket created and referenced properly?
  • Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
  • Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

  • Is an E2E test/test case added for the new feature/change?
  • Are unit tests added where appropriate?
  • Are OpenShift compare files changed for E2E tests (compare/*-oc.yml)?

Config/Logging/Testability

  • Are all needed new/changed options added to default YAML files?
  • Are all needed new/changed options added to the Helm Chart?
  • Did we add proper logging messages for operator actions?
  • Did we ensure compatibility with the previous version or cluster upgrade process?
  • Does the change support oldest and newest supported MongoDB version?
  • Does the change support oldest and newest supported Kubernetes version?

Before these changes, operator was only sending telemetry requests to
version service while cluster is newly deployed. This makes it
impossible for us to track usage of new features in long running
clusters.

With these changes, operator will configure a cronjob to send telemetry
requests every hour at a random minute.

Also, I added some fields that we're missing:
1. VolumeExpansionEnabled
2. MCSEnabled
3. UserManagementEnabled
4. RoleManagementEnabled
@pull-request-size pull-request-size bot added the size/L 100-499 lines label Nov 14, 2024
for the version service apply operation.

Typically these are written to a http.Request.
/*VersionServiceApplyParams contains all the parameters to send to the API endpoint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶

Suggested change
/*VersionServiceApplyParams contains all the parameters to send to the API endpoint
/*
VersionServiceApplyParams contains all the parameters to send to the API endpoint

@@ -46,8 +46,7 @@ func NewVersionServiceApplyOK() *VersionServiceApplyOK {
return &VersionServiceApplyOK{}
}

/*
VersionServiceApplyOK describes a response with status code 200, with default header values.
/*VersionServiceApplyOK handles this case with default header values.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶

Suggested change
/*VersionServiceApplyOK handles this case with default header values.
/*
VersionServiceApplyOK handles this case with default header values.

@@ -81,10 +81,9 @@
}
}

/*
VersionServiceApplyDefault describes a response with status code -1, with default header values.
/*VersionServiceApplyDefault handles this case with default header values.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶

Suggested change
/*VersionServiceApplyDefault handles this case with default header values.
/*
VersionServiceApplyDefault handles this case with default header values.


SetTransport(transport runtime.ClientTransport)
}

/*
VersionServiceApply specifics version
VersionServiceApply specifics version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶

Suggested change
VersionServiceApply specifics version
VersionServiceApply specifics version


Return specific product version
Return specific product version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶

Suggested change
Return specific product version
Return specific product version

@@ -46,8 +46,7 @@ func NewVersionServiceOperatorOK() *VersionServiceOperatorOK {
return &VersionServiceOperatorOK{}
}

/*
VersionServiceOperatorOK describes a response with status code 200, with default header values.
/*VersionServiceOperatorOK handles this case with default header values.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶

Suggested change
/*VersionServiceOperatorOK handles this case with default header values.
/*
VersionServiceOperatorOK handles this case with default header values.

@@ -81,10 +81,9 @@
}
}

/*
VersionServiceOperatorDefault describes a response with status code -1, with default header values.
/*VersionServiceOperatorDefault handles this case with default header values.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶

Suggested change
/*VersionServiceOperatorDefault handles this case with default header values.
/*
VersionServiceOperatorDefault handles this case with default header values.

for the version service product operation.

Typically these are written to a http.Request.
/*VersionServiceProductParams contains all the parameters to send to the API endpoint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶

Suggested change
/*VersionServiceProductParams contains all the parameters to send to the API endpoint
/*
VersionServiceProductParams contains all the parameters to send to the API endpoint

@@ -46,8 +46,7 @@ func NewVersionServiceProductOK() *VersionServiceProductOK {
return &VersionServiceProductOK{}
}

/*
VersionServiceProductOK describes a response with status code 200, with default header values.
/*VersionServiceProductOK handles this case with default header values.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶

Suggested change
/*VersionServiceProductOK handles this case with default header values.
/*
VersionServiceProductOK handles this case with default header values.

@@ -81,10 +81,9 @@
}
}

/*
VersionServiceProductDefault describes a response with status code -1, with default header values.
/*VersionServiceProductDefault handles this case with default header values.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[gofmt] reported by reviewdog 🐶

Suggested change
/*VersionServiceProductDefault handles this case with default header values.
/*
VersionServiceProductDefault handles this case with default header values.

@egegunes egegunes marked this pull request as ready for review November 18, 2024 07:53
@egegunes egegunes added this to the v1.19.0 milestone Nov 25, 2024
@hors hors merged commit 74f7c8e into main Dec 2, 2024
5 of 7 checks passed
@hors hors deleted the K8SPSMDB-1174 branch December 2, 2024 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L 100-499 lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants