Skip to content

Commit

Permalink
fix: community-operators-prod compatibility (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 authored Jul 3, 2024
1 parent fbb1951 commit 92ac5f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bundle.Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ curl -s "https://get.sdkman.io?rcupdate=false" | bash && \
source "$HOME/.sdkman/bin/sdkman-init.sh" && \
sdk install java && \
sdk install groovy && \
groovy scripts/enrichCSV.groovy /code/target/bundle/trustify-operator/manifests/trustify-operator.clusterserviceversion.yaml
groovy scripts/enrichCSV.groovy /code/target/bundle/trustify-operator/manifests/trustify-operator.clusterserviceversion.yaml && \
echo ' com.redhat.openshift.versions: "v4.9"' >> /code/target/bundle/trustify-operator/metadata/annotations.yaml

FROM scratch
# Core bundle labels.
Expand Down
6 changes: 6 additions & 0 deletions scripts/enrichCSV.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
import org.yaml.snakeyaml.*
import groovy.yaml.*
import java.util.Map
import java.time.LocalDate

def file = new File(this.args[0])

def fileReader = new FileReader(file)
def yaml = new Yaml().load(fileReader)

yaml.metadata.annotations.support = "https://github.com/trustification/trustify-operator/issues"
yaml.metadata.annotations.description = "Trustify is makes Software Suppand ultimately easier to create, manage, consume."
yaml.metadata.annotations.createdAt = LocalDate.now().toString()
yaml.metadata.annotations.containerImage = yaml.spec.install.spec.deployments[0].spec.template.spec.containers[0].image

yaml.spec.customresourcedefinitions.owned[0].description = "Trustify"

// Adding cluster permissions to be able to fetch host domain
Expand Down

0 comments on commit 92ac5f7

Please sign in to comment.