You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: inconsistency in saving empty GitOps repository (#6612)
* fix: gitops provider multiple save error
* updated const ArgoRepoSyncDelayErr as per new ArgoCd update
* fix: unable resolve 'HEAD' to a commit SHA
* fix: git clone issue for empty repository
* fix: ambiguous argument 'origin/HEAD': unknown revision or path not in the working tree.
* fix: SSH known host confirmation issue on cloning
* chore: updated default value of ARGO_REPO_REGISTER_RETRY_COUNT
* chore: incorporated review comments
* chore: removed dead code
* chore: minor refactorings
* chore: added integration test cases
* fix: added handling for argocd older versions
Copy file name to clipboardExpand all lines: client/argocdServer/ArgoClientWrapperService.go
+18-13Lines changed: 18 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -51,9 +51,9 @@ import (
51
51
)
52
52
53
53
typeACDConfigstruct {
54
-
ArgoCDAutoSyncEnabledbool`env:"ARGO_AUTO_SYNC_ENABLED" envDefault:"true" description:"If enabled all argocd application will have auto sync enabled"`// will gradually switch this flag to false in enterprise
55
-
RegisterRepoMaxRetryCountint`env:"ARGO_REPO_REGISTER_RETRY_COUNT" envDefault:"3" description:"Argo app registration in argo retries on deployment"`
56
-
RegisterRepoMaxRetryDelayint`env:"ARGO_REPO_REGISTER_RETRY_DELAY" envDefault:"10" description:"Argo app registration in argo cd on deployment delay between retry"`
54
+
ArgoCDAutoSyncEnabledbool`env:"ARGO_AUTO_SYNC_ENABLED" envDefault:"true" description:"If enabled all argocd application will have auto sync enabled" example:"true" deprecated:"false"`// will gradually switch this flag to false in enterprise
55
+
RegisterRepoMaxRetryCountint`env:"ARGO_REPO_REGISTER_RETRY_COUNT" envDefault:"4" description:"Retry count for registering a GitOps repository to ArgoCD" example:"3" deprecated:"false"`
56
+
RegisterRepoMaxRetryDelayint`env:"ARGO_REPO_REGISTER_RETRY_DELAY" envDefault:"5" description:"Delay (in Seconds) between the retries for registering a GitOps repository to ArgoCD" example:"5" deprecated:"false"`
Copy file name to clipboardExpand all lines: env_gen.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,11 +131,11 @@
131
131
| APP_SYNC_JOB_RESOURCES_OBJ | string || To pass the resource of app sync || false |
132
132
| APP_SYNC_SERVICE_ACCOUNT | string |chart-sync | Service account to be used in app sync Job || false |
133
133
| APP_SYNC_SHUTDOWN_WAIT_DURATION | int |120 ||| false |
134
-
| ARGO_AUTO_SYNC_ENABLED | bool |true | If enabled all argocd application will have auto sync enabled || false |
134
+
| ARGO_AUTO_SYNC_ENABLED | bool |true | If enabled all argocd application will have auto sync enabled |true| false |
135
135
| ARGO_GIT_COMMIT_RETRY_COUNT_ON_CONFLICT | int |3 | retry argocd app manual sync if the timeline is stuck in ARGOCD_SYNC_INITIATED state for more than this defined time (in mins) || false |
136
136
| ARGO_GIT_COMMIT_RETRY_DELAY_ON_CONFLICT | int |1 | Delay on retrying the maifest commit the on gitops || false |
137
-
| ARGO_REPO_REGISTER_RETRY_COUNT | int |3|Argo app registration in argo retries on deployment || false |
138
-
| ARGO_REPO_REGISTER_RETRY_DELAY | int |10|Argo app registration in argo cd on deployment delay between retry || false |
137
+
| ARGO_REPO_REGISTER_RETRY_COUNT | int |4|Retry count for registering a GitOps repository to ArgoCD | 3| false |
138
+
| ARGO_REPO_REGISTER_RETRY_DELAY | int |5|Delay (in Seconds) between the retries for registering a GitOps repository to ArgoCD | 5| false |
| BATCH_SIZE | int |5 | there is feature to get URL's of services/ingresses. so to extract those, we need to parse all the servcie and ingress objects of the application. this BATCH_SIZE flag controls the no of these objects get parsed in one go. || false |
0 commit comments