Skip to content

Commit

Permalink
chore: fix rbac, ran make
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Stadler <thomas@thomasst.xyz>
  • Loading branch information
thomasstxyz committed Apr 7, 2023
1 parent 63e0f26 commit 6df0233
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: ghcr.io/thomasstxyz/gitops-promotions-operator
newTag: v0.1.0
newTag: v0.1.3
12 changes: 12 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ metadata:
creationTimestamp: null
name: manager-role
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- promotions.gitopsprom.io
resources:
Expand Down
4 changes: 2 additions & 2 deletions internal/controller/promotion_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (r *PromotionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
// Could be done by changing CopyOperations() to CopyOperation() and running git diff after every CopyOperation().

tmpl, err := template.New("tpl").Parse(
`chore: promote {{.SourceEnvironmentLatestCommit}} from {{.SourceEnv.Name}} to {{.TargetEnv.Name}}
`chore: promote {{.SourceEnvironmentLatestCommit}} from {{.SourceEnv.Name}} to {{.TargetEnv.Name}}
Promotion subjects:
====================
Expand Down Expand Up @@ -285,7 +285,7 @@ Promotion subjects:
obj.Status.LastPullRequestURL = pr.Get().WebURL
}
// else if isPROpen {
// TODO: Edit (update) PR title. With current gitprovider API, we can only edit the PR title.
// TODO: Edit (update) PR title. With current gitprovider API, we can only edit the PR title.
// }
} else if status.IsClean() {
*obj = promotionsv1alpha1.PromotionReady(*obj, promotionsv1alpha1.SucceededReason, "A pull request is open for review.")
Expand Down

0 comments on commit 6df0233

Please sign in to comment.