-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Update metrics-server chart to show in kubectl cluster-info #12608
Conversation
Hi @ryanhartje. Thanks for your PR. I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
95f5654
to
1eec534
Compare
@olemarkus @kennethaasan anything I can do to move this along before it gets stale? |
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.
Sorry for missing this one. Just bump the major version and this should be good to go
stable/metrics-server/Chart.yaml
Outdated
@@ -2,7 +2,7 @@ apiVersion: v1 | |||
appVersion: 0.3.1 | |||
description: Metrics Server is a cluster-wide aggregator of resource usage data. | |||
name: metrics-server | |||
version: 2.5.1 | |||
version: 2.5.2 |
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.
Can you bump minor version?
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.
👍
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.
Actually, why would we update the minor version? Did you mean the patch version? The current version of the chart is already bumped appropriately. If you disagree, can you please elaborate?
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.
@olemarkus I'm not seeing any merge conflicts or otherwise and am confused by the above, please advise.
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.
Any new feature should be a minor increase, as @olemarkus suggested. You added a backwards compatible new option serviceLabels
that didn't exist before and according to semver that warrants a minor bump.
/ok-to-test |
stable/metrics-server/values.yaml
Outdated
# priorityClassName: system-node-critical | ||
serviceLabels: {} | ||
# Enable the next two labels to show metrics-server when running kubectl cluster-info | ||
# kubernetes.io/cluster-service: "true" |
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.
Any downside to enabling these by default?
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.
I chose not to, as I don't want to prescribe my solution.
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.
Not adding this label by default is probably reasonable as I believe it has no meaning outside of the kube-system
namespace. Before I was aware of this pending change, I opened a PR to add the label to the official example deployment: kubernetes-sigs/metrics-server#252
@@ -7,6 +7,9 @@ metadata: | |||
chart: {{ template "metrics-server.chart" . }} | |||
release: {{ .Release.Name }} | |||
heritage: {{ .Release.Service }} | |||
{{- with .Values.serviceLabels }} |
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.
As .Values.service.annotations
has been merged, this should probably be changed to .Values.service.labels
for consistency.
It looks like this PR needs to be rebased, the version string updated, and the label key names changed to be consistent with the current state of the chart. |
/assign |
@ryanhartje Can you resolve the merge conflicts and squash the commit history? |
87e45a4
to
2347ead
Compare
Thanks @tariq1890, @jhoblitt, @steven-sheehy, @olemarkus for your feedback. |
stable/metrics-server/README.md
Outdated
@@ -29,6 +29,7 @@ Parameter | Description | Default | |||
`priorityClassName` | Pod priority class | `""` | |||
`readinessProbe` | Container readiness probe | See values.yaml | |||
`service.annotations` | Annotations to add to the service | `{}` | |||
`service.labels` | labels to be added to the metrics-server service | `{}` |
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.
`service.labels` | labels to be added to the metrics-server service | `{}` | |
`service.labels` | Labels to be added to the metrics-server service | `{}` |
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.
I recommend applying this manually and force pushing this :).
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.
why edit this only, as opposed to all of these?
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.
I think you misunderstood my review comment. The uppercasing of the first letter was only meant for the Description, not the value field.
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.
Yep, I sure did.
@@ -7,6 +7,9 @@ metadata: | |||
chart: {{ template "metrics-server.chart" . }} | |||
release: {{ .Release.Name }} | |||
heritage: {{ .Release.Service }} | |||
{{- with .Values.service.labels }} |
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.
Can we format this properly here?
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.
I've updated them all, I think this is what we want here.
Last round of review comments. Your patience is greatly appreciated @ryanhartje! |
3230eae
to
3e45224
Compare
@tariq1890 no worries, thanks for reviewing |
/test pull-charts-e2e |
stable/metrics-server/README.md
Outdated
`service.annotations` | Annotations to add to the service | `{}` | ||
`service.port` | Service port to expose | `443` | ||
`service.type` | Type of service to create | `ClusterIP` | ||
`service.Annotations` | Annotations to add to the service | `{}` |
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.
Can we change all of these service var names back to camelCase please?
a538239
to
9fcb796
Compare
9fcb796
to
67575da
Compare
Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> fixed formatting Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> forgot to sign off. Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> bump version and append values table in README.md Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update stable/metrics-server/README.md Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update stable/metrics-server/values.yaml Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> implementing feedback for metrics-server chart. Bumped chart version, updated metric-server-service template with server.labels value Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> adding new line at EOF for values in metrics-server chart to pass lint Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> can't win with these autoformatted spaces at the end of my values file... Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] Fix readme typo Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update metrics-server chart to show up in kubectl cluster-info Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> fixed formatting Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> forgot to sign off. Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> bump version and append values table in README.md Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update stable/metrics-server/README.md Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update stable/metrics-server/values.yaml Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> implementing feedback for metrics-server chart. Bumped chart version, updated metric-server-service template with server.labels value Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> adding new line at EOF for values in metrics-server chart to pass lint Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> can't win with these autoformatted spaces at the end of my values file... Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] Fix readme typo Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] updating service variable formatting to be consistent Signed-off-by: Ryan Hartje <ryan@ryanhartje.com> [stable/metrics-server] oof, mismatch for vars between values.yaml and the templates Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] reverting service values to camelCase as they should be Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] updating template format Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com>
67575da
to
7834765
Compare
/lgtm |
@tariq1890: adding LGTM is restricted to approvers and reviewers in OWNERS files. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: olemarkus, ryanhartje, tariq1890 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 |
…12608) Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> fixed formatting Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> forgot to sign off. Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> bump version and append values table in README.md Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update stable/metrics-server/README.md Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update stable/metrics-server/values.yaml Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> implementing feedback for metrics-server chart. Bumped chart version, updated metric-server-service template with server.labels value Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> adding new line at EOF for values in metrics-server chart to pass lint Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> can't win with these autoformatted spaces at the end of my values file... Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] Fix readme typo Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update metrics-server chart to show up in kubectl cluster-info Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> fixed formatting Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> forgot to sign off. Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> bump version and append values table in README.md Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update stable/metrics-server/README.md Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update stable/metrics-server/values.yaml Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> implementing feedback for metrics-server chart. Bumped chart version, updated metric-server-service template with server.labels value Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> adding new line at EOF for values in metrics-server chart to pass lint Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> can't win with these autoformatted spaces at the end of my values file... Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] Fix readme typo Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] updating service variable formatting to be consistent Signed-off-by: Ryan Hartje <ryan@ryanhartje.com> [stable/metrics-server] oof, mismatch for vars between values.yaml and the templates Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] reverting service values to camelCase as they should be Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] updating template format Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com>
…12608) Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> fixed formatting Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> forgot to sign off. Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> bump version and append values table in README.md Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update stable/metrics-server/README.md Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update stable/metrics-server/values.yaml Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> implementing feedback for metrics-server chart. Bumped chart version, updated metric-server-service template with server.labels value Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> adding new line at EOF for values in metrics-server chart to pass lint Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> can't win with these autoformatted spaces at the end of my values file... Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] Fix readme typo Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update metrics-server chart to show up in kubectl cluster-info Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> fixed formatting Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> forgot to sign off. Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> bump version and append values table in README.md Signed-off-by: ryanhartje <ryan.hartje@microsoft.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update stable/metrics-server/README.md Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> Update stable/metrics-server/values.yaml Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com> Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> implementing feedback for metrics-server chart. Bumped chart version, updated metric-server-service template with server.labels value Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> adding new line at EOF for values in metrics-server chart to pass lint Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> can't win with these autoformatted spaces at the end of my values file... Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] Fix readme typo Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] updating service variable formatting to be consistent Signed-off-by: Ryan Hartje <ryan@ryanhartje.com> [stable/metrics-server] oof, mismatch for vars between values.yaml and the templates Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] reverting service values to camelCase as they should be Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com> [stable/metrics-server] updating template format Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com>
What this PR does / why we need it:
This PR adds metrics-server to
kubectl cluster-info
. This seems appropriate, as Heapster used to report incluster-info
.Before:
After
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]