-
Notifications
You must be signed in to change notification settings - Fork 2.1k
OCPQE-19978: Add CloudControllerManager and Ingress Cap for v416 #49708
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-bot
merged 1 commit into
openshift:master
from
sunzhaohua2:ccm-optional
Mar 27, 2024
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
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
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 |
|---|---|---|
|
|
@@ -88,6 +88,8 @@ caps_operator[MachineAPI]="machine-api control-plane-machine-set cluster-autosca | |
| caps_operator[ImageRegistry]="image-registry" | ||
| caps_operator[OperatorLifecycleManager]="operator-lifecycle-manager operator-lifecycle-manager-catalog operator-lifecycle-manager-packageserver" | ||
| caps_operator[CloudCredential]="cloud-credential" | ||
| caps_operator[CloudControllerManager]="cloud-controller-manager" | ||
| caps_operator[Ingress]="ingress" | ||
|
|
||
| # Mapping between optional capability and resources | ||
| # Need to be updated when new resource marks as optional | ||
|
|
@@ -102,8 +104,12 @@ v412=" ${v411} Console Insights Storage CSISnapshot" | |
| v413=" ${v412} NodeTuning" | ||
| v414=" ${v413} MachineAPI Build DeploymentConfig ImageRegistry" | ||
| v415=" ${v414} OperatorLifecycleManager CloudCredential" | ||
| latest_defined="v415" | ||
| v416=" ${v415} CloudControllerManager Ingress" | ||
|
Contributor
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.
Contributor
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. If yes, can you also help update the PR title and description to include it. |
||
| latest_defined="v416" | ||
| always_default="${!latest_defined}" | ||
| # always enabled capabilities | ||
| #declare -A always_enabled_caps | ||
| #always_enabled_caps[416]="Ingress" | ||
|
|
||
| # Determine vCurrent | ||
| declare "v${ocp_major_version}${ocp_minor_version}" | ||
|
|
@@ -140,6 +146,9 @@ case ${baselinecaps_from_config} in | |
| "v4.15") | ||
| enabled_capability_set="${v415}" | ||
| ;; | ||
| "v4.16") | ||
| enabled_capability_set="${v416}" | ||
| ;; | ||
| "vCurrent") | ||
| enabled_capability_set="${vCurrent}" | ||
| ;; | ||
|
|
@@ -152,6 +161,12 @@ additional_caps_from_config=$(yq-go r "${SHARED_DIR}/install-config.yaml" "capab | |
| if [[ "${additional_caps_from_config}" != "" ]]; then | ||
| enabled_capability_set="${enabled_capability_set} ${additional_caps_from_config}" | ||
| fi | ||
| # Once pr https://github.com/openshift/cluster-version-operator/pull/946 merged, the code can be opened | ||
| #for version in "${!always_enabled_caps[@]}"; do | ||
| # if [[ ${ocp_version/.} -ge ${version} ]]; then | ||
| # enabled_capability_set="${enabled_capability_set} ${always_enabled_caps[$version]}" | ||
| # fi | ||
| #done | ||
| enabled_capability_set=$(echo ${enabled_capability_set} | xargs -n1 | sort -u | xargs) | ||
| disabled_capability_set="${vCurrent}" | ||
| for cap in $enabled_capability_set; do | ||
|
|
||
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
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
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
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
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.
The job is for testing
nonecapability on purpose, ideally we should not enable any additional caps, while becauseMachineAPIandCloudCredentialhas to be enabled because the IPI install has to require them.While for the added
CCMandIngress, is that the same case? The IPI install has to require them because of some known limiation?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.
CCM can only be disabled on "none", "baremetal" or "external" platform with ccm none clusters, so has to be enabled on cloud clusters.
Ingress is always enabled on ocp, only disabled on hypershift