weaveworks / pipeline-controller

This repository contains the Pipeline CRD and associated controller for Weave GitOps Enterprise.
1 stars 4 forks source link

Create promotion PR for next environment #33

Closed yiannistri closed 1 year ago

yiannistri commented 2 years ago

Add/update promotion field used to capture the promotion task for the next environment in the pipeline after a successful deployment has taken place.

apiVersion: pipelines.weave.works/v1alpha1
kind: Pipeline
metadata:
  name: podinfo
  namespace: default
spec:
  promotion:
    pull-request:
      url: ssh://git@github.com/organization/repo
      branch: main
      secretRef: my-other-deployed-secret
[...]

Details of the field are defined in RFC 3 as part of this PR.

Notes

We already use go-git-providers to create PRs in WGE so we should reuse the same package to support the same git providers.

enekofb commented 2 years ago

I understand that image automation has already the functionality implemented (i could imagine for images not for helm release) is there an opportunity to leverage any of that?

yiannistri commented 2 years ago

The image-automation-controller uses this package (for an example check this) so we can reference that.

If we need more stuff from that controller (e.g. helpers) let's evaluate it on a case by case basis.