-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui): more linkage #749
Conversation
Signed-off-by: Rafal Pelczar <rafal@akuity.io>
✅ Deploy Preview for docs-kargo-akuity-io canceled.
|
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #749 +/- ##
=======================================
Coverage 46.81% 46.81%
=======================================
Files 97 97
Lines 6765 6765
=======================================
Hits 3167 3167
Misses 3446 3446
Partials 152 152 ☔ View full report in Codecov by Sentry. |
return shards.flatMap((shard) => { | ||
return stage.spec?.promotionMechanisms?.argocdAppUpdates.map((argoCD) => ({ | ||
label: argoCD.appName, | ||
url: `${shard.url}/applications/${shard.namespace}/${argoCD.appName}` | ||
})); | ||
}); | ||
}, [config, stage]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When mapping ArgoCD apps to a shard, we can identify which shard it belongs to based on the following field in the Stage:
kind: Stage
metadata:
annotations:
kargo.akuity.io/shard: foo
In the normal case, the kargo.akuity.io/shard
annotation might be missing entirely. Otherwise the value of the annotation should be one of the map keys in the GetConfig Argo CD URLs API
Signed-off-by: Rafal Pelczar <rafal@akuity.io>
Screen.Recording.2023-09-14.at.01.16.41.mov