Skip to content

Commit

Permalink
Add custom metadata annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
brusdev committed Feb 9, 2023
1 parent 81cf83c commit dc7da46
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ bundle: manifests kustomize ## Generate bundle manifests and metadata, then vali
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
$(KUSTOMIZE) build config/manifests | operator-sdk generate bundle -q --overwrite --package $(OPERATOR_NAMESPACE) --version $(VERSION) $(BUNDLE_METADATA_OPTS)
sed -i '/creationTimestamp/d' ./bundle/manifests/*.yaml
sed 's/annotations://' config/metadata/$(OPERATOR_NAMESPACE).annotations.yaml >> bundle/metadata/annotations.yaml
sed -e 's/annotations://' -e 's/ /LABEL /g' -e 's/: /=/g' config/metadata/$(OPERATOR_NAMESPACE).annotations.yaml >> bundle.Dockerfile
operator-sdk bundle validate ./bundle

.PHONY: bundle-clean
Expand Down
5 changes: 5 additions & 0 deletions bundle.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
COPY bundle/manifests /manifests/
COPY bundle/metadata /metadata/
COPY bundle/tests/scorecard /tests/scorecard/

LABEL name="artemiscloud/activemq-artemis-operator-bundle"
LABEL description="ActiveMQ Artemis Broker Operator Bundle"
LABEL maintainer="Roddie Kieley <[email protected]>"
LABEL version="1.0.10"
5 changes: 5 additions & 0 deletions bundle/metadata/annotations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ annotations:
# Annotations for testing.
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
operators.operatorframework.io.test.config.v1: tests/scorecard/

name: "artemiscloud/activemq-artemis-operator-bundle"
description: "ActiveMQ Artemis Broker Operator Bundle"
maintainer: "Roddie Kieley <[email protected]>"
version: "1.0.10"
5 changes: 5 additions & 0 deletions config/metadata/activemq-artemis-operator.annotations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
annotations:
name: "artemiscloud/activemq-artemis-operator-bundle"
description: "ActiveMQ Artemis Broker Operator Bundle"
maintainer: "Roddie Kieley <[email protected]>"
version: "1.0.10"

0 comments on commit dc7da46

Please sign in to comment.