mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-09-13 12:41:13 +00:00
flux: re-order certificates for right dependencies
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- certificates.yaml
|
||||||
@@ -5,7 +5,6 @@ resources:
|
|||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- repository.yaml
|
- repository.yaml
|
||||||
- release.yaml
|
- release.yaml
|
||||||
- certificates.yaml
|
|
||||||
- caddyfile.yaml
|
- caddyfile.yaml
|
||||||
secretGenerator:
|
secretGenerator:
|
||||||
- name: caddy-values
|
- name: caddy-values
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ namespace: stalwart
|
|||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- repository.yaml
|
- repository.yaml
|
||||||
- certificate.yaml
|
|
||||||
- recovery-admin-secret.yaml
|
- recovery-admin-secret.yaml
|
||||||
- release.yaml
|
- release.yaml
|
||||||
secretGenerator:
|
secretGenerator:
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- certificate.yaml
|
||||||
@@ -1,7 +1,10 @@
|
|||||||
# Root Kustomization for Flux
|
# Root Kustomization for Flux
|
||||||
# Explicitly lists all components to exclude:
|
# Components managed by separate Flux Kustomizations (CRD dependency ordering):
|
||||||
# - cert-manager: managed by separate Flux Kustomization (CRD dependency)
|
# - cert-manager: managed by Flux Kustomization (CRDs must be installed first)
|
||||||
# - cert-manager-issuer: managed by separate Flux Kustomization (depends on cert-manager)
|
# - cert-manager-webhook-ovh: managed by Flux Kustomization (depends on cert-manager)
|
||||||
|
# - cert-manager-issuer: managed by Flux Kustomization (depends on cert-manager + webhook)
|
||||||
|
# - caddy-certificates: managed by Flux Kustomization (Certificate CRDs need cert-manager)
|
||||||
|
# - stalwart-certificates: managed by Flux Kustomization (Certificate CRDs need cert-manager)
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
@@ -18,9 +21,6 @@ resources:
|
|||||||
- infrastructure/observability
|
- infrastructure/observability
|
||||||
- infrastructure/traefik
|
- infrastructure/traefik
|
||||||
- infrastructure/caddy
|
- infrastructure/caddy
|
||||||
- infrastructure/cert-manager
|
|
||||||
- infrastructure/cert-manager-issuer
|
|
||||||
- infrastructure/cert-manager-webhook-ovh
|
|
||||||
- infrastructure/network/blocky
|
- infrastructure/network/blocky
|
||||||
# Dev (developer platform)
|
# Dev (developer platform)
|
||||||
- dev/gitea
|
- dev/gitea
|
||||||
|
|||||||
@@ -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.yaml
|
||||||
- cert-manager-webhook-ovh.yaml
|
- cert-manager-webhook-ovh.yaml
|
||||||
- cert-manager-issuer.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