Added WPC self-registration

This commit is contained in:
2023-06-19 08:30:27 +02:00
parent 2795e3e295
commit 5dc3b65dba
5 changed files with 32 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
variables:
HELM_CHART_VERSION: "0.6.7"
HELM_CHART_VERSION: "0.6.8"
stages:
- deploy

View File

@@ -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"

View File

@@ -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
View 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 }}

View File

@@ -49,6 +49,10 @@ storage:
# Default: <domain>-<tld>
# container: "company-tld"
# Skip WPC Auto-registration
# Default: false
# skipWPCRegistration: false
# WP Content Folders
wpContent:
- uploads