Skip to content

Commit

Permalink
Do not set createdAt manually in the CSV (kubernetes-sigs#641)
Browse files Browse the repository at this point in the history
operator-sdk now sets that field for us.
Make new environment variables for the signer and worker image names
mandatory.
  • Loading branch information
qbarrand committed Nov 16, 2023
1 parent ccbc8bd commit efc1bb3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions hack/release-operatorhub
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,17 @@ make_output_dir () {
fi
}

created_at=$(date +'%Y-%m-%d %H:%M:%S')
readonly created_at

replace_csv () {
local -r container_image=$1
local -r csv_path=$2

yq -i "
.metadata.annotations.containerImage = \"$container_image\" |
.metadata.annotations.createdAt = \"$created_at\"" \
"$csv_path"
yq -i ".metadata.annotations.containerImage = \"$container_image\"" "$csv_path"
}

: "$IMG"
: "$HUB_IMG"
: "$SIGNER_IMG"
: "$WORKER_IMG"
: "$VERSION"

# KMM
Expand Down

0 comments on commit efc1bb3

Please sign in to comment.