Skip to content

Commit

Permalink
fix: update csv correctly
Browse files Browse the repository at this point in the history
CSV was updated directly under the manifests directory. This PR fixes
it. Makes correct changes and runs `make bundle` to auto generate the
csv file.

Following changes are made the the csv:
1. Add suggested namespace annotation.
2. Add category
3. Mark certain CRDs as internal so that they are not visible in the UI.

Signed-off-by: Santosh Pillai <[email protected]>
  • Loading branch information
sp98 committed Apr 25, 2022
1 parent 7bcb93f commit 2ffe7cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions bundle/manifests/lvm-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ metadata:
}
]
capabilities: Basic Install
operators.operatorframework.io/builder: operator-sdk-v1.13.0+git
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
categories: Storage
operatorframework.io/suggested-namespace: openshift-storage
operators.operatorframework.io/internal-objects: '["logicalvolumes.topolvm.cybozu.com", "lvmvolumegroups.lvm.topolvm.io", "lvmvolumegroupnodestatuses.lvm.topolvm.io"]'
operators.operatorframework.io/builder: operator-sdk-v1.13.0+git
operators.operatorframework.io/internal-objects: '["logicalvolumes.topolvm.cybozu.com",
"lvmvolumegroups.lvm.topolvm.io", "lvmvolumegroupnodestatuses.lvm.topolvm.io"]'
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
name: lvm-operator.v0.0.1
namespace: placeholder
spec:
Expand Down
3 changes: 3 additions & 0 deletions config/manifests/bases/clusterserviceversion.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
annotations:
alm-examples: '[]'
capabilities: Basic Install
categories: Storage
operatorframework.io/suggested-namespace: openshift-storage
operators.operatorframework.io/internal-objects: '["logicalvolumes.topolvm.cybozu.com", "lvmvolumegroups.lvm.topolvm.io", "lvmvolumegroupnodestatuses.lvm.topolvm.io"]'
name: @[email protected]
namespace: placeholder
spec:
Expand Down
2 changes: 0 additions & 2 deletions config/samples/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
## Append samples you want in your CSV to this file as resources ##
resources:
- lvm_v1alpha1_lvmcluster.yaml
- lvm_v1alpha1_lvmvolumegroup.yaml
- lvm_v1alpha1_lvmvolumegroupnodestatus.yaml
#+kubebuilder:scaffold:manifestskustomizesamples

0 comments on commit 2ffe7cc

Please sign in to comment.