using secret from external repo

This commit is contained in:
2024-06-10 23:20:46 +10:00
parent 9a45485b32
commit aacfbd1ba1
3 changed files with 24 additions and 8 deletions

View File

@@ -5,16 +5,19 @@ metadata:
namespace: cert-manager
spec:
interval: 1h
path: ./kubernetes/apps/cert-manager/app
path: ./cert-manager
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: home-cluster-ops
name: home-cluster-ops-secret
dependsOn:
- name: repositories
namespace: flux-system
decryption:
provider: sops
secretRef:
name: sops-gpg
name: sops-age
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
@@ -29,7 +32,7 @@ spec:
sourceRef:
kind: GitRepository
namespace: flux-system
name: home-cluster-ops
name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
@@ -44,10 +47,9 @@ spec:
sourceRef:
kind: GitRepository
namespace: flux-system
name: home-cluster-ops
name: flux-system
dependsOn:
- name: repositories
namespace: flux-system
- name: cert-manager-secrets
- name: cert-manager
postBuild:
substituteFrom:

View File

@@ -10,4 +10,4 @@ spec:
sourceRef:
kind: GitRepository
namespace: flux-system
name: home-cluster-ops
name: flux-system

View File

@@ -14,6 +14,20 @@ spec:
url: https://github.com/3dwardch3ng/home-cluster-ops.git
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: home-cluster-ops-secrets
namespace: flux-system
spec:
interval: 10m0s
ref:
branch: main
secretRef:
name: flux-system
timeout: 60s
url: https://github.com/3dwardch3ng/home-cluster-ops-secrets.git
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: podinfo