Skip to content

Commit

Permalink
feat(cert-manager-webhook): add option to set podLabels (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-vdz authored May 14, 2024
1 parent 803258c commit f53500e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/scaleway-certmanager-webhook/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
appVersion: "v0.1.0"
description: Cert-Manager webhook for Scaleway
name: scaleway-certmanager-webhook
version: 0.1.0
version: 0.2.0
3 changes: 2 additions & 1 deletion charts/scaleway-certmanager-webhook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Deploys the scaleway cert-manager webhook.

![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square) ![ChartVersion: 0.1.0](https://img.shields.io/badge/ChartVersion-0.1.0-informational?style=flat-square)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square) ![ChartVersion: 0.2.0](https://img.shields.io/badge/ChartVersion-0.2.0-informational?style=flat-square)

## Installing the Chart

Expand Down Expand Up @@ -46,6 +46,7 @@ Common parameters.
| `service.type` | Service type exposing the webhook | `ClusterIP` |
| `service.port` | Service port exposing the webhook | `443` |
| `resources` | Resources definition | `{}` |
| `podLabels` | Pod labels definition | `{}` |
| `nodeSelector` | Node selector | `{}` |
| `tolerations` | Tolerations | `[]` |
| `affinity` | Affinities | `{}` |
Expand Down
3 changes: 3 additions & 0 deletions charts/scaleway-certmanager-webhook/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
labels:
app: {{ include "scaleway-webhook.name" . }}
release: {{ .Release.Name }}
{{- with .Values.podLabels }}
{{ toYaml .Values.podLabels | indent 8 }}
{{- end }}
spec:
serviceAccountName: {{ include "scaleway-webhook.fullname" . }}
{{- with .Values.image.imagePullSecrets }}
Expand Down
3 changes: 3 additions & 0 deletions charts/scaleway-certmanager-webhook/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ resources: {}
# cpu: 100m
# memory: 128Mi

## @param podLabels Pod labels
podLabels: {}

## @param nodeSelector Node selector
nodeSelector: {}

Expand Down

0 comments on commit f53500e

Please sign in to comment.