Skip to content

Commit

Permalink
feat: Annotations to set on the deployment via values (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoechsler committed May 30, 2023
1 parent 2b5cf9d commit 5e934ad
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ The following table lists the configurable parameters of the Verdaccio chart
and their default values.

| Parameter | Description | Default |
| ---------------------------------- | -------------------------------------------------------------------------------- | ------------------------------ |
|------------------------------------| -------------------------------------------------------------------------------- | ------------------------------ |
| `annotations` | Annotations to set on the deployment | `{}` |
| `affinity` | Affinity for pod assignment | `{}` |
| `existingConfigMap` | Name of custom ConfigMap to use | `false` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
Expand Down
2 changes: 1 addition & 1 deletion charts/verdaccio/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: A lightweight private node.js proxy registry
name: verdaccio
version: 4.11.0
version: 4.12.0
appVersion: 5.21.1
home: https://verdaccio.org
icon: https://cdn.verdaccio.dev/logos/default.png
Expand Down
4 changes: 4 additions & 0 deletions charts/verdaccio/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: {{ template "verdaccio.fullname" . }}
labels:
{{- include "verdaccio.labels" . | nindent 4 }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ default 1 .Values.replicaCount }}
selector:
Expand Down
3 changes: 3 additions & 0 deletions charts/verdaccio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,6 @@ secrets:
# password: "test"
# - username: "blah"
# password: "blah"

# Annotations to set on the deployment
annotations: {}

0 comments on commit 5e934ad

Please sign in to comment.