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

Update kube-thanos #741

Merged
merged 3 commits into from Apr 7, 2020
Merged

Conversation

brancz
Copy link
Contributor

@brancz brancz commented Apr 6, 2020

This PR updates the kube-thanos dependency to latest master and consistently uses the Kubernetes recommended app labels for the Thanos query component.

@openshift/openshift-team-monitoring

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 6, 2020
@lilic
Copy link
Contributor

lilic commented Apr 6, 2020

Your generate test is failing 😝 think you need run the make generate command.

@brancz
Copy link
Contributor Author

brancz commented Apr 6, 2020

Your generate test is failing stuck_out_tongue_closed_eyes think you need run the make generate command.

Also realized this, was already running 🙂 . Done.

@@ -37,7 +59,7 @@ spec:
- if [ -x "$(command -v curl)" ]; then curl http://localhost:9090/-/healthy;
elif [ -x "$(command -v wget)" ]; then wget --quiet --tries=1 --spider
http://localhost:9090/-/healthy; else exit 1; fi
name: thanos-querier
name: thanos-query
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! Updated.

@lilic
Copy link
Contributor

lilic commented Apr 6, 2020

2020/04/06 11:22:05 wait for prometheus-k8s: error executing prometheus query: unexpected status code response, want 200, got 403: timed out waiting for the condition

seems like tests fail 🤔

@lilic
Copy link
Contributor

lilic commented Apr 6, 2020

Note there is a flake around our e2e tests, which might be the failure is about.

@simonpasquier
Copy link
Contributor

These failures don't involve port-forwarding.

/retest

Copy link
Contributor

@lilic lilic left a comment

Choose a reason for hiding this comment

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

looking good

app.kubernetes.io/name: thanos-querier
app.kubernetes.io/component: query-layer
app.kubernetes.io/instance: thanos-querier
app.kubernetes.io/name: thanos-query
Copy link
Contributor

Choose a reason for hiding this comment

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

deployment name is still thanos-querier, I expect the name to reflect that, wdyt?

Copy link
Contributor Author

@brancz brancz Apr 7, 2020

Choose a reason for hiding this comment

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

name is the kubernetes app name (instance already reflects the name of this particular instance), as kube-thanos is the defining entity here, I don't think we should change this, we should however eventually rename thanos-querier to thanos-query

Copy link
Contributor

Choose a reason for hiding this comment

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

we should however eventually rename thanos-querier to thanos-query

Agreed, can you open jira for this? Thanks! :)

@@ -2602,7 +2602,7 @@ func (f *Factory) ThanosQuerierDeployment(grpcTLS *v1.Secret, enableUserWorkload

if f.config.ThanosQuerierConfig.Resources != nil {
for i, c := range d.Spec.Template.Spec.Containers {
if c.Name == "thanos-querier" {
if c.Name == "thanos-query" {
Copy link
Contributor

Choose a reason for hiding this comment

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

We have this in the unit tests as well. Can you also add we should error out if that container name is not there, thanks! Or we can do that in follow up as well. Lets just adjust that test, thanks!

if c.Name == "thanos-querier" {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, fixed

Copy link
Contributor

@lilic lilic left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 7, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brancz, lilic

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants