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
I am also trying to close the Feedback Loop from Flux to GitLab. Unfortunately, GitLab doesn't provide any action on a commit status change 😔.
Another option would be to use a Post-Deployment Job that triggers the GitLab Pipeline. But I think it would be nice to have this feature built into flux since I imagine it is a common use case.
To use the forwarder, a proxy would be required to translate the event from the flux provider to a valid GitLab webhook request.
Couldn't we create a GitLab Pipeline Trigger Provider that does this? I have something like this in mind.
---
apiVersion: notification.toolkit.fluxcd.io/v1beta3kind: Providermetadata:
name: gitlab-triggerspec:
type: gitlabtriggeraddress: # https://gitlab.example.com/api/v4/projects/<project_id>/ref/<ref_name>/trigger/pipelinesecretRef:
name: #<token> with your pipeline trigger token.
---
apiVersion: notification.toolkit.fluxcd.io/v1beta3kind: Alertmetadata:
name: gitlab-triggerspec:
summary: "staging (us-west-2)"providerRef:
name: gitlab-triggereventSeverity: infoeventSources:
- kind: Kustomizationname: 'podinfo'eventMetadata: # could be used for optional CI/CD variables to be passed to the pipeline.
- key: 'cluster'value: 'staging'
- key: 'region'value: 'us-west-2'
I am happy to provide a PR if we agree that this makes sense.
Hi! GitLab PM here. One GitLab team is working on https://gitlab.com/groups/gitlab-org/-/epics/10866 with the specific intent of supporting Flux integrations. Please, add you voice to the linked epic!
Activity
mo-rieger commentedon Apr 11, 2024
I am also trying to close the Feedback Loop from Flux to GitLab. Unfortunately, GitLab doesn't provide any action on a commit status change 😔.
Another option would be to use a Post-Deployment Job that triggers the GitLab Pipeline. But I think it would be nice to have this feature built into flux since I imagine it is a common use case.
To use the forwarder, a proxy would be required to translate the event from the flux provider to a valid GitLab webhook request.
Couldn't we create a GitLab Pipeline Trigger Provider that does this? I have something like this in mind.
I am happy to provide a PR if we agree that this makes sense.
stefanprodan commentedon Apr 11, 2024
We need for GitLab to tell us if the Pipeline Trigger is the right approach. CC @nagyv
nagyv commentedon Apr 15, 2024
Hi! GitLab PM here. One GitLab team is working on https://gitlab.com/groups/gitlab-org/-/epics/10866 with the specific intent of supporting Flux integrations. Please, add you voice to the linked epic!