Skip to content

Commit

Permalink
Use date/time format required by OperatorHub for createdAt (#956)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <[email protected]>
  • Loading branch information
MikeEdgar authored Aug 7, 2024
1 parent 361d039 commit 1207272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/bin/modify-bundle-metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ echo "[DEBUG] Setting container image = ${image_with_digest}"
${YQ} eval -o yaml -i ".metadata.annotations.containerImage = \"${image_with_digest}\"" "${CSV_FILE_PATH}"

# Add current createdAt time
curr_time_date=$(date +'%Y-%m-%d %H:%M:%S')
curr_time_date="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
echo "[DEBUG] Setting createdAt = ${curr_time_date}"
${YQ} eval -o yaml -i ".metadata.annotations.createdAt = \"${curr_time_date}\"" "${CSV_FILE_PATH}"

Expand Down

0 comments on commit 1207272

Please sign in to comment.