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

Use latest "in-progress" ARO API for local/E2E cluster creation #3622

Merged

Conversation

tsatam
Copy link
Collaborator

@tsatam tsatam commented Jun 7, 2024

Which issue this PR addresses:

Fixes ARO-8003

What this PR does / why we need it:

This PR updates pkg/util/cluster/cluster.go to use the latest in-progress API (v20240812preview) when environment variable RP_MODE is set to development, and the latest released API that's routable in ARM otherwise (v20231122).

This allows local development cluster creation, as well as E2E runs against a locally running RP (e.g. the E2E PR pipeline) to test cluster creation/deletion against our in-progress API, while still ensuring that we utilize the latest ARM-routable API during production contexts (e.g. prod E2E).

The implementation here is generic, and could be expanded in the future to allow us to arbitrarily select which ARO API version we would like to use.

Test plan for issue:

  • Local cluster creation/deletion works successfully, and uses the v20240812preview API
  • PR E2E works successfully, and uses the v20240812preview API
  • Simulated "Production Deployment" E2E (e.g. via deploying this PR to int) works successfully, and uses the v20231122 API

Is there any documentation that needs to be updated for this PR?

  • Our internal API release documentation should be updated to include bumping the versions in this implementation when either starting development of a new API version, or releasing a new API version in ARM.

How do you know this will function as expected in production?

This change is not utilized by any production services, and is only utilized in development and E2E flows.

@tsatam tsatam force-pushed the tsatam/ARO-8003-use-in-progress-api-for-cluster-creation branch from fd8b39b to f4cce74 Compare June 7, 2024 18:24
@tsatam
Copy link
Collaborator Author

tsatam commented Jun 7, 2024

/azp run ci,e2e

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@tsatam
Copy link
Collaborator Author

tsatam commented Jun 12, 2024

/azp run ci,e2e

@github-actions github-actions bot added the needs-rebase branch needs a rebase label Jul 10, 2024
Copy link

Please rebase pull request.

@tsatam tsatam force-pushed the tsatam/ARO-8003-use-in-progress-api-for-cluster-creation branch from f4cce74 to abcb2eb Compare July 19, 2024 16:04
@github-actions github-actions bot removed the needs-rebase branch needs a rebase label Jul 19, 2024
@tsatam tsatam force-pushed the tsatam/ARO-8003-use-in-progress-api-for-cluster-creation branch from abcb2eb to c05f300 Compare July 19, 2024 16:06
@tsatam
Copy link
Collaborator Author

tsatam commented Jul 19, 2024

/azp run ci,e2e

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@tsatam tsatam requested a review from kimorris27 as a code owner July 19, 2024 21:17
@github-actions github-actions bot added the needs-rebase branch needs a rebase label Jul 22, 2024
Copy link

Please rebase pull request.

@tsatam tsatam force-pushed the tsatam/ARO-8003-use-in-progress-api-for-cluster-creation branch from c05f300 to 510b3ee Compare July 23, 2024 13:05
@tsatam
Copy link
Collaborator Author

tsatam commented Jul 23, 2024

/azp run ci,e2e

@github-actions github-actions bot removed the needs-rebase branch needs a rebase label Jul 23, 2024
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

mociarain
mociarain previously approved these changes Jul 25, 2024
Copy link
Collaborator

@mociarain mociarain left a comment

Choose a reason for hiding this comment

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

2 questions but nothing blocking this

pkg/util/cluster/aroclient.go Show resolved Hide resolved
pkg/util/cluster/aroclient.go Show resolved Hide resolved
@tsatam tsatam force-pushed the tsatam/ARO-8003-use-in-progress-api-for-cluster-creation branch from e153071 to 510b3ee Compare July 25, 2024 13:38
Copy link
Collaborator

@SudoBrendan SudoBrendan left a comment

Choose a reason for hiding this comment

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

Seems elegant enough, nice!

@mociarain mociarain merged commit 40c830e into master Jul 29, 2024
35 checks passed
@mociarain mociarain deleted the tsatam/ARO-8003-use-in-progress-api-for-cluster-creation branch July 29, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants