config/v1: add IBMCloudServiceTransitGateway and IBMCloudServicePowerVS to IBMCloudServiceName - #2959
config/v1: add IBMCloudServiceTransitGateway and IBMCloudServicePowerVS to IBMCloudServiceName#2959taliandre49 wants to merge 2 commits into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Hello @taliandre49! Some important instructions when contributing to openshift/api: |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
PR Summary by Qodoconfig/v1: add TransitGateway and PowerVS to IBMCloudServiceName
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1.
|
… support Staging Overrides in Openshift installer Signed-off-by: Natalia Jordan <natalia.jordan@ibm.com>
79da0c5 to
d2bcb11
Compare
|
status: updating CRDs and limit on service Endpoints |
d2bcb11 to
00ad02d
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (5)
payload-manifests/crds/0000_10_config-operator_01_infrastructures-SelfManagedHA-DevPreviewNoUpgrade.crd.yaml (1)
587-622: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winMissing PowerVS enum sync for this feature-set variant.
Unlike its sibling CRD variants (Default, Hypershift-CustomNoUpgrade, Hypershift-DevPreviewNoUpgrade, SelfManagedHA-CustomNoUpgrade), this file's
spec.platformSpec.powervs.serviceEndpoints[].name(around line 621) andstatus.platformStatus.powervs.serviceEndpoints[].name(around line 2621) enums still stop atVPCand were not updated to addTransitGateway/PowerVS, even though the ibmcloud sections in this same file were correctly synced. SincePowerVSServiceEndpoint.Name's enum intypes_infrastructure.gois not feature-gated, all generated CRD variants should include the new values — this looks like a missed regeneration step for this specific feature-set.Recommend re-running the CRD generation (
make update/ equivalent) for this manifest so the powervs enum matches its siblings.Also applies to: 2560-2622
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@payload-manifests/crds/0000_10_config-operator_01_infrastructures-SelfManagedHA-DevPreviewNoUpgrade.crd.yaml` around lines 587 - 622, Regenerate this CRD manifest so both spec.platformSpec.powervs.serviceEndpoints[].name and status.platformStatus.powervs.serviceEndpoints[].name include the TransitGateway and PowerVS enum values, matching the other feature-set variants and the PowerVSServiceEndpoint.Name definition. Use the repository’s standard CRD generation command, such as make update, rather than editing only one occurrence manually.payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-CustomNoUpgrade.crd.yaml (2)
548-548: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winStale doc: "maximum of 13" description text vs
maxItems: 15.The endpoint description text still says "A maximum of 13 service endpoints overrides are supported." while
maxItemswas raised to 15. See consolidated comment for cross-file details.Also applies to: 599-599
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-CustomNoUpgrade.crd.yaml` at line 548, Update the endpoint override description text in both referenced CRD entries to state that a maximum of 15 service endpoint overrides are supported, matching the existing maxItems: 15 constraint.
548-599: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winStale "maximum of 13" doc text after
maxItemswas raised to 15. All four generated CRD variants still describe the IBM CloudserviceEndpointslimit as 13 in the field's prose description while the enforcedmaxItemswas bumped to 15. Root cause is the Go doc-comment inconfig/v1/types_infrastructure.go(not included in this batch) that generates this text; it needs to be updated and the CRDs regenerated so all variants match.
payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-CustomNoUpgrade.crd.yaml#L548-L599: update "A maximum of 13 service endpoints overrides are supported." to say 15 (and confirm the mirrored status-section description, if any, matches).payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-DevPreviewNoUpgrade.crd.yaml#L533-L584: same text update needed.payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-SelfManagedHA-CustomNoUpgrade.crd.yaml#L548-L599: same text update needed.payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-SelfManagedHA-DevPreviewNoUpgrade.crd.yaml#L557-L599: verify and update the same text if present.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-CustomNoUpgrade.crd.yaml` around lines 548 - 599, Update the serviceEndpoints documentation source in config/v1/types_infrastructure.go from 13 to 15, then regenerate all CRD variants so their prose descriptions match maxItems: 15, including any mirrored status descriptions. Apply the generated update in payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-CustomNoUpgrade.crd.yaml:548-599, Hypershift-DevPreviewNoUpgrade.crd.yaml:533-584, SelfManagedHA-CustomNoUpgrade.crd.yaml:548-599, and SelfManagedHA-DevPreviewNoUpgrade.crd.yaml:557-599.payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-DevPreviewNoUpgrade.crd.yaml (1)
533-533: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winStale doc: "maximum of 13" description text vs
maxItems: 15.Same mismatch as in the sibling CRD manifests — see consolidated comment.
Also applies to: 584-584
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-DevPreviewNoUpgrade.crd.yaml` at line 533, Update the service endpoint overrides description in the affected CRD manifest entries to state the supported maximum of 15, matching the existing maxItems: 15 constraint. Apply the same correction to both referenced occurrences and leave the schema constraint unchanged.payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-SelfManagedHA-CustomNoUpgrade.crd.yaml (1)
548-548: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winStale doc: "maximum of 13" description text vs
maxItems: 15.Same mismatch as in the sibling CRD manifests — see consolidated comment.
Also applies to: 599-599
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-SelfManagedHA-CustomNoUpgrade.crd.yaml` at line 548, Update the service endpoints overrides description in this CRD and the referenced sibling occurrence to state the supported maximum of 15, matching the existing maxItems: 15 constraint.
🧹 Nitpick comments (1)
config/v1/tests/infrastructures.config.openshift.io/DyanmicServiceEndpointIBMCloud.yaml (1)
92-92: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winCover acceptance, not only rejection messages.
The new enum names are added only to negative expected-error strings. Add valid fixtures to prove they are accepted:
config/v1/tests/infrastructures.config.openshift.io/DyanmicServiceEndpointIBMCloud.yaml#L92-L92: add valid IBMCloud spec cases forTransitGatewayandPowerVS.config/v1/tests/infrastructures.config.openshift.io/AAA_ungated.yaml#L1372-L1372: add valid IBMCloud status coverage.config/v1/tests/infrastructures.config.openshift.io/AAA_ungated.yaml#L1480-L1480: add valid PowerVS spec coverage.config/v1/tests/infrastructures.config.openshift.io/AAA_ungated.yaml#L1639-L1639: add valid PowerVS status coverage.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@config/v1/tests/infrastructures.config.openshift.io/DyanmicServiceEndpointIBMCloud.yaml` at line 92, The enum additions are covered only by rejection tests; add valid fixtures proving acceptance. In config/v1/tests/infrastructures.config.openshift.io/DyanmicServiceEndpointIBMCloud.yaml at lines 92-92, add valid IBMCloud spec cases for TransitGateway and PowerVS; in config/v1/tests/infrastructures.config.openshift.io/AAA_ungated.yaml at lines 1372-1372, 1480-1480, and 1639-1639, add valid IBMCloud status, PowerVS spec, and PowerVS status coverage respectively.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-SelfManagedHA-DevPreviewNoUpgrade.crd.yaml`:
- Line 557: Update the description text for both IBM serviceEndpoints schema
definitions, including the definition containing the listed service values, to
state that a maximum of 15 service endpoint overrides are supported instead of
13. Leave the schema limit and all other wording unchanged.
---
Outside diff comments:
In
`@payload-manifests/crds/0000_10_config-operator_01_infrastructures-SelfManagedHA-DevPreviewNoUpgrade.crd.yaml`:
- Around line 587-622: Regenerate this CRD manifest so both
spec.platformSpec.powervs.serviceEndpoints[].name and
status.platformStatus.powervs.serviceEndpoints[].name include the TransitGateway
and PowerVS enum values, matching the other feature-set variants and the
PowerVSServiceEndpoint.Name definition. Use the repository’s standard CRD
generation command, such as make update, rather than editing only one occurrence
manually.
In
`@payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-CustomNoUpgrade.crd.yaml`:
- Line 548: Update the endpoint override description text in both referenced CRD
entries to state that a maximum of 15 service endpoint overrides are supported,
matching the existing maxItems: 15 constraint.
- Around line 548-599: Update the serviceEndpoints documentation source in
config/v1/types_infrastructure.go from 13 to 15, then regenerate all CRD
variants so their prose descriptions match maxItems: 15, including any mirrored
status descriptions. Apply the generated update in
payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-CustomNoUpgrade.crd.yaml:548-599,
Hypershift-DevPreviewNoUpgrade.crd.yaml:533-584,
SelfManagedHA-CustomNoUpgrade.crd.yaml:548-599, and
SelfManagedHA-DevPreviewNoUpgrade.crd.yaml:557-599.
In
`@payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-DevPreviewNoUpgrade.crd.yaml`:
- Line 533: Update the service endpoint overrides description in the affected
CRD manifest entries to state the supported maximum of 15, matching the existing
maxItems: 15 constraint. Apply the same correction to both referenced
occurrences and leave the schema constraint unchanged.
In
`@payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-SelfManagedHA-CustomNoUpgrade.crd.yaml`:
- Line 548: Update the service endpoints overrides description in this CRD and
the referenced sibling occurrence to state the supported maximum of 15, matching
the existing maxItems: 15 constraint.
---
Nitpick comments:
In
`@config/v1/tests/infrastructures.config.openshift.io/DyanmicServiceEndpointIBMCloud.yaml`:
- Line 92: The enum additions are covered only by rejection tests; add valid
fixtures proving acceptance. In
config/v1/tests/infrastructures.config.openshift.io/DyanmicServiceEndpointIBMCloud.yaml
at lines 92-92, add valid IBMCloud spec cases for TransitGateway and PowerVS; in
config/v1/tests/infrastructures.config.openshift.io/AAA_ungated.yaml at lines
1372-1372, 1480-1480, and 1639-1639, add valid IBMCloud status, PowerVS spec,
and PowerVS status coverage respectively.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Pro Plus
Run ID: 734b33ec-245e-4555-a95b-68dea829b466
⛔ Files ignored due to path filters (41)
config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-Default.crd.yamlis excluded by!**/zz_generated.crd-manifests/*config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-Hypershift-CustomNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-Hypershift-DevPreviewNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-OKD.crd.yamlis excluded by!**/zz_generated.crd-manifests/*config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-SelfManagedHA-CustomNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-SelfManagedHA-DevPreviewNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-TechPreviewNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/AAA_ungated.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/AWSClusterHostedDNSInstall.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/AWSDualStackInstall.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/AzureDualStackInstall.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/BGPBasedVIPManagement.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/DualReplica.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/DyanmicServiceEndpointIBMCloud.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/MutableTopology.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/NutanixMultiSubnets.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/OnPremDNSRecords.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/VSphereHostVMGroupZonal.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/VSphereMultiNetworks.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**config/v1/zz_generated.featuregated-crd-manifests/infrastructures.config.openshift.io/VSphereMultiVCenterDay2.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_controllerconfigs-Default.crd.yamlis excluded by!**/zz_generated.crd-manifests/*machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_controllerconfigs-Hypershift-CustomNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_controllerconfigs-Hypershift-DevPreviewNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_controllerconfigs-OKD.crd.yamlis excluded by!**/zz_generated.crd-manifests/*machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_controllerconfigs-SelfManagedHA-CustomNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_controllerconfigs-SelfManagedHA-DevPreviewNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_controllerconfigs-TechPreviewNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/AAA_ungated.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/AWSClusterHostedDNSInstall.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/AWSDualStackInstall.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/AWSEuropeanSovereignCloudInstall.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/AzureDualStackInstall.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/BGPBasedVIPManagement.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/DualReplica.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/DyanmicServiceEndpointIBMCloud.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/MutableTopology.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/NutanixMultiSubnets.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/OnPremDNSRecords.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/VSphereHostVMGroupZonal.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/VSphereMultiNetworks.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.featuregated-crd-manifests/controllerconfigs.machineconfiguration.openshift.io/VSphereMultiVCenterDay2.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**
📒 Files selected for processing (17)
config/v1/tests/infrastructures.config.openshift.io/AAA_ungated.yamlconfig/v1/tests/infrastructures.config.openshift.io/DyanmicServiceEndpointIBMCloud.yamlconfig/v1/types_infrastructure.gopayload-manifests/crds/0000_10_config-operator_01_infrastructures-Default.crd.yamlpayload-manifests/crds/0000_10_config-operator_01_infrastructures-Hypershift-CustomNoUpgrade.crd.yamlpayload-manifests/crds/0000_10_config-operator_01_infrastructures-Hypershift-DevPreviewNoUpgrade.crd.yamlpayload-manifests/crds/0000_10_config-operator_01_infrastructures-OKD.crd.yamlpayload-manifests/crds/0000_10_config-operator_01_infrastructures-SelfManagedHA-CustomNoUpgrade.crd.yamlpayload-manifests/crds/0000_10_config-operator_01_infrastructures-SelfManagedHA-DevPreviewNoUpgrade.crd.yamlpayload-manifests/crds/0000_10_config-operator_01_infrastructures-TechPreviewNoUpgrade.crd.yamlpayload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Default.crd.yamlpayload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-CustomNoUpgrade.crd.yamlpayload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Hypershift-DevPreviewNoUpgrade.crd.yamlpayload-manifests/crds/0000_80_machine-config_01_controllerconfigs-OKD.crd.yamlpayload-manifests/crds/0000_80_machine-config_01_controllerconfigs-SelfManagedHA-CustomNoUpgrade.crd.yamlpayload-manifests/crds/0000_80_machine-config_01_controllerconfigs-SelfManagedHA-DevPreviewNoUpgrade.crd.yamlpayload-manifests/crds/0000_80_machine-config_01_controllerconfigs-TechPreviewNoUpgrade.crd.yaml
🚧 Files skipped from review as they are similar to previous changes (5)
- payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-OKD.crd.yaml
- payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-TechPreviewNoUpgrade.crd.yaml
- payload-manifests/crds/0000_10_config-operator_01_infrastructures-TechPreviewNoUpgrade.crd.yaml
- payload-manifests/crds/0000_10_config-operator_01_infrastructures-OKD.crd.yaml
- payload-manifests/crds/0000_80_machine-config_01_controllerconfigs-Default.crd.yaml
00ad02d to
851bc60
Compare
|
/retest verify-hypershift-integration |
|
/test verify-hypershift-integration |
|
PR-Agent: could not find a component named |
|
|
| // | ||
| // +required | ||
| // +kubebuilder:validation:Enum=CIS;COS;COSConfig;DNSServices;GlobalCatalog;GlobalSearch;GlobalTagging;HyperProtect;IAM;KeyProtect;Power;ResourceController;ResourceManager;VPC | ||
| // +kubebuilder:validation:Enum=CIS;COS;COSConfig;DNSServices;GlobalCatalog;GlobalSearch;GlobalTagging;HyperProtect;IAM;KeyProtect;Power;ResourceController;ResourceManager;VPC;TransitGateway;PowerVS |
There was a problem hiding this comment.
Is PowerVS here distinctly different from Power?
There was a problem hiding this comment.
My assumption is PowerVS and Power are distinct. Power refers to the Power Cloud workload API — the endpoint for managing PowerVS instances themselves (https://cloud.ibm.com/apidocs/power-cloud). PowerVS refers to the IBM Cloud PowerVS management-plane service, the service name used when a PowerVS cluster needs to override the endpoint it uses to reach IBM Cloud's PowerVS service. They represent different API surfaces at different layers. Will add a comment to the type in types_infrastructure.go to make this explicit.
Signed-off-by: Natalia Jordan <natalia.jordan@ibm.com>
851bc60 to
33e4cba
Compare
|
@taliandre49: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
Add TransitGateway and PowerVS to the IBMCloudServiceName enum so that users can override the IBM Cloud Transit Gateway and Power Virtual Server service endpoints via serviceEndpoints in the install-config (needed for Staging OpenShift install).
Both services are already supported by the IBM Cloud CAPI provider (sigs.k8s.io/cluster-api-provider-ibmcloud) which accepts transitgateway and powervs as valid service IDs in its --service-endpoint flag. The installer translates IBMCloudServiceName values to CAPI's internal service IDs in GetRegionAndEndpointsFlag(). Until these constants exist in openshift/api, the installer is forced to match against raw string literals with a workaround comment — this PR removes that need.
Changes:
Add ;TransitGateway;PowerVS to the +kubebuilder:validation:Enum marker on IBMCloudServiceName
Add IBMCloudServiceTransitGateway and IBMCloudServicePowerVS constants