Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Update metrics-server chart to show in kubectl cluster-info #12608

Merged
merged 1 commit into from
May 20, 2019

Conversation

goshlanguage
Copy link
Contributor

@goshlanguage goshlanguage commented Mar 28, 2019

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 in cluster-info.

Before:

λ ~/ kubectl cluster-info
Kubernetes master is running at https://192.168.0.1:6443
KubeDNS is running at https://192.168.0.1:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

After

λ ~/ kubectl cluster-info
Kubernetes master is running at https://192.168.0.1:6443
KubeDNS is running at https://192.168.0.1:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
Metrics-server is running at https://192.168.0.1:6443/api/v1/namespaces/kube-system/services/https:metrics-server:/proxy

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • fixes #

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md

@helm-bot helm-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 28, 2019
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 28, 2019
@k8s-ci-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@helm-bot helm-bot added Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 28, 2019
@goshlanguage
Copy link
Contributor Author

@olemarkus @kennethaasan anything I can do to move this along before it gets stale?

Copy link
Contributor

@olemarkus olemarkus left a 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

@@ -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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

@steven-sheehy steven-sheehy Apr 13, 2019

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.

@olemarkus
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 9, 2019
# priorityClassName: system-node-critical
serviceLabels: {}
# Enable the next two labels to show metrics-server when running kubectl cluster-info
# kubernetes.io/cluster-service: "true"
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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 }}
Copy link
Contributor

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.

@jhoblitt
Copy link
Contributor

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.

@olemarkus
Copy link
Contributor

/assign

@helm-bot helm-bot removed the Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). label May 16, 2019
@tariq1890
Copy link
Collaborator

@ryanhartje Can you resolve the merge conflicts and squash the commit history?

@helm-bot helm-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 16, 2019
@helm-bot helm-bot added Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 16, 2019
@helm-bot helm-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 17, 2019
@goshlanguage
Copy link
Contributor Author

Thanks @tariq1890, @jhoblitt, @steven-sheehy, @olemarkus for your feedback.

@@ -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 | `{}`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
`service.labels` | labels to be added to the metrics-server service | `{}`
`service.labels` | Labels to be added to the metrics-server service | `{}`

Copy link
Collaborator

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 :).

Copy link
Contributor Author

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?

Copy link
Collaborator

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.

Copy link
Contributor Author

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 }}
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

@tariq1890
Copy link
Collaborator

Last round of review comments. Your patience is greatly appreciated @ryanhartje!

@goshlanguage
Copy link
Contributor Author

@tariq1890 no worries, thanks for reviewing

@tariq1890
Copy link
Collaborator

/test pull-charts-e2e

`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 | `{}`
Copy link
Collaborator

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?

@goshlanguage goshlanguage force-pushed the cluster-info-labels branch 2 times, most recently from a538239 to 9fcb796 Compare May 20, 2019 14:28
@helm-bot helm-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 20, 2019
@helm-bot helm-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 20, 2019
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>
@tariq1890
Copy link
Collaborator

/lgtm

@k8s-ci-robot
Copy link
Contributor

@tariq1890: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

/lgtm

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.

@tariq1890
Copy link
Collaborator

/approve

@olemarkus
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 20, 2019
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 20, 2019
@k8s-ci-robot k8s-ci-robot merged commit efa091f into helm:master May 20, 2019
@goshlanguage goshlanguage deleted the cluster-info-labels branch May 20, 2019 20:35
amine7536 pushed a commit to amine7536/charts that referenced this pull request May 21, 2019
…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>
eyenx pushed a commit to eyenx/charts that referenced this pull request May 28, 2019
…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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). lgtm Indicates that a PR is ready to be merged. ok-to-test size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants