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
Update kube-thanos #741
Conversation
Your generate test is failing 😝 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note this is used and should be changed here as well https://github.com/openshift/cluster-monitoring-operator/blob/master/pkg/manifests/manifests.go#L2605
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Updated.
seems like tests fail 🤔 |
Note there is a flake around our e2e tests, which might be the failure is about. |
These failures don't involve port-forwarding. /retest |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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" { |
There was a problem hiding this comment.
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" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[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 |
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