Skip to content

Commit

Permalink
allow for annotation rename : lastCertifiedTimestamp (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmulholla authored Apr 30, 2021
1 parent 9cfd152 commit 829bc48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/src/chartprreview/verify-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,12 @@ getAnnotations() {
if [[ $line == "digest:"* ]]; then
digest=`echo "$line" | sed 's/digest://' | xargs`
annotations+=("\"helm-chart.openshift.io/digest\":\"$digest\"")
elif [[ $line == "lastCertifiedTimestamp:"* ]]; then
certtime=`echo "$line" | sed 's/lastCertifiedTimestamp://' | xargs`
annotations+=("\"helm-chart.openshift.io/lastCertifiedTimestamp\":\"$certtime\"")
elif [[ $line == "lastCertifiedTime:"* ]]; then
certtime=`echo "$line" | sed 's/lastCertifiedTime://' | xargs`
annotations+=("\"helm-chart.openshift.io/lastCertifiedTime\":\"$certtime\"")
annotations+=("\"helm-chart.openshift.io/lastCertifiedTimestamp\":\"$certtime\"")
fi
elif [ "$chart" = true ]; then
if [[ $line == "annotations:"* ]]; then
Expand Down

0 comments on commit 829bc48

Please sign in to comment.