use infra-config
ci / build (push) Waiting to run
Details
ci / build (push) Waiting to run
Details
This commit is contained in:
parent
d9265f3c27
commit
4da9a67c36
|
@ -1,7 +1,7 @@
|
|||
apiVersion: v1
|
||||
name: fp
|
||||
description: The Galaxy's Best VTuber Hentai Site
|
||||
version: 0.0.29
|
||||
version: 0.0.30
|
||||
keywords:
|
||||
- fp
|
||||
- futureporn
|
||||
|
|
|
@ -69,7 +69,7 @@ subjects:
|
|||
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
|
||||
kind: ClusterIssuer
|
||||
metadata:
|
||||
|
@ -98,28 +98,4 @@ spec:
|
|||
key: apiSecret
|
||||
{{ end }}
|
||||
|
||||
{{ if eq .Values.environment "production" }}
|
||||
---
|
||||
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 }}
|
||||
## in staging and production, ClusterIssuer is created by Flux2/Kustomize. (not Helm)
|
|
@ -15,42 +15,42 @@ spec:
|
|||
prune: true
|
||||
wait: true
|
||||
|
||||
# ---
|
||||
# apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
# kind: Kustomization
|
||||
# metadata:
|
||||
# name: infra-configs
|
||||
# namespace: flux-system
|
||||
# spec:
|
||||
# dependsOn:
|
||||
# - name: infra-controllers
|
||||
# interval: 1h
|
||||
# retryInterval: 1m
|
||||
# timeout: 5m
|
||||
# sourceRef:
|
||||
# kind: GitRepository
|
||||
# name: flux-system
|
||||
# path: ./infrastructure/configs
|
||||
# prune: true
|
||||
# patches:
|
||||
# - patch: |
|
||||
# - op: replace
|
||||
# path: /spec/acme/server
|
||||
# value: https://acme-staging-v02.api.letsencrypt.org/directory
|
||||
# target:
|
||||
# kind: ClusterIssuer
|
||||
# name: letsencrypt
|
||||
# - patch: |
|
||||
# - op: replace
|
||||
# path: /metadata/name
|
||||
# value: letsencrypt-staging
|
||||
# target:
|
||||
# kind: ClusterIssuer
|
||||
# name: letsencrypt
|
||||
# - patch: |
|
||||
# - op: replace
|
||||
# path: /spec/acme/privateKeySecretRef/name
|
||||
# value: letsencrypt-staging
|
||||
# target:
|
||||
# kind: ClusterIssuer
|
||||
# name: letsencrypt
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: infra-configs
|
||||
namespace: flux-system
|
||||
spec:
|
||||
dependsOn:
|
||||
- name: infra-controllers
|
||||
interval: 1h
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
path: ./infrastructure/configs
|
||||
prune: true
|
||||
patches:
|
||||
- patch: |
|
||||
- op: replace
|
||||
path: /spec/acme/server
|
||||
value: https://acme-staging-v02.api.letsencrypt.org/directory
|
||||
target:
|
||||
kind: ClusterIssuer
|
||||
name: letsencrypt
|
||||
- patch: |
|
||||
- op: replace
|
||||
path: /metadata/name
|
||||
value: letsencrypt-staging
|
||||
target:
|
||||
kind: ClusterIssuer
|
||||
name: letsencrypt
|
||||
- patch: |
|
||||
- op: replace
|
||||
path: /spec/acme/privateKeySecretRef/name
|
||||
value: letsencrypt-staging
|
||||
target:
|
||||
kind: ClusterIssuer
|
||||
name: letsencrypt
|
Loading…
Reference in New Issue