-
Notifications
You must be signed in to change notification settings - Fork 78
doc: fix layout of OperatorHub doc #171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
openshift-merge-robot
merged 1 commit into
operator-framework:master
from
camilamacedo86:clean-doc
Dec 1, 2021
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,33 +22,55 @@ import ( | |
// the projects on OperatorHub.io. | ||
// | ||
// This validator will ensure that: | ||
// | ||
// - The annotations capabilities into the CSV has a valid option, which are: | ||
// * "Basic Install" | ||
// * "Seamless Upgrades" | ||
// * "Full Lifecycle" | ||
// * "Deep Insights" | ||
// * "Auto Pilot" | ||
// | ||
// * Basic Install | ||
// | ||
// * Seamless Upgrades | ||
// | ||
// * Full Lifecycle | ||
// | ||
// * Deep Insights | ||
// | ||
// * Auto Pilot | ||
// | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 on this added spacing since it helps separate "capabilities" above and the "categories" below. |
||
// - The annotations categories into the CSV has a valid option, which are: | ||
// * "AI/Machine Learning" | ||
// * "Application Runtime" | ||
// * "Big Data" | ||
// * "Cloud Provider" | ||
// * "Developer Tools" | ||
// * "Database" | ||
// * "Integration & Delivery" | ||
// * "Logging & Tracing" | ||
// * "Modernization & Migration" | ||
// * "Monitoring" | ||
// * "Networking" | ||
// * "OpenShift Optional" | ||
// * "Security" | ||
// * "Storage" | ||
// * "Streaming & Messaging" | ||
// | ||
// NOTE: The operatorhub validator can verify against custom bundle categories by setting the OPERATOR_BUNDLE_CATEGORIES | ||
// | ||
// * AI/Machine Learning | ||
// | ||
// * Application Runtime | ||
// | ||
// * Big Data | ||
// | ||
// * Cloud Provider | ||
// | ||
// * Developer Tools | ||
// | ||
// * Database | ||
// | ||
// * Integration & Delivery | ||
// | ||
// * Logging & Tracing | ||
// | ||
// * Modernization & Migration | ||
// | ||
// * Monitoring | ||
// | ||
// * Networking | ||
// | ||
// * OpenShift Optional | ||
// | ||
// * Security | ||
// | ||
// * Storage | ||
// | ||
// * Streaming & Messaging | ||
// | ||
// NOTE: The OperatorHub validator can verify against custom bundle categories by setting the OPERATOR_BUNDLE_CATEGORIES | ||
// environment variable. Setting the OPERATOR_BUNDLE_CATEGORIES environment variable to the path to a json file | ||
// containing a list of categories will enable those categories to be used when comparing CSV categories for | ||
// operatorhub validation. The json file should be in the following format: | ||
// OperatorHub validation. The json file should be in the following format: | ||
// | ||
// ```json | ||
// { | ||
|
@@ -60,24 +82,41 @@ import ( | |
// } | ||
// ``` | ||
// | ||
// - The csv.Spec.Provider.Name was provided | ||
// - The csv.Spec.Maintainers elements contains both name and email | ||
// - The csv.Spec.Links elements contains both name and url | ||
// - The csv.Spec.Links.Url is a valid value | ||
// - The csv.Spec.Version is provided | ||
// - The checks.csv.Spec.Icon was provided and has not more than one element | ||
// - The csv.Spec.Icon elements should contain both data and mediatype | ||
// - The csv.Spec.Icon elements should contain both data and mediatype | ||
// - The csv.Spec.Icon has a valid mediatype, which are | ||
// * "image/gif" | ||
// * "image/jpeg" | ||
// * "image/png" | ||
// * "image/svg+xml" | ||
// - The `csv.Spec.Provider.Name` was provided | ||
// | ||
// - The `csv.Spec.Maintainers` elements contains both name and email | ||
// | ||
// - The `csv.Spec.Links` elements contains both name and url | ||
// | ||
// - The `csv.Spec.Links.Url` is a valid value | ||
// | ||
// - The `csv.Spec.Version` is provided | ||
// | ||
// - The `csv.Spec.Icon` was provided and has not more than one element | ||
// | ||
// - The `csv.Spec.Icon` elements should contain both data and `mediatype` | ||
// | ||
// - The `csv.Spec.Icon` elements should contain both data and `mediatype` | ||
// | ||
// - The `csv.Spec.Icon` has a valid `mediatype`, which are | ||
// | ||
// * image/gif | ||
// | ||
// * image/jpeg | ||
// | ||
// * image/png | ||
// | ||
// * image/svg+xml | ||
// | ||
// - If informed ONLY, check if the value csv.Spec.MinKubeVersion is parsable according to semver (https://semver.org/) | ||
// Also, this validator will raise warnings when: | ||
// | ||
// - The bundle name (CSV.metadata.name) does not follow the naming convention: <operator-name>.v<semver> e.g. memcached-operator.v0.0.1 | ||
// | ||
// NOTE: The bundle name must be 63 characters or less because it will be used as k8s ownerref label which only allows max of 63 characters. | ||
// | ||
// - The channel names seems are not following the convention https://olm.operatorframework.io/docs/best-practices/channel-naming/ | ||
// | ||
// - The usage of the removed APIs on Kubernetes 1.22 is found. More info: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22 | ||
// | ||
// Note that this validator allows to receive a List of optional values as key=values. Currently, only the | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation also works for correcting the output formatting