Skip to content
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

detect: add capability to detect HyperShift platform #315

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

Tal-or
Copy link
Contributor

@Tal-or Tal-or commented Sep 4, 2024

Added the capeability for the deployer to detect
whether the targeted OpenShift platform is of HyperShift flavor.

In future PR on NROP, we'll consume this change to allow the operator performs specific decision given the current platform.

@Tal-or Tal-or requested a review from ffromani September 4, 2024 13:04
Copy link
Collaborator

@ffromani ffromani left a comment

Choose a reason for hiding this comment

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

LGTM except for breaking backward compat. Let's handle it and we can merge.

pkg/deployer/platform/detect/detect.go Show resolved Hide resolved
Added the capeability for the deployer to detect
whether the targeted OpenShift platform is of HyperShift flavor.

In future PR on NROP, we'll consume this change to allow
the operator performs specific decision given the current platform.

we're keeping the old \`PlatformFromLister\` for the sake of backward
compatability.

Signed-off-by: Talor Itzhak <[email protected]>
@Tal-or
Copy link
Contributor Author

Tal-or commented Sep 4, 2024

/hold

@Tal-or Tal-or marked this pull request as draft September 4, 2024 13:29
@Tal-or Tal-or marked this pull request as ready for review September 4, 2024 13:30
@Tal-or
Copy link
Contributor Author

Tal-or commented Sep 4, 2024

/hold

Wanted to check something the diff seemed suspicious. PR is reviewable now.

@ffromani ffromani changed the title detect: add capeability to detect HyperShift platform detect: add capability to detect HyperShift platform Sep 4, 2024
Copy link
Collaborator

@ffromani ffromani left a comment

Choose a reason for hiding this comment

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

detecting openshift sub-families is useful

@ffromani ffromani merged commit cd1e819 into main Sep 4, 2024
4 checks passed
@ffromani ffromani deleted the detect_hypershift branch September 4, 2024 14:00
@ffromani
Copy link
Collaborator

ffromani commented Sep 4, 2024

I'd be open to a backport to the release-0.20 branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants