Skip to content

Commit

Permalink
Add existingSecretName value
Browse files Browse the repository at this point in the history
  • Loading branch information
suda committed Jun 29, 2023
1 parent 75caa19 commit 90a7245
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/scaleway-webhook/Chart.yaml
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "v0.0.1"
description: Cert-Manager webhook for Scaleway
name: scaleway-webhook
version: 0.0.1
version: 0.0.2
maintainers:
- name: suda
email: admin@suda.pl
Expand Down
3 changes: 2 additions & 1 deletion charts/scaleway-webhook/README.md
@@ -1,6 +1,6 @@
# scaleway-webhook

![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![AppVersion: v0.0.1](https://img.shields.io/badge/AppVersion-v0.0.1-informational?style=flat-square)
![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-informational?style=flat-square) ![AppVersion: v0.0.1](https://img.shields.io/badge/AppVersion-v0.0.1-informational?style=flat-square)

Cert-Manager webhook for Scaleway

Expand Down Expand Up @@ -28,6 +28,7 @@ Cert-Manager webhook for Scaleway
| pki.servingCertificateDuration | string | `"8760h"` | |
| resources | object | `{}` | |
| secret.accessKey | string | `""` | |
| secret.existingSecretName | string | `""` | |
| secret.name | string | `"scaleway-webhook-secret"` | |
| secret.secretKey | string | `""` | |
| service.port | int | `443` | |
Expand Down
5 changes: 5 additions & 0 deletions charts/scaleway-webhook/templates/deployment.yaml
Expand Up @@ -39,6 +39,11 @@ spec:
- secretRef:
name: {{ .Values.secret.name }}
{{ end }}
{{ if .Values.secret.existingSecretName }}
envFrom:
- secretRef:
name: {{ .Values.secret.existingSecretName }}
{{ end }}
ports:
- name: https
containerPort: 443
Expand Down
1 change: 1 addition & 0 deletions charts/scaleway-webhook/values.yaml
Expand Up @@ -20,6 +20,7 @@ secret:
accessKey: ""
secretKey: ""
name: scaleway-webhook-secret
existingSecretName: ""

service:
type: ClusterIP
Expand Down

0 comments on commit 90a7245

Please sign in to comment.