You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "1ddo (via GitHub)" <gi...@apache.org> on 2023/05/16 09:51:45 UTC

[GitHub] [incubator-devlake] 1ddo opened a new issue, #5207: [Feature][Module Name] ArgoCD Integration

1ddo opened a new issue, #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar feature requirement.
   
   
   ### Use case
   
   Most of our CD are done with Kubernetes ArgoCD and we wanted to add this data connection to DevLake so we could leverage DORA for our deployment frequency.
   
   ### Description
   
   Add Kubernetes ArgoCD as new data connection to DevLake
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "d4x1 (via GitHub)" <gi...@apache.org>.
d4x1 commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-2074589037

   @thiDucTran  Nice work! 
   
   I am not familiary with ArgoCD, I can't do anything helpful.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] 1ddo commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "1ddo (via GitHub)" <gi...@apache.org>.
1ddo commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1552916672

   Hi @klesh, thanks for the advice. Will try to set up a WSL2
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "thiDucTran (via GitHub)" <gi...@apache.org>.
thiDucTran commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-2071721048

   this is what I ended up with..I hope someone else may be can come up with a better way... for `hash` or commit sha of your app.. it is just a matter of having the annotation in your defined argocd app....also don't forget to also add more annotations to subscribe to your defined triggers.... as for devlake integration or having devlake doing all this... I'm not sure how you would go about it
   
   ```yaml
     template.devlake-commit-status: |
       webhook:
         devlake:
           method: POST
           path: /api/plugins/webhook/connections/1/deployments
           body: |
             {
               {{if eq .app.status.health.status "Healthy"}} "result": "SUCCESS"{{end}}
               {{if ne .app.status.health.status "Healthy"}} "result": "FAILURE"{{end}},
               "repo_url": "https://yourUrlHere",
               "commit_sha": "{{.app.metadata.annotations.hash}}",
               "commit_msg": "optional-commit-message",
               "start_time": "{{.app.status.operationState.startedAt}}",
               "end_time": "{{.app.status.operationState.finishedAt}}",
               "environment": "PRODUCTION"
             }
     trigger.on-deployed: |
       - when: app.status.operationState.phase in ['Succeeded'] and app.status.health.status != ''
         send: [devlake-commit-status]
     trigger.on-health-degraded: |
       - when: app.status.operationState.phase in ['Succeeded'] and app.status.health.status != ''
         send: [devlake-commit-status]
     trigger.on-sync-succeeded: |
       - when: app.status.operationState.phase in ['Succeeded'] and app.status.health.status != ''
         send: [devlake-commit-status]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "d4x1 (via GitHub)" <gi...@apache.org>.
d4x1 commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-2053701011

   > ```shell
   > /api/rest/plugins/webhook/1/deployment
   > ```
   
   Check your API key `abc123` 's  allowed path config.
   I think the regexp you configed  cannot match `/api/rest/plugins/webhook/1/deployments`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] abeizn commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "abeizn (via GitHub)" <gi...@apache.org>.
abeizn commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1553888795

   It should be that your version is not the latest, you can use [v0.17.0-beta5 ](https://github.com/apache/incubator-devlake/releases/tag/v0.17.0-beta5) version, the installation method can refer to here: https://devlake.apache.org/docs/next/GettingStarted/DockerComposeSetup


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] github-actions[bot] closed issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #5207: [Feature][Module Name] ArgoCD Integration
URL: https://github.com/apache/incubator-devlake/issues/5207


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1797922706

   @pratiyush05 you may create deployment via the [webhook plugin](https://devlake.apache.org/docs/Plugins/webhook#deployment) , but it actually are creating cicd_deployment_commit record.
   We are planning to support multiple repos in the near future by https://github.com/apache/incubator-devlake/issues/6262


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1958459232

   @YuseopKim We need a separate `repo` to host ArgoCD stuff, right? We can create one if someone is interested in working on it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] 1ddo commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "1ddo (via GitHub)" <gi...@apache.org>.
1ddo commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1554713101

   Hi @BrookeKatalon, are you willing to contribute with the ArgoCD development? If yes then we could collab with it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] 1ddo commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "1ddo (via GitHub)" <gi...@apache.org>.
1ddo commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1556948933

   Hi @klesh , we need both since we need collect Data and observed data from ArgoCD but since it's not yet supported then we need to integrate it with DevLake. So don't we need to make DevLake work locally first before start coding, that way we could verify/test it later? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "thiDucTran (via GitHub)" <gi...@apache.org>.
thiDucTran commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1953696064

   hi, i am willing to help in getting argocd supported. currently, we have a mixed setup as described below. for scm we uses azure repo. for CD, we uses both `ArgoCD` and `Azure DevOps` .. with argocd, planning to do https://argocd-notifications.readthedocs.io/en/stable/services/webhook/#send-form-data ..is this the right way to go about it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "thiDucTran (via GitHub)" <gi...@apache.org>.
thiDucTran commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-2050985395

   referencing https://devlake.apache.org/docs/Plugins/webhook/#deployment . I am making the REST call as below but is seeing the error: `{"success":false,"message":"path doesn't match api key's scope"}` ...what path is the error speaking of?
   ```bash
   curl 'http://apache-devlake-ui.infra.svc:4000/api/rest/plugins/webhook/1/deployments' -X 'POST' -H 'Authorization: Bearer abc123' -d '{
       "repo_url":"https://github.com/apache/incubator-devlake/",
       "commit_sha":"015e3d3b480e417aede5a1293bd61de9b0fd051d",
       "commit_msg":"optional-commit-message",
       "start_time":"2020-01-01T12:00:00+00:00",
       "end_time":"2020-01-02T13:00:00+00:00",
       "result": "FAILURE"
     }' 
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] 1ddo commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "1ddo (via GitHub)" <gi...@apache.org>.
1ddo commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1554688198

   I've been working all day with the upgrade, by default the version value for the config-ui, grafana and devlake is set to "latest" then I replaced it with the version "v0.17.0-beta5" then ran docker-compose up -d but after that I encountered lots of issues one after another like token, certificate issue, installing grafana cli and others. Till now I'm working with those issues. Did you encounter this issue before? I'm using WSL Ubuntu by the way.
   
    For the Docker, I've connected my Docker Desktop to WSL Ubuntu and I have the latest Docker Desktop version and was able to run the 4 components (devlake, mysql, config-ui, grafana) but since I'm currently upgrading it to the latest version I haven't tried to run them again since I have a bunch of issues to work on.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] BrookeKatalon commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "BrookeKatalon (via GitHub)" <gi...@apache.org>.
BrookeKatalon commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1554700274

   I'm also interested in the ArgoCD connection


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] klesh commented on issue #5207: [Feature] ArgoCD Integration

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1724863241

   @KlemenDanfoss Under discussion, no plan or volunteer at this point 😂


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] mintsweet commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "mintsweet (via GitHub)" <gi...@apache.org>.
mintsweet commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1550787694

   hi @1ddo, thank you for your report.
   
   We have received your information and will consider your needs.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] 1ddo commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "1ddo (via GitHub)" <gi...@apache.org>.
1ddo commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1553320221

   Hi @klesh , do you know the reason why I don't have a Project menu in my config-ui:4000? I only see Data Connections, Blue Print, Disabled button for Connection and Dashboard menu options? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] KlemenDanfoss commented on issue #5207: [Feature] ArgoCD Integration

Posted by "KlemenDanfoss (via GitHub)" <gi...@apache.org>.
KlemenDanfoss commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1722903869

   What's the status on this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "nirmaljeet-singh-groww (via GitHub)" <gi...@apache.org>.
nirmaljeet-singh-groww commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1870061540

   Any idea when can this be releasesd for integration with argocd?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "YuseopKim (via GitHub)" <gi...@apache.org>.
YuseopKim commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1956706644

   In my opinion, to use ArgoCD, DevLake needs to make a relationship between deployment repository (for manifests) and application repository (for source codes). 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "thiDucTran (via GitHub)" <gi...@apache.org>.
thiDucTran commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1953797495

   i think the issue, for us, is that our ArgoCD auto sync and deploys based on non-application repos... meaning there needs to be a way to correlate the fact that an ArgoCD deployment was a deployment of which app, which commit of that app etc..


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] klesh commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1554223939

   > Hi @klesh , do you know the reason why I don't have a Project menu in my config-ui:4000? I only see Data Connections, Blue Print, Disabled button for Connection and Dashboard menu options?
   
   How did you launch `devlake` backend and `config-ui` ? Were you using the docker version for the `config-ui`?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] github-actions[bot] commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1601848635

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "d4x1 (via GitHub)" <gi...@apache.org>.
d4x1 commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1953716255

   @thiDucTran I think we should add an ArgoCD plugin and collect deployments(and other data) from ArgoCD, then we can combine data from AzureDevops and ArgoCD into one dashboard with some SQL.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "thiDucTran (via GitHub)" <gi...@apache.org>.
thiDucTran commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1958832175

   > In my opinion, to use ArgoCD, DevLake needs to make a relationship between deployment repository commit (for manifests) and application repository commit (for source codes).
   
   im thinking about the same. one way that i can think of is this flow:
   1. CI tool (jenkins, tekton, any CI tool) builds from application and produces a docker image. the same CI tool would create a PR to update deployment repo to update the docker image of manifest(s); when creating the PR ...we can put the commit hash of the app's repo? this is because when ArgoCD deploys the new docker image ..it can parse to get that commit hash and `POST` it to devlake via webhook?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "thiDucTran (via GitHub)" <gi...@apache.org>.
thiDucTran commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-2068859721

   this is what I have to far...there is one thing about `commit_sha` and how we can pass this info to ArgoCD..can we use some sort of annotation from the ArgoCD Application itself? will continue to test
   
   ```yaml```
   apiVersion: v1
   kind: Secret
   metadata:
     name: argocd-notifications-secret
     namespace: default
   stringData:
     devlake-basic-auth: 'foobar'
   type: Opaque
   ---
   # $devlake-basic-auth is from argocd-notifications-secret
   apiVersion: v1
   data:
     context: |
       argocdUrl:
     service.webhook.devlake: |
       url: http://apache-devlake-ui.infra.svc:4000
       headers:
       - name: Authorization
         value: Basic $devlake-basic-auth
   
     template.devlake-commit-status: |
       webhook:
         devlake:
           method: POST
           path: /api/plugins/webhook/connections/1/deployments
           body: |
             {
               {{if eq .app.status.operationState.phase "Running"}} "result": "FAILURE"{{end}}
               {{if eq .app.status.operationState.phase "Succeeded"}} "result": "SUCCESS"{{end}}
               {{if eq .app.status.operationState.phase "Error"}} "result": "FAILURE"{{end}}
               {{if eq .app.status.operationState.phase "Failed"}} "result": "FAILURE"{{end}},
               "repo_url": "https://yourURLhere",
               "commit_sha": "69ba6b8755848540c88577e4a5e23e14a5d63958",
               "commit_msg": "optional-commit-message",
               "start_time": "{{.app.status.operationState.startedAt}}",
               "end_time": "{{.app.status.operationState.finishedAt}}",
               "environment": "PRODUCTION"
             }
     trigger.on-deployed: |
       - when: app.status.operationState.phase in ['Succeeded']
         send: [devlake-commit-status]
     trigger.sync-operation-change: |
       - when: app.status.operationState.phase in ['Error', 'Failed']
         send: [devlake-commit-status]
   kind: ConfigMap
   metadata:
     labels:
       app.kubernetes.io/component: notifications-controller
       app.kubernetes.io/instance: argocd
       app.kubernetes.io/managed-by: Helm
       app.kubernetes.io/name: argocd-notifications-controller
       app.kubernetes.io/part-of: argocd
       app.kubernetes.io/version: v2.9.9
       argocd.argoproj.io/instance: argocd
       helm.sh/chart: argo-cd-5.54.0
     name: argocd-notifications-cm
     namespace: default
   ---
   # notice the annotations to subscribe to the webhook notification
   apiVersion: argoproj.io/v1alpha1
   kind: Application
   metadata:
     annotations:
       notifications.argoproj.io/subscribe.on-deployed.devlake: ""
       notifications.argoproj.io/subscribe.sync-operation-change.devlake: ""                                                                                                                                                                                                                                     name: thi-dora                                                                                                                                                                                                   namespace: default
   ```                                                                                                                                                                          


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] 1ddo commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "1ddo (via GitHub)" <gi...@apache.org>.
1ddo commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1552411073

   Hi @klesh , I'm currently working on it locally, I'm new to this stuff and I'm having difficulty in making devlake work locally in windows. Was able to run the components in Docker Windows however I'm getting API Down in the config UI (localhost:4000), the tutorial said just wait for a few minutes to let the API up and running but mines seems not working. Do you have any more docs on setting devlake locally using windows or any docs that could help me speed things up?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] github-actions[bot] commented on issue #5207: [Feature] ArgoCD Integration

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1676506771

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] gespi1 commented on issue #5207: [Feature] ArgoCD Integration

Posted by "gespi1 (via GitHub)" <gi...@apache.org>.
gespi1 commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1737976065

   a requirement for the pluginshould be to support argocd multisource applications. Currently devlake takes in one value for repo_url. For argocd apps with mulitple sources the repourl returns a list of multiple `repoURL`'s 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "pratiyush05 (via GitHub)" <gi...@apache.org>.
pratiyush05 commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1798356887

   Hi @klesh 
   <img width="706" alt="Screenshot 2023-11-07 at 4 56 27 PM" src="https://github.com/apache/incubator-devlake/assets/110039059/0473ff8d-2fee-45d6-ac4f-a0188f589bfc">
   Above diagram shows our current setup .
   So we would need to add github data connection in this way format -
   Devlake_Proj_1 - Github Repo_1 + Repo_7
   Devlake_Proj_2 - Github Repo_2 + Repo_7
   Devlake_Proj_3 - Github Repo_3 + Repo_7
   Devlake_Proj_4 - Github Repo_4 + Repo_7 ... total 6 Devlake_projs
   
   My query is how to get deployments of Repo_1 to Repo_6 in their Devlake projects , so that the graph "Median Lead Time to Change" correctly get deployments from these repos too .
   Since that graph first finds deployments in repos , then the commits and PRs of those commits .
   So we would need commits from Repo_1 to Repo_6 in Devlake .
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "pratiyush05 (via GitHub)" <gi...@apache.org>.
pratiyush05 commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1797894216

   Hi @klesh ,we have a scenario with ArgoCD too. 
   We have multiple repos for a single project and then a single team repo . Team repo has image version and from here ArgoCD takes up image versions and do its deployment. So only this team repo's main HEAD commit_sha get noted in Devlake production deployment from ArgoCD webhook .
   We would like to know how Devlake can club multiple repo deployments into a single deployment .
   In our case , there shall multiple github repo in a Devlake project and a team repo present in multiple Devlake projects. Plus ArgoCD linked to a single team repo's main branch's HEAD commit . 
   Could you please suggest a project configuration for us ? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] klesh commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1552373210

   @1ddo Hi, I see you checked the **Yes I am willing to submit a PR!**, would you like to work on it? If so, we could assign the issue to you and you can start working on it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] github-actions[bot] commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1612266127

   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] klesh commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1552514634

   @1ddo Hi, I'm using Windows too because of Feishu(Good collaborative software but lousy Linux support). Sadly, development in Native Windows is not supported, I am using WSL2, which is practically an Ubuntu Linux environment in conjunction with VSCode Remote WSL plugin, you may take a look, it is a far superior development experience than Native Windows.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] klesh commented on issue #5207: [Feature][Module Name] ArgoCD Integration

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1556902841

   @1ddo I'm confused, are you trying to code for `devlake` or just use it to collect and observe data? 
   For the former, you don't need the `docker-compose` for bringing up `devlake` and `config-ui`, please follow this guide to setup the Development Env https://devlake.apache.org/docs/next/DeveloperManuals/DeveloperSetup
   For the latter, don't use the `docker-compose.yml` from the repo, download the one from the release page.
   
   The error message seems like a network problem


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "d4x1 (via GitHub)" <gi...@apache.org>.
d4x1 commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1953845936

   Can Applications in ArgoCD be related to Azure Repos ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "thiDucTran (via GitHub)" <gi...@apache.org>.
thiDucTran commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-2046670627

   hi team, while I understand that the [`API References`](https://devlake.apache.org/docs/Overview/References/) are available.....can someone provide a list of RESTful APIs related to DORA? specifically anything that is deleted to deployments (relating to ArgoCD)...this is an attempt to do a proof of concept as described in  https://github.com/apache/incubator-devlake/issues/5207#issuecomment-1958832175


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] ArgoCD Integration [incubator-devlake]

Posted by "KelvinVenancio (via GitHub)" <gi...@apache.org>.
KelvinVenancio commented on issue #5207:
URL: https://github.com/apache/incubator-devlake/issues/5207#issuecomment-2075976973

   thanks, @thiDucTran, I was searching for exactly that. I'll give back here soon with the feedback.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org