feat: Put ClusterIssuer under certificates

This commit is contained in:
2025-12-17 00:30:01 +01:00
parent 8a83ae3ab3
commit cfa317caf4
8 changed files with 7 additions and 33 deletions

View File

@@ -12,7 +12,6 @@ resources:
- ../../controllers/cnpg/cnpg.yaml - ../../controllers/cnpg/cnpg.yaml
- ../../configs/artifacts.yaml - ../../configs/artifacts.yaml
- ../../configs/letsencrypt/letsencrypt.yaml
- ../../configs/certificates/certificates.yaml - ../../configs/certificates/certificates.yaml
- ../../configs/alerts/alerts.yaml - ../../configs/alerts/alerts.yaml
- ../../configs/longhorn-jobs/longhorn-jobs.yaml - ../../configs/longhorn-jobs/longhorn-jobs.yaml

View File

@@ -9,11 +9,6 @@ spec:
kind: GitRepository kind: GitRepository
name: flux-system name: flux-system
artifacts: artifacts:
- name: letsencrypt
originRevision: "@foundation"
copy:
- from: "@foundation/configs/letsencrypt/**"
to: "@artifact/"
- name: certificates - name: certificates
originRevision: "@foundation" originRevision: "@foundation"
copy: copy:

View File

@@ -3,3 +3,5 @@ kind: Kustomization
resources: resources:
- namespace.yaml - namespace.yaml
- certificate-huizinga-dev.yaml - certificate-huizinga-dev.yaml
- secret-cloudflare-token.enc.yaml
- cluster-issuer.yaml

View File

@@ -8,10 +8,14 @@ spec:
retryInterval: 2m retryInterval: 2m
timeout: 15m timeout: 15m
dependsOn: dependsOn:
- name: letsencrypt - name: cert-manager
sourceRef: sourceRef:
kind: ExternalArtifact kind: ExternalArtifact
name: certificates name: certificates
decryption:
provider: sops
secretRef:
name: sops-gpg
path: ./${cluster_env} path: ./${cluster_env}
prune: true prune: true
wait: true wait: true

View File

@@ -1,5 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- secret-cloudflare-token.enc.yaml
- cluster-issuer.yaml

View File

@@ -1,21 +0,0 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: letsencrypt
namespace: flux-system
spec:
interval: 1h
retryInterval: 2m
timeout: 5m
dependsOn:
- name: cert-manager
sourceRef:
kind: ExternalArtifact
name: letsencrypt
decryption:
provider: sops
secretRef:
name: sops-gpg
path: ./
prune: true
wait: true