Skip to content

Commit

Permalink
fix: Show service badge for duplicated services (#1167)
Browse files Browse the repository at this point in the history
* fix: Show service badge for duplicated services
  • Loading branch information
aleixhub authored May 2, 2023
1 parent 51b964c commit d3e01d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catalog/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ui:
name: # default use chart name + '-ui'
image:
#override:
tag: v0.29.4
tag: v0.29.5
repository: quay.io/redhat-gpte/babylon-catalog-ui
pullPolicy: IfNotPresent
replicaCount: 1
Expand Down
2 changes: 1 addition & 1 deletion catalog/ui/src/app/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export function getStageFromK8sObject(k8sObject: K8sObject): 'dev' | 'test' | 'e
if (!k8sObject) return null;
const nameSplitted = k8sObject.metadata.name.split('.');
if (Array.isArray(nameSplitted) && nameSplitted.length > 0) {
const stage = nameSplitted[nameSplitted.length - 1];
const stage = nameSplitted[nameSplitted.length - 1].split('-')[0];
const validStages = ['dev', 'test', 'event', 'prod'];
if (validStages.includes(stage)) {
return stage as 'dev' | 'test' | 'event' | 'prod';
Expand Down

0 comments on commit d3e01d9

Please sign in to comment.