-
Hello, not sure if we use kargo wrong or if the mechanics are broken. The only logs I see in the kargo-controller, when I manually trigger the Freight to promote. No mention when a new freight is detected. I use kargo version 0.4.2 on an on-premise kubernetes cluster. Here is my configuration. Is there anything wrong with the promotion mechanic?: ---
apiVersion: kargo.akuity.io/v1alpha1
kind: Project
metadata:
name: kargo-my-project
spec:
promotionPolicies:
- stage: develop
enableAutoPromotion: true
---
apiVersion: kargo.akuity.io/v1alpha1
kind: Warehouse
metadata:
name: my-project
namespace: kargo-my-project
spec:
subscriptions:
- git:
repoURL: https://my.git.repo/url/my-project.git
allowTags: '^my-tag-regex$'
commitSelectionStrategy: NewestTag
- image:
allowTags: '^my-tag-regex$'
repoURL: my.docker.repo/url/my-project
imageSelectionStrategy: NewestBuild
---
apiVersion: kargo.akuity.io/v1alpha1
kind: Stage
metadata:
name: develop
namespace: kargo-my-project
spec:
subscriptions:
warehouse: my-project
promotionMechanisms:
argoCDAppUpdates:
- appName: develop-my-project
appNamespace: kube-system
sourceUpdates:
- repoURL: https://my.git.repo/url/my-project.git
updateTargetRevision: true
- repoURL: https://my.git.repo/url/my-project.git
kustomize:
images:
- image: my.docker.repo/url/my-project
useDigest: true If you need mor information, do not hesitate to ask. Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@MPritsch this configuration looks ok to me. The UI doesn't surface errors in I would suggest that you looking at the live state of the Enabling debug logs on the controller may also help. I'm pretty sure there messages that get logged about auto-promotion eligibility. |
Beta Was this translation helpful? Give feedback.
-
Oooh... the field is actually |
Beta Was this translation helpful? Give feedback.
-
Solved, it was 'enableAutoPromotion' but must be 'autoPromotionEnabled' |
Beta Was this translation helpful? Give feedback.
Oooh... the field is actually
autoPromotionEnabled
. I'm not sure why Argo CD isn't catching that issue.