Skip to content

Commit

Permalink
Fix some linter errors (#46)
Browse files Browse the repository at this point in the history
Fix OperatorNameDoesNotContainOperator lint rule
Add readme as per linter ReadmeFileExists
Add lint overrides file

Co-authored-by: Leo Christy Jesuraj <leojc@ca.ibm.com>
  • Loading branch information
idlewis and leochr authored Mar 30, 2022
1 parent 0cd4ed0 commit bc4cca5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# IBM WebSphere Liberty Operator

The WebSphere Liberty Operator allows you to deploy and manage applications running on WebSphere Liberty into Kubernetes-based platforms, such as Red Hat OpenShift. You can also perform Day-2 operations such as gathering traces and dumps using the operator
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ metadata:
categories: Application Runtime
certified: "true"
containerImage: icr.io/cpopen/websphere-liberty-operator:daily
createdAt: "2022-03-28T13:15:53Z"
createdAt: "2022-03-29T10:34:48Z"
description: Deploy and manage applications running on Liberty
operators.operatorframework.io/builder: operator-sdk-v1.6.1+git
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
Expand Down Expand Up @@ -358,7 +358,7 @@ spec:
kind: WebSphereLibertyTrace
name: webspherelibertytraces.liberty.websphere.ibm.com
version: v1
displayName: WebSphere Liberty Operator
displayName: WebSphere Liberty
description: |
This advanced Operator can be used to deploy and manage WebSphere Liberty applications with consistent, production-grade QoS. This operator is based on the [Runtime Component Operator](https://github.com/application-stacks/runtime-component-operator) and provides all of its capabilities in addition to WebSphere Liberty specific features such as gathering traces and dumps (Day-2 operations) and easily configuring and managing the single sign-on information for your WebSphere Liberty applications.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ spec:
kind: WebSphereLibertyTrace
name: webspherelibertytraces.liberty.websphere.ibm.com
version: v1
displayName: WebSphere Liberty Operator
displayName: WebSphere Liberty
icon:
- base64data: PHN2ZyBpZD0iV2Vic3BoZXJlTGliZXJ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IDEgLjgzMi0xLjk0NUE1LjMzNCA1LjMzNCAwIDAgMCAyOSA5aC0yYTMuNjE1IDMuNjE1IDAgMCAxLS44MzIgMS45NDVBNS4zMzQgNS4zMzQgMCAwIDAgMjUgMTR6IiBzdHlsZT0iZmlsbDojMDAxZDZjIi8+PHBhdGggZD0iTTI1IDE5YTUuMDA2IDUuMDA2IDAgMCAwIDUtNWgtMmEzIDMgMCAwIDEtNiAwYzAtMS40ODguOC0yLjUyIDEuNzM2LTMuNzE2QTguMjMxIDguMjMxIDAgMCAwIDI2IDVWNGgtMnYxYzAgMS42OTEtLjg1NCAyLjc4Ny0xLjg0MiA0LjA1NUE3LjgxMSA3LjgxMSAwIDAgMCAyMCAxNGE1LjAwNiA1LjAwNiAwIDAgMCA1IDV6TTI4LjUgMjAuMDY0YTcuMTI2IDcuMTI2IDAgMCAxLTcgMGwtMSAxLjczMWE4Ljk0MyA4Ljk0MyAwIDAgMCAzLjUgMS4xMzlWMjhoMnYtNS4wNjZhOC45NDMgOC45NDMgMCAwIDAgMy41LTEuMTM0eiIgc3R5bGU9ImZpbGw6IzAwMWQ2YyIvPjwvc3ZnPg==
mediatype: image/svg+xml
Expand Down
11 changes: 11 additions & 0 deletions lintOverrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
overrides:
- reason: "This operator uses 1 to 1 and not fan out"
rule: CRDDefinesVersionProperty
severity: WARNING
message: '(openAPIV3Schema.properties.spec.required|openAPIV3Schema.properties.spec.properties.version)'
filenames:
- bundle/manifests/liberty.websphere.ibm.com_webspherelibertyapplications.yaml
- bundle/manifests/liberty.websphere.ibm.com_webspherelibertydumps.yaml
- bundle/manifests/liberty.websphere.ibm.com_webspherelibertytraces.yaml
- reason: "This is only needed for products storing their container images in IBM Entitled Registry, which the WebSphere Liberty Operator does not"
rule: ServiceAccountHasPullSecret
2 changes: 1 addition & 1 deletion scripts/csv_description_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function update_csv() {
DESCRIPTION_FILE=/tmp/description.md
echo " description: |" > $DESCRIPTION_FILE
cat "$BASE_DIR/../config/manifests/description.md" | sed 's/^/ /' >> $DESCRIPTION_FILE
sed -i.bak '/^ displayName: WebSphere Liberty Operator/r /tmp/description.md' $FILE
sed -i.bak '/^ displayName: WebSphere Liberty/r /tmp/description.md' $FILE
rm -f "${FILE}.bak"
rm -f $DESCRIPTION_FILE
}
Expand Down

0 comments on commit bc4cca5

Please sign in to comment.