Skip to content

Conversation

@camilamacedo86
Copy link
Contributor

@camilamacedo86 camilamacedo86 commented Sep 22, 2021

Description
GoDoc operatorhub validator

When merged this documentation should appears in: https://pkg.go.dev/github.com/operator-framework/api@master/pkg/validation/internal#OperatorHubValidator

@openshift-ci openshift-ci bot requested review from estroz and kevinrizza September 22, 2021 10:48
Copy link
Member

@dinhxuanvu dinhxuanvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. A few small comments.

// * "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) seems not following the naming convention: <operator-name>.v<semver> e.g. memcached-operator.v0.0.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a note about the name must be 63 characters or less because it will be used as k8s ownerref label which only allows max of 63 characters?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does not follow

// `k8s-version` key is allowed. If informed, it will perform the checks against this specific Kubernetes version where the
// operator bundle is intend to be distribute for.
// operator bundle is intend to be distribute for and will raise errors instead of warnings.
// Currently, this check is capable of to verify the removed APIs only for Kubernetes 1.22 version.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capable of verifying

// Note that this validator allows to receive a List of optional values as key=values. Currently, only the
// `k8s-version` key is allowed. If informed, it will perform the checks against this specific Kubernetes version where the
// operator bundle is intend to be distribute for.
// operator bundle is intend to be distribute for and will raise errors instead of warnings.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what intend to be distribute for means. Can you elaborate further?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I change the text. Please, let me know if it fits better.

// * "Full Lifecycle"
// * "Deep Insights"
// * "Auto Pilot"
// - The annotations categories into the CSV has a valid option, which are:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we support custom categories too though. maybe worth mentioning.
https://olm.operatorframework.io/docs/tasks/creating-operator-bundle/#custom-bundle-categories

Signed-off-by: Camila Macedo <[email protected]>
@camilamacedo86
Copy link
Contributor Author

Hi @dinhxuanvu and @exdx,

All comments addressed. Thank you for your time and help on that.

@exdx
Copy link
Contributor

exdx commented Oct 4, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 4, 2021
Copy link
Member

@dinhxuanvu dinhxuanvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Member

@dinhxuanvu dinhxuanvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@openshift-ci
Copy link

openshift-ci bot commented Oct 6, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, dinhxuanvu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 6, 2021
@openshift-merge-robot openshift-merge-robot merged commit dd58de2 into operator-framework:master Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants