zncdatadev / trino-operator

Operator for Trino, the distributed SQL query engine for big data
Apache License 2.0
3 stars 5 forks source link

[Feature]: Fix Warning in bundle: some deprecated and minkubeversion missing #89

Open whg517 opened 1 month ago

whg517 commented 1 month ago

Summary šŸ’”

When execute make bundle , some deprecated and csv.Spec.minKubeVersion missing is shown. We should fix it.

Detail message:

āÆ make bundle
test -s /Users/kevin/workspace/develop/golang/src/github.com/zncdata-labs/listener-operator/bin/controller-gen && /Users/kevin/workspace/develop/golang/src/github.com/zncdata-labs/listener-operator/bin/controller-gen --version | grep -q v0.15.0 || \
        GOBIN=/Users/kevin/workspace/develop/golang/src/github.com/zncdata-labs/listener-operator/bin go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.15.0
/Users/kevin/workspace/develop/golang/src/github.com/zncdata-labs/listener-operator/bin/controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
/opt/homebrew/bin/operator-sdk generate kustomize manifests -q
cd config/manager && /Users/kevin/workspace/develop/golang/src/github.com/zncdata-labs/listener-operator/bin/kustomize edit set image controller=quay.io/zncdatadev/listener-operator:v0.0.1
/Users/kevin/workspace/develop/golang/src/github.com/zncdata-labs/listener-operator/bin/kustomize build config/manifests | /opt/homebrew/bin/operator-sdk generate bundle -q --overwrite --version 0.0.1 --channels="stable" --default-channel="stable"
# Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically.
# Warning: 'patchesJson6902' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically.
WARN[0000] ClusterServiceVersion validation: [CSVFileNotValid] (listener-operator.v0.0.1) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects. 
INFO[0000] Creating bundle.Dockerfile                   
INFO[0000] Creating bundle/metadata/annotations.yaml    
INFO[0000] Bundle metadata generated successfully       
/opt/homebrew/bin/operator-sdk bundle validate ./bundle
WARN[0000] Warning: Value : (listener-operator.v0.0.1) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects. 
INFO[0000] All validation tests have completed successfully

Examples šŸŒˆ

No response

Motivation šŸ”¦

No response

lwpk110 commented 1 week ago