Skip to content

Conversation

@adriengentil
Copy link
Contributor

@adriengentil adriengentil commented Apr 6, 2023

This change enables the external platform when external platform type is
set, when cloud controller manager mode is set to External, and when the
feature FeatureGateExternalCloudProviderExternal is enabled.

PR on API side: openshift/api#1434

@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 6, 2023

@adriengentil: This pull request references OCPCLOUD-2010 which is a valid jira issue.

Details

In response to this:

This change enables the external platform when external platform type is
set and when cloud controller manager mode is set to External.

Since cloud controller manager mode is controlled from the
PlatformSpec struct, I had to change the signature of
IsCloudProviderExternal to take the Infrastructure struct in
parameter.

PR on API side: openshift/api#1434

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-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 6, 2023
@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 Apr 6, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 6, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@adriengentil
Copy link
Contributor Author

/cc @elmiko

@openshift-ci openshift-ci bot requested a review from elmiko April 6, 2023 14:11
Copy link

@elmiko elmiko left a comment

Choose a reason for hiding this comment

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

i think this generally looks good, i'd like to talk with @JoelSpeed about changing the way that IsCloudProviderExternal works, and if we should persist some of the external platform information into the status field.

Copy link
Contributor

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

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

Changing signatures is fun, have we searched through OpenShift to see how many usages there are of this function? I know of at least CCMO, KCMO, KASO and MCO usage, how many other places will need fixing?

@adriengentil
Copy link
Contributor Author

Changing signatures is fun, have we searched through OpenShift to see how many usages there are of this function? I know of at least CCMO, KCMO, KASO and MCO usage, how many other places will need fixing?

I see usages in MCO, KCMO and CCMO:
https://github.com/search?q=org%3Aopenshift+IsCloudProviderExternal+NOT+repo%3Aopenshift%2Flibrary-go+language%3AGo&type=Code&l=Go

at least for these ones, we need to re-vendor library-go them as part of the task. I don't it used in KASO.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 21, 2023

@adriengentil: This pull request references OCPCLOUD-2010 which is a valid jira issue.

Details

In response to this:

This change enables the external platform when external platform type is
set and when cloud controller manager mode is set to External.

PR on API side: openshift/api#1434

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.

@adriengentil
Copy link
Contributor Author

adriengentil commented Apr 21, 2023

I have updated the PR which takes my latest update from openshift/api#1434 that adds the CCM state in the PlatformStatus object.

Copy link

@elmiko elmiko left a comment

Choose a reason for hiding this comment

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

this is looking good to me
/lgtm

@elmiko
Copy link

elmiko commented Apr 24, 2023

oops, just noticed it's in draft

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 24, 2023
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 25, 2023
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label May 15, 2023
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 15, 2023
adriengentil added a commit to adriengentil/cluster-kube-controller-manager-operator that referenced this pull request May 15, 2023
…port

Revendor openshift/api and openshift/library-go in order to support the
external platform type.

library-go PR: openshift/library-go#1496
API PR: openshift/api#1434
adriengentil added a commit to adriengentil/cluster-kube-controller-manager-operator that referenced this pull request May 22, 2023
…port

Revendor openshift/api and openshift/library-go in order to support the
external platform type.

library-go PR: openshift/library-go#1496
API PR: openshift/api#1434
adriengentil added a commit to adriengentil/cluster-cloud-controller-manager-operator that referenced this pull request May 22, 2023
…port

Revendor openshift/api and openshift/library-go in order to support the
external platform type.

library-go PR: openshift/library-go#1496
API PR: openshift/api#1434
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 13, 2023
@adriengentil adriengentil marked this pull request as ready for review June 13, 2023 15:47
Copy link

@elmiko elmiko left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot
Copy link

openshift-ci-robot commented Jun 13, 2023

@adriengentil: This pull request references OCPCLOUD-2010 which is a valid jira issue.

Details

In response to this:

This change enables the external platform when external platform type is
set, when cloud controller manager mode is set to External, and when the
feature FeatureGateExternalCloudProviderExternal is enabled.

PR on API side: openshift/api#1434

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-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 Jun 13, 2023
@openshift-ci openshift-ci bot requested review from mfojtik and soltysh June 13, 2023 15:57
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 13, 2023
@elmiko
Copy link

elmiko commented Jun 13, 2023

uh oh, looks like an issue with the unit test

/lgtm cancel

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 13, 2023
@adriengentil
Copy link
Contributor Author

adriengentil commented Jun 13, 2023

Looks like the error in the unit test is unrelated to my change 🤔

{  set -o pipefail; go test  -race -json ./pkg/... | gotest2junit > /logs/artifacts/junit_report.xml
SKIP: github.com/openshift/library-go/pkg/operator/loglevel TestClusterOperatorLoggingController
make: *** [vendor/github.com/openshift/build-machinery-go/make/targets/golang/test-unit.mk:12: test-unit] Error 1

@elmiko
Copy link

elmiko commented Jun 13, 2023

ack, thanks @adriengentil , i will check back in a bit, going to grab some food

@adriengentil
Copy link
Contributor Author

/retest
maybe it's just a flake?

@adriengentil
Copy link
Contributor Author

/retest

@elmiko
Copy link

elmiko commented Jun 14, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 14, 2023
Copy link

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

One nit and you're good to go

…xternal

This change enables the external platform when external platform type is
set, when cloud controller manager mode is set to External, and when the
feature `FeatureGateExternalCloudProviderExternal` is enabled.

PR on API side: openshift/api#1434
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 14, 2023
Copy link

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 14, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 14, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adriengentil, elmiko, soltysh

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 Jun 14, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 14, 2023

@adriengentil: all tests passed!

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-merge-robot openshift-merge-robot merged commit 865e70c into openshift:master Jun 14, 2023
adriengentil added a commit to adriengentil/cluster-kube-controller-manager-operator that referenced this pull request Jun 15, 2023
…port

Revendor openshift/api and openshift/library-go in order to support the
external platform type.

library-go PR: openshift/library-go#1496
API PR: openshift/api#1434
adriengentil added a commit to adriengentil/machine-config-operator that referenced this pull request Jun 15, 2023
…port

Revendor openshift/api and openshift/library-go in order to support the
external platform type.

library-go PR: openshift/library-go#1496
API PR: openshift/api#1434
adriengentil added a commit to adriengentil/cluster-cloud-controller-manager-operator that referenced this pull request Jun 15, 2023
…port

Revendor openshift/api and openshift/library-go in order to support the
external platform type.

library-go PR: openshift/library-go#1496
API PR: openshift/api#1434
adriengentil added a commit to adriengentil/cluster-kube-controller-manager-operator that referenced this pull request Jun 16, 2023
…port

Revendor openshift/api and openshift/library-go in order to support the
external platform type.

library-go PR: openshift/library-go#1496
API PR: openshift/api#1434
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. 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