Skip to content

Commit

Permalink
Merge pull request #1244 from stevehipwell/chart-v3-10-0
Browse files Browse the repository at this point in the history
Release Helm Chart v3.10.0
  • Loading branch information
k8s-ci-robot committed Apr 12, 2023
2 parents 5748099 + ecf98e9 commit 3b88170
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 11 deletions.
12 changes: 7 additions & 5 deletions charts/metrics-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: metrics-server
description: Metrics Server is a scalable, efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines.
type: application
version: 3.9.0
version: 3.10.0
appVersion: 0.6.3
keywords:
- kubernetes
Expand All @@ -21,9 +21,11 @@ maintainers:
url: https://github.com/endrec
annotations:
artifacthub.io/changes: |
- kind: fixed
description: "Fixed auth-reader role binding namespace to always use kube-system."
- kind: fixed
description: "Fixed addon resizer configuration."
- kind: added
description: "Added autoscaling support via the addon-resizer."
- kind: changed
description: "Updated the Metrics Server OCI image to v0.6.3."
description: "Added support for running under PodSecurity restricted."
- kind: fixed
description: "Fixed service labels/annotations."
description: "Fixed container port default not having been updated to 10250."
14 changes: 14 additions & 0 deletions charts/metrics-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,20 @@ The image to use for the addon resizer
{{- printf "%s:%s" .Values.addonResizer.image.repository .Values.addonResizer.image.tag }}
{{- end }}

{{/*
ConfigMap name of addon resizer
*/}}
{{- define "metrics-server.addonResizer.configMap" -}}
{{- printf "%s-%s" (include "metrics-server.fullname" .) "nanny-config" }}
{{- end }}

{{/*
Role name of addon resizer
*/}}
{{- define "metrics-server.addonResizer.role" -}}
{{ printf "system:%s-nanny" (include "metrics-server.fullname" .) }}
{{- end }}

{{/* Get PodDisruptionBudget API Version */}}
{{- define "metrics-server.pdb.apiVersion" -}}
{{- if and (.Capabilities.APIVersions.Has "policy/v1") (semverCompare ">= 1.21-0" .Capabilities.KubeVersion.Version) -}}
Expand Down
2 changes: 1 addition & 1 deletion charts/metrics-server/templates/configmaps-nanny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "metrics-server.fullname" .}}-nanny-config
name: {{ include "metrics-server.addonResizer.configMap" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "metrics-server.labels" . | nindent 4 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/metrics-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ spec:
volumes:
- name: tmp
emptyDir: {}
{{- if .Values.addonResizer.enabled }}
- name: nanny-config-volume
configMap:
name: {{ include "metrics-server.addonResizer.configMap" . }}
{{- end }}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions charts/metrics-server/templates/role-nanny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ printf "system:%s-nanny" (include "metrics-server.fullname" .) }}
name: {{ include "metrics-server.addonResizer.role" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "metrics-server.labels" . | nindent 4 }}
Expand All @@ -19,7 +19,7 @@ rules:
resources:
- deployments
resourceNames:
- metrics-server
- {{ include "metrics-server.fullname" . }}
verbs:
- get
- patch
Expand Down
2 changes: 1 addition & 1 deletion charts/metrics-server/templates/rolebinding-nanny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: metrics-server-nanny
name: {{ include "metrics-server.addonResizer.role" . }}
subjects:
- kind: ServiceAccount
name: {{ include "metrics-server.serviceAccountName" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/metrics-server/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ printf "%s-auth-reader" (include "metrics-server.fullname" .) }}
namespace: {{ .Release.Namespace }}
namespace: kube-system
labels:
{{- include "metrics-server.labels" . | nindent 4 }}
roleRef:
Expand Down
7 changes: 6 additions & 1 deletion charts/metrics-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,15 @@ securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL

priorityClassName: system-cluster-critical

containerPort: 4443
containerPort: 10250

hostNetwork:
# Specifies if metrics-server should be started in hostNetwork mode.
Expand Down

0 comments on commit 3b88170

Please sign in to comment.