Skip to content

Introduce OLMConfig CRD #198

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

Conversation

awgreene
Copy link
Member

No description provided.

@awgreene awgreene requested a review from njhale November 29, 2021 17:46
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 29, 2021
@awgreene awgreene force-pushed the olm-config branch 3 times, most recently from e2ef0ee to c8315c8 Compare November 29, 2021 20:19
// OperatorGroup that targets all namespaces.
// When reenabled, OLM will recreate the "Copied CSVs" for each
// cluster scoped operator.
DisableCopiedCSVs bool `json:"disableCopiedCSVs,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

You may need to make this a pointer to a bool to avoid disableCopiedCSVs: false being implicitly specified (or printed when firing off kubectl get olmconfigs <...> -o yaml).

Copy link
Member Author

Choose a reason for hiding this comment

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

Ha! Actually landed on this change while consuming the API. Done!

Copy link
Member

@joelanford joelanford Dec 6, 2021

Choose a reason for hiding this comment

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

This was marked as resolved, but I noticed that its not (or no longer) a pointer to a bool? (I agree that it should be a pointer to a bool)

@awgreene awgreene force-pushed the olm-config branch 2 times, most recently from 5782b40 to cfec086 Compare November 30, 2021 16:00
@awgreene awgreene marked this pull request as ready for review December 1, 2021 22:27
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 1, 2021
@awgreene
Copy link
Member Author

awgreene commented Dec 2, 2021

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 2, 2021
@awgreene
Copy link
Member Author

awgreene commented Dec 6, 2021

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 6, 2021
@kevinrizza
Copy link
Member

/approve

@openshift-ci
Copy link

openshift-ci bot commented Dec 6, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: awgreene, kevinrizza

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 Dec 6, 2021
@awgreene awgreene force-pushed the olm-config branch 4 times, most recently from 794bf4d to 1450518 Compare December 6, 2021 22:04
)

const (
DisableCopiedCSVsConditionType = "DisableCopiedCSVsConfiguration"
Copy link
Member

Choose a reason for hiding this comment

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

Should this be past tense so that it reads a little more like some state has (or hasn't) been achieved? Not sure if this was captured in the EP. If so, disregard. E.g.:

conditions:
- type: DisabledCopiedCSVs
  status: True

Or:

conditions:
- type: DisabledCopiedCSVs
  status: False
  reason: DeleteCSVFailure
  message: 'delete csv "foo" in namespace "bar": not permitted'

Copy link
Member Author

Choose a reason for hiding this comment

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

This seems fine and was not captured in the EP

Copy link
Member Author

Choose a reason for hiding this comment

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

Addressed in the latest version of the PR. Note that it isn't possible to discern the state of the condition without both the status and reason:

status is false because copied csvs are enabled:

conditions:
- type: DisabledCopiedCSVs
  status: False
  reason: CopiedCSVs enabled
  message: CSVs are being copied

vs.

status is false because not all copied csvs were deleted:

conditions:
- type: DisabledCopiedCSVs
  status: False
  reason: DeleteCSVFailure
  message: 'delete csv "foo" in namespace "bar": not permitted'

Not really an issue, but something worth calling out in the eventual docs.

@joelanford
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 8, 2021
@openshift-merge-robot openshift-merge-robot merged commit 17c6616 into operator-framework:master Dec 8, 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.

5 participants