Clarification on sync #21620
mukherarn1
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a folder structure like below:
├── templates/
│ ├── v1/
│ │ ├── customer.yaml
│ │ ├── user.yaml
│ ├── v2/
│ ├── customer.yaml
│ ├── user.yaml
├── customers/
│ ├── cust04/
│ │ ├── customer-values.yaml
│ │ ├── user-values.yaml
│ ├── cust05/
│ ├── customer-values.yaml
│ ├── user-values.yaml
├── Chart.yaml
├── values.yaml
I am using argocd appset approach to deploy the templates
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: cust-appset1
namespace: argocd
spec:
generators:
- git:
repoURL: https://devops/xxxx
revision: feature/test
directories:
- path: customers/*
template:
metadata:
name: "{{path.basenameNormalized}}-app"
spec:
destination:
namespace: "{{path.basenameNormalized}}-ns"
server: https://kubernetes.default.svc
project: default
source:
repoURL: https://devops
targetRevision: feature/test
path: .
helm:
valueFiles:
- customers/{{path.basenameNormalized}}/customer-values.yaml
- customers/{{path.basenameNormalized}}/user-values.yaml
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- RespectIgnoreDifferences=true
ignoreDifferences:
- group: apps
kind: Deployment
jqPathExpressions:
- .spec.replicas
- .status
- kind: Service
jsonPointers:
- /status
- kind: Pod
jsonPointers:
- /status
There will be 1000 folders under customers like cust04... cust1000. Now if I make a change to the customer-values.yaml file of cust1000, will it sync for other folders? And how many calls will it make to the k8s api server. Ideally I want only the specific folder changes to be synced and not everything
Beta Was this translation helpful? Give feedback.
All reactions