delete external device
This commit is contained in:
@@ -1,52 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: external-devices
|
||||
namespace: argocd-ops
|
||||
spec:
|
||||
generators:
|
||||
# Les certificats sont créés UNIQUEMENT dans le cluster OPS
|
||||
# qui a cert-manager installé et accès à Internet pour Let's Encrypt
|
||||
- merge:
|
||||
generators:
|
||||
# Premier générateur : scanne les répertoires Helm pour les certificats
|
||||
- git:
|
||||
repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
|
||||
revision: main
|
||||
directories:
|
||||
- path: "helm/external-devices/*"
|
||||
# Deuxième générateur : lit la config OPS uniquement
|
||||
- git:
|
||||
repoURL: https://git.gkdomaine.fr/kubernetes/argocd.git
|
||||
revision: main
|
||||
files:
|
||||
- path: "configs/*/config.json"
|
||||
mergeKeys:
|
||||
- path.basename
|
||||
template:
|
||||
metadata:
|
||||
name: external-devices-{{path.basename}}
|
||||
annotations:
|
||||
# Forcer ArgoCD à gérer les Endpoints
|
||||
argocd.argoproj.io/sync-options: "ServerSideApply=true"
|
||||
spec:
|
||||
project: '{{path.basename}}'
|
||||
source:
|
||||
repoURL: '{{repository}}'
|
||||
targetRevision: '{{targetRevision}}'
|
||||
path: '{{helmPath}}/external-devices/{{path.basename}}'
|
||||
helm:
|
||||
valueFiles:
|
||||
- values.yaml
|
||||
destination:
|
||||
name: '{{name}}'
|
||||
namespace: 'traefik-{{path.basename}}'
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
# ServerSideApply pour mieux gérer les Endpoints
|
||||
- ServerSideApply=true
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
# AppProject pour inclure les Endpoints dans ArgoCD
|
||||
# ⚠️ Ce fichier doit être appliqué manuellement ou via un autre mécanisme
|
||||
# car les AppProjects ne sont pas gérés par ApplicationSet
|
||||
#
|
||||
# Usage:
|
||||
# kubectl apply -f apps/appproject-dev-endpoints.yaml
|
||||
#
|
||||
# Ou modifiez le projet existant :
|
||||
# kubectl patch appproject dev -n argocd-ops --type merge -p "$(cat apps/appproject-dev-endpoints.yaml)"
|
||||
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
name: dev
|
||||
namespace: argocd-ops
|
||||
spec:
|
||||
# Inclure les Endpoints dans les ressources autorisées
|
||||
namespaceResourceWhitelist:
|
||||
- group: ""
|
||||
kind: Endpoints
|
||||
# Autoriser tous les namespaces (ou spécifiez traefik-dev)
|
||||
sourceNamespaces:
|
||||
- '*'
|
||||
# Autoriser tous les clusters (ou spécifiez cluster-dev)
|
||||
destinations:
|
||||
- namespace: '*'
|
||||
server: '*'
|
||||
|
||||
Reference in New Issue
Block a user