mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-09-12 12:11:14 +00:00
flux: re-order certificates for right dependencies
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# Flux Kustomization for Caddy TLS certificates
|
||||
# Depends on cert-manager-issuer (CRDs + ClusterIssuer) and homeprod (caddy namespace)
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: caddy-certificates
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: homeprod
|
||||
path: ./kubernetes/infrastructure/caddy-certificates
|
||||
dependsOn:
|
||||
- name: homeprod
|
||||
- name: cert-manager-issuer
|
||||
decryption:
|
||||
provider: sops
|
||||
secretRef:
|
||||
name: flux-sops
|
||||
@@ -7,3 +7,5 @@ resources:
|
||||
- cert-manager.yaml
|
||||
- cert-manager-webhook-ovh.yaml
|
||||
- cert-manager-issuer.yaml
|
||||
- caddy-certificates.yaml
|
||||
- stalwart-certificates.yaml
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
# Flux Kustomization for Stalwart mail TLS certificate
|
||||
# Depends on cert-manager-issuer (CRDs + ClusterIssuer) and homeprod (stalwart namespace)
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: stalwart-certificates
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: homeprod
|
||||
path: ./kubernetes/infrastructure/stalwart-certificates
|
||||
dependsOn:
|
||||
- name: homeprod
|
||||
- name: cert-manager-issuer
|
||||
decryption:
|
||||
provider: sops
|
||||
secretRef:
|
||||
name: flux-sops
|
||||
Reference in New Issue
Block a user