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

Ignore cluster if it is empty #234

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

triarius
Copy link
Contributor

@triarius triarius commented Nov 27, 2023

#227 added support for clusters, but as was somewhat anticipated, it
broke compatibility with some existing backends because it added a
new dimension/label/tag or some equivalent for the cluster. In this PR,
we refrain from doing so if the cluster is the empty string.

One thing to note is that the cluster is not specified when the process
starts, it is determined from the cluster token by the backend which includes the name
of the cluster in its response. If the token is for unclustered agents,
that part of the response will be the empty string.

@triarius triarius force-pushed the pdp-1943-ignore-cluster-if-it-is-empty branch from b543f68 to 1cd3bb7 Compare November 27, 2023 02:44
\#227 added support for clusters, but as was somewhat anticipated, it
broke compatibility with the some existing backends because it added a
new dimension/label/tag or some equivalent for the cluster. In this PR,
we refrain from doing so if the cluster is the empty string.

One thing to note is that the cluster is not specified when the process
starts, it is encoded in the cluster token, and the backend include the name
of the cluster in its response. If the token is for unclustered agents,
that part of the response will be the empty string.
@triarius triarius force-pushed the pdp-1943-ignore-cluster-if-it-is-empty branch from 1cd3bb7 to a2fd1bc Compare November 27, 2023 03:18
@triarius triarius requested a review from a team November 27, 2023 03:40
@triarius triarius merged commit 3303fca into master Nov 27, 2023
1 check passed
@triarius triarius deleted the pdp-1943-ignore-cluster-if-it-is-empty branch November 27, 2023 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants