Added WPC self-registration
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
variables:
|
variables:
|
||||||
HELM_CHART_VERSION: "0.6.7"
|
HELM_CHART_VERSION: "0.6.8"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- deploy
|
- deploy
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
|||||||
name: wordyne
|
name: wordyne
|
||||||
description: Helm chart for deploying pre-built website containers to kubernetes clusters
|
description: Helm chart for deploying pre-built website containers to kubernetes clusters
|
||||||
type: application
|
type: application
|
||||||
version: "0.5.3"
|
version: "0.6.8"
|
||||||
appVersion: "6.2.2"
|
appVersion: "6.2.2"
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ spec:
|
|||||||
- secretKey: SMTP_HOST
|
- secretKey: SMTP_HOST
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: secret/SMTP-HOST
|
key: secret/SMTP-HOST
|
||||||
|
- secretKey: WPC_REGISTRATION_SECRET
|
||||||
|
remoteRef:
|
||||||
|
key: secret/WPC-REGISTRATION-SECRET
|
||||||
---
|
---
|
||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1beta1
|
||||||
kind: ExternalSecret
|
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>
|
# Default: <domain>-<tld>
|
||||||
# container: "company-tld"
|
# container: "company-tld"
|
||||||
|
|
||||||
|
# Skip WPC Auto-registration
|
||||||
|
# Default: false
|
||||||
|
# skipWPCRegistration: false
|
||||||
|
|
||||||
# WP Content Folders
|
# WP Content Folders
|
||||||
wpContent:
|
wpContent:
|
||||||
- uploads
|
- uploads
|
||||||
|
|||||||
Reference in New Issue
Block a user