Skip to content

Commit

Permalink
Update "createdAt" and "support" annotation in CSV
Browse files Browse the repository at this point in the history
Signed-off-by: dkwon17 <[email protected]>
  • Loading branch information
dkwon17 committed Jan 15, 2024
1 parent b4e00c7 commit ad5ce5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ metadata:
categories: Developer Tools
certified: "false"
containerImage: quay.io/eclipse/kubernetes-image-puller-operator:1.1.0
createdAt: ""
createdAt: "2024-01-15T16:23:04Z"
description: Create and manage kubernetes-image-puller instances.
operators.operatorframework.io/builder: operator-sdk-v1.9.0+git
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/che-incubator/kubernetes-image-puller-operator
support: ""
support: Community
name: kubernetes-imagepuller-operator.v1.1.0
namespace: placeholder
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
createdAt: ""
description: Create and manage kubernetes-image-puller instances.
repository: https://github.com/che-incubator/kubernetes-image-puller-operator
support: ""
support: Community
name: kubernetes-imagepuller-operator.v0.0.0
namespace: placeholder
spec:
Expand Down
2 changes: 2 additions & 0 deletions make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ releaseOlmFiles() {
CURRENT_VERSION=$(make bundle-version)
PACKAGE=$(make bundle-package)
CSV_PATH=$(make csv-path)
CREATE_TIMESTAMP=$(date +"%Y-%m-%dT%H:%M:%SZ")

make bundle IMG="${RELEASE_IMAGE}"

yq -riY '.metadata.name = "'${PACKAGE}'.v'${RELEASE_VERSION}'"' ${CSV_PATH}
yq -riY '.metadata.annotations.createdAt = "'${CREATE_TIMESTAMP}'"' ${CSV_PATH}
yq -riY '.spec.version = "'${RELEASE_VERSION}'"' ${CSV_PATH}
yq -riY '.spec.replaces = "'${PACKAGE}'.v'${CURRENT_VERSION}'"' ${CSV_PATH}

Expand Down

0 comments on commit ad5ce5f

Please sign in to comment.