Added WPC self-registration
This commit is contained in:
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: wordyne
|
||||
description: Helm chart for deploying pre-built website containers to kubernetes clusters
|
||||
type: application
|
||||
version: "0.5.3"
|
||||
version: "0.6.8"
|
||||
appVersion: "6.2.2"
|
||||
|
||||
@@ -29,6 +29,9 @@ spec:
|
||||
- secretKey: SMTP_HOST
|
||||
remoteRef:
|
||||
key: secret/SMTP-HOST
|
||||
- secretKey: WPC_REGISTRATION_SECRET
|
||||
remoteRef:
|
||||
key: secret/WPC-REGISTRATION-SECRET
|
||||
---
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
|
||||
23
Chart/templates/job.yaml
Normal file
23
Chart/templates/job.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
{{- if -not .Values.site.skipWPCRegistration | default "false" }}
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: {{ include "..fullname" . }}-wpc-reg
|
||||
labels:
|
||||
{{- include "..labels" . | nindent 4 }}
|
||||
cloudyne.systems/component: site
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: register-wpc
|
||||
image: cloudyne.azurecr.io/register-wpc:latest
|
||||
command: ["python3", "/app/register-wpc.py"]
|
||||
restartPolicy: Never
|
||||
imagePullSecrets:
|
||||
- name: pull-secret
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ include "..fullname" . }}-env
|
||||
backoffLimit: 4
|
||||
{{- end }}
|
||||
@@ -49,6 +49,10 @@ storage:
|
||||
# Default: <domain>-<tld>
|
||||
# container: "company-tld"
|
||||
|
||||
# Skip WPC Auto-registration
|
||||
# Default: false
|
||||
# skipWPCRegistration: false
|
||||
|
||||
# WP Content Folders
|
||||
wpContent:
|
||||
- uploads
|
||||
|
||||
Reference in New Issue
Block a user