use infra-config
ci / build (push) Waiting to run Details

This commit is contained in:
CJ_Clippy 2024-06-29 14:53:45 -08:00
parent d9265f3c27
commit 4da9a67c36
3 changed files with 42 additions and 66 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
name: fp name: fp
description: The Galaxy's Best VTuber Hentai Site description: The Galaxy's Best VTuber Hentai Site
version: 0.0.29 version: 0.0.30
keywords: keywords:
- fp - fp
- futureporn - futureporn

View File

@ -69,7 +69,7 @@ subjects:
name: cert-manager-webhook-exoscale name: cert-manager-webhook-exoscale
--- ---
{{ if eq .Values.environment "development" || if eq .Values.environment "staging" }} {{ if eq .Values.environment "development" }}
apiVersion: cert-manager.io/v1 apiVersion: cert-manager.io/v1
kind: ClusterIssuer kind: ClusterIssuer
metadata: metadata:
@ -98,28 +98,4 @@ spec:
key: apiSecret key: apiSecret
{{ end }} {{ end }}
{{ if eq .Values.environment "production" }} ## in staging and production, ClusterIssuer is created by Flux2/Kustomize. (not Helm)
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: {{ .Values.adminEmail }}
privateKeySecretRef:
name: letsencrypt-prod
solvers:
- dns01:
webhook:
groupName: acme.exoscale.com
solverName: exoscale
config:
apiKeyRef:
name: exoscale
key: apiKey
apiSecretRef:
name: exoscale
key: apiSecret
{{ end }}

View File

@ -15,42 +15,42 @@ spec:
prune: true prune: true
wait: true wait: true
# --- ---
# apiVersion: kustomize.toolkit.fluxcd.io/v1 apiVersion: kustomize.toolkit.fluxcd.io/v1
# kind: Kustomization kind: Kustomization
# metadata: metadata:
# name: infra-configs name: infra-configs
# namespace: flux-system namespace: flux-system
# spec: spec:
# dependsOn: dependsOn:
# - name: infra-controllers - name: infra-controllers
# interval: 1h interval: 1h
# retryInterval: 1m retryInterval: 1m
# timeout: 5m timeout: 5m
# sourceRef: sourceRef:
# kind: GitRepository kind: GitRepository
# name: flux-system name: flux-system
# path: ./infrastructure/configs path: ./infrastructure/configs
# prune: true prune: true
# patches: patches:
# - patch: | - patch: |
# - op: replace - op: replace
# path: /spec/acme/server path: /spec/acme/server
# value: https://acme-staging-v02.api.letsencrypt.org/directory value: https://acme-staging-v02.api.letsencrypt.org/directory
# target: target:
# kind: ClusterIssuer kind: ClusterIssuer
# name: letsencrypt name: letsencrypt
# - patch: | - patch: |
# - op: replace - op: replace
# path: /metadata/name path: /metadata/name
# value: letsencrypt-staging value: letsencrypt-staging
# target: target:
# kind: ClusterIssuer kind: ClusterIssuer
# name: letsencrypt name: letsencrypt
# - patch: | - patch: |
# - op: replace - op: replace
# path: /spec/acme/privateKeySecretRef/name path: /spec/acme/privateKeySecretRef/name
# value: letsencrypt-staging value: letsencrypt-staging
# target: target:
# kind: ClusterIssuer kind: ClusterIssuer
# name: letsencrypt name: letsencrypt