Skip to content

Instantly share code, notes, and snippets.

@billmetangmo
Last active June 26, 2024 02:07
Show Gist options
  • Save billmetangmo/262fb7f2d379a4ea4c7d3bd499aa7c3b to your computer and use it in GitHub Desktop.
Save billmetangmo/262fb7f2d379a4ea4c7d3bd499aa7c3b to your computer and use it in GitHub Desktop.
sample argo applicationset
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: easyappointments-preview
namespace: argocd
spec:
generators:
- pullRequest:
github:
owner: mongulu-cm
repo: manzi-mfa
requeueAfterSeconds: 60
template:
metadata:
name: 'easyappointments-preview-{{branch}}-{{number}}'
spec:
destination:
namespace: 'preview-{{branch}}'
server: 'https://kubernetes.default.svc'
project: default
source:
path: helm # Le chemin vers votre chart Helm dans le repo
repoURL: 'https://github.com/mongulu-cm/manzi-mfa'
targetRevision: '{{head_sha}}'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
@billmetangmo
Copy link
Author

On a un pb avec les parameter store uqi existe pas dans les namespaces à la volée masi ceux-ci sont dépendant d'un généric secret accessible que pa rnamespace. Don cil faut quae dans chaque namespace, il existe cettte clé généric qui est par définiion externe donc il s'agit de les copier à la création d'un namesapce ar https://github.com/config-syncer/config-syncer par exemple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment