Skip to content

Add inspect.metal3.io=disabled annotation#787

Merged
metal3-io-bot merged 1 commit intometal3-io:masterfrom
hardys:disable_inspection
Feb 11, 2021
Merged

Add inspect.metal3.io=disabled annotation#787
metal3-io-bot merged 1 commit intometal3-io:masterfrom
hardys:disable_inspection

Conversation

@hardys
Copy link
Copy Markdown
Member

@hardys hardys commented Feb 4, 2021

When inspect.metal3.io=disabled is specified as an annotation we skip
inspection and return complete immediately from the Inspecting state.

Partially-Implements: metal3-io/metal3-docs#155

When inspect.metal3.io=disabled is specified as an annotation we skip
inspection and return complete immediately from the Inspecting state.

Partially-Implements: metal3-io/metal3-docs#155
@metal3-io-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hardys

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

The pull request process is described here

Details 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

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 4, 2021
@hardys hardys requested review from andfasano and dhellmann February 4, 2021 16:44
@metal3-io-bot metal3-io-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 4, 2021
@hardys
Copy link
Copy Markdown
Member Author

hardys commented Feb 4, 2021

/test-integration


if inspectionDisabled(info.host) {
info.log.Info("inspection disabled by annotation")
info.publishEvent("InspectionSkipped", "disabled by annotation")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I added an event so it's clearer in the event output e.g:

Events:
  Type    Reason              Age   From                         Message
  ----    ------              ----  ----                         -------
  Normal  Registered          13m   metal3-baremetal-controller  Registered new host
  Normal  BMCAccessValidated  13m   metal3-baremetal-controller  Verified access to BMC
  Normal  InspectionSkipped   13m   metal3-baremetal-controller  disabled by annotation
  Normal  ProfileSet          13m   metal3-baremetal-controller  Hardware profile set: unknown
  Normal  PowerOn             13m   metal3-baremetal-controller  Host powered on

@hardys hardys requested a review from fmuyassarov February 5, 2021 08:13
Copy link
Copy Markdown
Member

@fmuyassarov fmuyassarov left a comment

Choose a reason for hiding this comment

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

LGTM

@andfasano
Copy link
Copy Markdown
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 11, 2021
@metal3-io-bot metal3-io-bot merged commit 7b8f74a into metal3-io:master Feb 11, 2021
hardys pushed a commit to hardys/dev-scripts that referenced this pull request Feb 19, 2021
To enable testing with the changes implemented in
metal3-io/baremetal-operator#787

This requires an OCP build which contains this rebase
openshift/baremetal-operator#125
hardys pushed a commit to hardys/dev-scripts that referenced this pull request Feb 22, 2021
To enable testing with the changes implemented in
metal3-io/baremetal-operator#787

This requires an OCP build which contains this rebase
openshift/baremetal-operator#125
hardys pushed a commit to hardys/dev-scripts that referenced this pull request Feb 25, 2021
To enable testing with the changes implemented in
metal3-io/baremetal-operator#787

This requires an OCP build which contains this rebase
openshift/baremetal-operator#125
hardys pushed a commit to hardys/dev-scripts that referenced this pull request Feb 25, 2021
To enable testing with the changes implemented in
metal3-io/baremetal-operator#787

This requires an OCP build which contains this rebase
openshift/baremetal-operator#125
hardys pushed a commit to hardys/dev-scripts that referenced this pull request Mar 2, 2021
To enable testing with the changes implemented in
metal3-io/baremetal-operator#787

This requires an OCP build which contains this rebase
openshift/baremetal-operator#125
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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants