fix: annotations, not labels (#36)

<picard face palm gif>

- purelb requires annotations not labels

Reviewed-on: #36
This commit is contained in:
2026-03-18 15:17:58 +11:00
parent e86cd7a6ae
commit 0a49537251
18 changed files with 396 additions and 2 deletions
+29
View File
@@ -0,0 +1,29 @@
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: storage-apps
namespace: argocd
spec:
generators:
- git:
repoURL: https://git.unkin.net/unkin/argocd-apps
revision: HEAD
directories:
- path: apps/overlays/*/csi-*
template:
metadata:
name: 'storage-{{path[3]}}' # cluster-app format (e.g., storage-csi-cephfs)
spec:
project: storage
source:
repoURL: https://git.unkin.net/unkin/argocd-apps
targetRevision: HEAD
path: '{{path}}'
destination:
server: https://kubernetes.default.svc
namespace: '{{path[3]}}' # Use directory name as namespace
syncPolicy:
automated:
prune: true
selfHeal: true
+30
View File
@@ -0,0 +1,30 @@
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: storage
namespace: argocd
spec:
description: Storage infrastructure and CSI drivers
sourceRepos:
- https://git.unkin.net/unkin/argocd-apps
- https://ceph.github.io/csi-charts
destinations:
- namespace: 'csi-*'
server: https://kubernetes.default.svc
clusterResourceWhitelist:
- group: ''
kind: Namespace
- group: 'rbac.authorization.k8s.io'
kind: ClusterRole
- group: 'rbac.authorization.k8s.io'
kind: ClusterRoleBinding
- group: 'apiextensions.k8s.io'
kind: CustomResourceDefinition
- group: 'storage.k8s.io'
kind: StorageClass
- group: 'storage.k8s.io'
kind: CSIDriver
namespaceResourceWhitelist:
- group: '*'
kind: '*'