Skip to content
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

Merged
merged 6 commits into from
Sep 15, 2023
Merged

feat(ui): more linkage #749

merged 6 commits into from
Sep 15, 2023

Conversation

rpelczar
Copy link
Contributor

Screen.Recording.2023-09-14.at.01.16.41.mov

Signed-off-by: Rafal Pelczar <rafal@akuity.io>
@rpelczar rpelczar linked an issue Sep 13, 2023 that may be closed by this pull request
5 tasks
@netlify
Copy link

netlify bot commented Sep 13, 2023

Deploy Preview for docs-kargo-akuity-io canceled.

Name Link
🔨 Latest commit f59552c
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/65047cb06041ee000845a960

@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (c066996) 46.81% compared to head (f59552c) 46.81%.

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.
📢 Have feedback on the report? Share it here.

Signed-off-by: Rafal Pelczar <rafal@akuity.io>
Comment on lines 70 to 76
return shards.flatMap((shard) => {
return stage.spec?.promotionMechanisms?.argocdAppUpdates.map((argoCD) => ({
label: argoCD.appName,
url: `${shard.url}/applications/${shard.namespace}/${argoCD.appName}`
}));
});
}, [config, stage]);
Copy link
Member

@jessesuen jessesuen Sep 14, 2023

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

@rpelczar rpelczar enabled auto-merge (squash) September 15, 2023 15:50
@rpelczar rpelczar merged commit 6b11ea3 into main Sep 15, 2023
@rpelczar rpelczar deleted the 644-ui-more-linkage branch September 15, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI: more linkage
3 participants