Skip to content

Conversation

@kirankt
Copy link
Contributor

@kirankt kirankt commented Mar 21, 2022

Add in-repo documentation for user-selectable capabilities

@kirankt
Copy link
Contributor Author

kirankt commented Mar 21, 2022

/cc @wking

### Capabilities

* `baselineCapabilitySet` (optional string): Selects an initial set of optional capabilities to enable. Valid values are `vCurrent` (the default), `v4.11` and `None`.
* `additionalEnabledCapabilities` (optional array of strings): Extends the set of managed capabilities beyond the baseline defined in `baselineCapabilitySet`. Default is an empty set. Valid values are `openshift-samples` and `baremetal`.
Copy link
Member

Choose a reason for hiding this comment

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

You validate these, right? Have you bumped your vendored openshift/api to pull in the baremetal addition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the openshift/api was vendored recently and it does contain Baremetal.

var ClusterVersionCapabilitySets = map[ClusterVersionCapabilitySet][]ClusterVersionCapability{
ClusterVersionCapabilitySetNone: {},
ClusterVersionCapabilitySet4_11: {
ClusterVersionCapabilityOpenShiftSamples,
ClusterVersionCapabilityBaremetal,
},
ClusterVersionCapabilitySetCurrent: {
ClusterVersionCapabilityOpenShiftSamples,
ClusterVersionCapabilityBaremetal,
},
}

We also iterate over all caps from all sets to validate the valid entries.

// Create sets of all capability sets and *all* available capabilities across those capability sets
for baselineSet, capabilities := range configv1.ClusterVersionCapabilitySets {
allCapabilitySets.Insert(string(baselineSet))
for _, capability := range capabilities {
allAvailableCapabilities.Insert(string(capability))
}
}

Copy link
Member

Choose a reason for hiding this comment

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

This line will need a bump for marketplace for #5755. If #5755 lands first, then this PR would need the bump. If this PR lands first, then #5755 would need the bump. Or a third follow up PR could come in with the bump behind both this PR and #5755.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This line will need a bump for marketplace for #5755. If #5755 lands first, then this PR would need the bump. If this PR lands first, then #5755 would need the bump. Or a third follow up PR could come in with the bump behind both this PR and #5755.

My guess is probably option 3. I'll send a follow up PR with new vendoring and an update to this doc, which should be the norm anyway going forward. Thanks.

@patrickdillon
Copy link
Contributor

Example, please!

* `pullSecret` (required string): The secret to use when pulling images.
* `sshKey` (optional string): The public Secure Shell (SSH) key to provide access to instances.

### Capabilities

* `baselineCapabilitySet` (optional string): Selects an initial set of optional capabilities to enable. Valid values are `vCurrent` (the default), `v4.11` and `None`.
Copy link
Contributor

Choose a reason for hiding this comment

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

So, as a rule, does vCurrent, include the list of optional capabilities by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

vCurrent has a list of baseline capabilities that get installed by default.

Copy link
Contributor

@sadasu sadasu Mar 29, 2022

Choose a reason for hiding this comment

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

I think it is worth mentioning if the default (vCurrent) value for baselineCapabilitySet already includes all optional capabilities or not.

Copy link
Contributor

Choose a reason for hiding this comment

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

@wking, @kirankt with the default settings:
baselineCapabilitySet: vCurrent
additionalEnabledCapabilities: None
would all optional components be installed?

If yes, would it be worth mentioning that in this document?

Copy link
Member

Choose a reason for hiding this comment

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

vCurrent docs:

ClusterVersionCapabilitySetCurrent is the recommended set of optional capabilities to enable for the cluster's current version of OpenShift.

We're currently recommending all three caps in vCurrent, but there is no commitment to continuing to include those caps or to always adding each new cap.

I'm not installer, so I have no stake in how much openshift/api context folks feel like maintaining here. If it was me, I'd just point at the floating docs.

@sadasu
Copy link
Contributor

sadasu commented Apr 5, 2022

I think this is complete except for the reference to the https://pkg.go.dev/github.com/openshift/api/config/v1#ClusterVersionCapability as mentioned in #5732 (comment).

Use floating docs links for capabilities and capability sets
@sadasu
Copy link
Contributor

sadasu commented Apr 6, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 6, 2022
@patrickdillon
Copy link
Contributor

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 14, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: patrickdillon

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 14, 2022
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@kirankt
Copy link
Contributor Author

kirankt commented Apr 14, 2022

/skip
This is a doc file update. We should skip CI.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

11 similar comments
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@patrickdillon
Copy link
Contributor

/override ci/prow/e2e-metal-ipi-ovn-ipv6

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 14, 2022

@patrickdillon: Overrode contexts on behalf of patrickdillon: ci/prow/e2e-metal-ipi-ovn-ipv6

Details

In response to this:

/override ci/prow/e2e-metal-ipi-ovn-ipv6

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

16 similar comments
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 17, 2022

@kirankt: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws 261d49023a44d754b9b252beef74d3a618c9b7c9 link true /test e2e-aws
ci/prow/e2e-gcp-upgrade 261d49023a44d754b9b252beef74d3a618c9b7c9 link true /test e2e-gcp-upgrade
ci/prow/e2e-aws-upgrade 261d49023a44d754b9b252beef74d3a618c9b7c9 link true /test e2e-aws-upgrade

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@patrickdillon
Copy link
Contributor

/override ci/prow/e2e-metal-ipi-ovn-ipv6

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 17, 2022

@patrickdillon: Overrode contexts on behalf of patrickdillon: ci/prow/e2e-metal-ipi-ovn-ipv6

Details

In response to this:

/override ci/prow/e2e-metal-ipi-ovn-ipv6

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@patrickdillon
Copy link
Contributor

/refresh
/skip

@openshift-merge-robot openshift-merge-robot merged commit 4ef5e62 into openshift:master Apr 18, 2022
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.

6 participants