Skip to content

Commit

Permalink
feat: set icon color to green when definitions is ready true
Browse files Browse the repository at this point in the history
  • Loading branch information
braghettos committed Nov 28, 2024
1 parent 6ca768c commit 11d0e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chart/templates/patch.card-color.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: krateo.io/v1alpha1
kind: Patch
metadata:
name: compositiondefinition-status-card-color
name: compositiondefinition-status-card-color-{{ .Release.Name }}-{{ .Release.Namespace }}
spec:
from:
objectReference:
Expand All @@ -17,4 +17,4 @@ spec:
name: template-{{ .Release.Name }}-card
namespace: {{ .Release.Namespace }}
fieldPath: spec.app.template.color
transform: ${ .conditions[] | select(.type == "Ready") | if .status == "False" then "yellow" elif .status == "True" then "red" else "grey" end }
transform: ${ .conditions[] | select(.type == "Ready") | if .status == "False" then "orange" elif .status == "True" then "green" else "grey" end }

0 comments on commit 11d0e25

Please sign in to comment.