Skip to content

Commit

Permalink
Merge pull request #38 from evilmartians/0.5.0-preview-apps-infrastru…
Browse files Browse the repository at this point in the history
…cture

preview-apps-infrastructure: update to 0.5.0
  • Loading branch information
deponian authored Nov 26, 2024
2 parents 201154c + 2b76b97 commit df6018b
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
14 changes: 14 additions & 0 deletions charts/preview-apps-infrastructure/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: v2
appVersion: "1.0.0"
description: Creating infrastructure resources for preview apps
name: preview-apps-infrastructure
version: 0.5.0
maintainers:
- name: Ilya Cherepanov
email: [email protected]

dependencies:
- name: kubernetes-replicator
repository: https://helm.mittwald.de
version: 2.10.0
17 changes: 17 additions & 0 deletions charts/preview-apps-infrastructure/templates/certificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ .Values.certificate.name }}
spec:
secretName: {{ .Values.certificate.name }}
issuerRef:
kind: Issuer
name: {{ .Values.issuer.name }}
commonName: "*.{{ .Values.dnsZone }}"
dnsNames:
- "*.{{ .Values.dnsZone }}"
secretTemplate:
annotations:
replicator.v1.mittwald.de/replication-allowed: "true"
replicator.v1.mittwald.de/replication-allowed-namespaces: {{ .Values.certificate.allowedNamespaces }}
File renamed without changes.
24 changes: 24 additions & 0 deletions charts/preview-apps-infrastructure/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# DNS zone where preview apps will be created
dnsZone: "preview.sandbox.evilmartians.net"

# Certificate that will be used by all preview apps
# Corresponding tls secret will have the same name
certificate:
name: preview-apps-common-tls
# you will be able replicate certificate only to these namespaces
allowedNamespaces: "preview-pr-[0-9]+"

# Cert-manager issuer
issuer:
name: preview-apps
email: [email protected]
server: https://acme-v02.api.letsencrypt.org/directory
# DNS-01 challenge is the only way to get wildcard certificate
dns01:
route53:
region: us-east-1
hostedZoneID: Z0152EXAMPLE
accessKeyID: AKIA5EXAMPLE
secretAccessKeySecretRef:
name: route53-secret
key: secret-access-key

0 comments on commit df6018b

Please sign in to comment.