Skip to content

Commit

Permalink
test(scorecard): fix failing built-in olm scorecard test (#868)
Browse files Browse the repository at this point in the history
* test(scorecard): fix failing built-in olm scorecard test

Signed-off-by: Thuan Vo <[email protected]>

* fixup(csv): remove v1beta1 cr from alm-examples

* fixup(bundle): revert update to bundled crds

---------

Signed-off-by: Thuan Vo <[email protected]>
  • Loading branch information
tthvo authored Jun 7, 2024
1 parent da8b5dd commit cf219b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ ifeq ($(BUNDLE_MODE), ocp)
endif
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)
# Workaround for: https://issues.redhat.com/browse/OCPBUGS-34901
yq -i '.spec.customresourcedefinitions.owned |= pick([1, 0])' bundle/manifests/cryostat-operator.clusterserviceversion.yaml
yq -i '.spec.customresourcedefinitions.owned |= reverse' bundle/manifests/cryostat-operator.clusterserviceversion.yaml
$(OPERATOR_SDK) bundle validate ./bundle

.PHONY: bundle-build
Expand Down
25 changes: 1 addition & 24 deletions bundle/manifests/cryostat-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,6 @@ metadata:
annotations:
alm-examples: |-
[
{
"apiVersion": "operator.cryostat.io/v1beta1",
"kind": "Cryostat",
"metadata": {
"name": "cryostat-sample"
},
"spec": {
"enableCertManager": true,
"eventTemplates": [],
"minimal": false,
"reportOptions": {
"replicas": 0
},
"storageOptions": {
"pvc": {
"annotations": {},
"labels": {},
"spec": {}
}
},
"trustedCertSecrets": []
}
},
{
"apiVersion": "operator.cryostat.io/v1beta2",
"kind": "Cryostat",
Expand All @@ -53,7 +30,7 @@ metadata:
capabilities: Seamless Upgrades
categories: Monitoring, Developer Tools
containerImage: quay.io/cryostat/cryostat-operator:4.0.0-dev
createdAt: "2024-06-07T17:42:53Z"
createdAt: "2024-06-07T18:04:27Z"
description: JVM monitoring and profiling tool
operatorframework.io/initialization-resource: |-
{
Expand Down
2 changes: 1 addition & 1 deletion config/samples/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Append samples you want in your CSV to this file as resources ##
resources:
- operator_v1beta1_cryostat.yaml
# - operator_v1beta1_cryostat.yaml
- operator_v1beta2_cryostat.yaml
# +kubebuilder:scaffold:manifestskustomizesamples

0 comments on commit cf219b4

Please sign in to comment.