Skip to content

Commit

Permalink
Add podLabels field (#26)
Browse files Browse the repository at this point in the history
* Add standard podLabels field to allow additional labels on pods

* Update chart version and documentation

Co-authored-by: Hazim Malik <[email protected]>
Co-authored-by: Hazim Malik <[email protected]>
  • Loading branch information
3 people authored May 19, 2022
1 parent b774a7a commit eb3c078
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/chartmuseum/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Host your own Helm Chart Repository
name: chartmuseum
version: 3.7.1
version: 3.8.0
appVersion: 0.14.0
home: https://github.com/helm/chartmuseum
icon: https://raw.githubusercontent.com/chartmuseum/charts/main/logo.jpg
Expand Down
1 change: 1 addition & 0 deletions src/chartmuseum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ their default values. See values.yaml for all available options.
| `deployment.extraVolumes` | Additional volumes for deployment | `[]` |
| `deployment.extraVolumeMounts` | Additional volumes to mount in container for deployment | `[]` |
| `podAnnotations` | Annotations for pods | `{}` |
| `podLabels` | Labels for pods | `{}` |
| `ingress.enabled` | Enable ingress controller resource | `false` |
| `ingress.pathType` | Ingress pathType for Kubernetes 1.18 and above | `ImplementationSpecific` |
| `ingress.annotations` | Ingress annotations | `{}` |
Expand Down
3 changes: 3 additions & 0 deletions src/chartmuseum/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ spec:
{{- end }}
labels:
{{- include "chartmuseum.selectorLabels" . | nindent 8 }}
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
spec:
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
Expand Down
5 changes: 5 additions & 0 deletions src/chartmuseum/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ deployment:
podAnnotations: {}
# iam.amazonaws.com/role: role-arn

## Pod labels
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podLabels: {}
# name: value

service:
servicename:
type: ClusterIP
Expand Down

0 comments on commit eb3c078

Please sign in to comment.