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

SDK2: Replace old SDK in preview feature controller #3922

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

bitoku
Copy link
Collaborator

@bitoku bitoku commented Oct 24, 2024

Which issue this PR addresses:

Fixes https://issues.redhat.com/browse/ARO-4665

What this PR does / why we need it:

This PR replaces old SDK in preview feature controller.

Test plan for issue:

Test preview feature in local dev cluster according to https://learn.microsoft.com/en-us/azure/openshift/howto-enable-nsg-flowlogs.

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

N/A

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

Enable preview feature.

@bitoku bitoku force-pushed the sdk2/previewfeature_controller branch from f511938 to f7b208f Compare October 24, 2024 09:48
@bitoku
Copy link
Collaborator Author

bitoku commented Oct 24, 2024

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@kimorris27
Copy link
Contributor

/azp run e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

kimorris27
kimorris27 previously approved these changes Oct 28, 2024
@kimorris27 kimorris27 dismissed their stale review October 28, 2024 14:55

Sorry, I forgot I wanted to wait for E2E to pass before approving.

@kimorris27
Copy link
Contributor

/azp run e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kimorris27
Copy link
Contributor

The first E2E failure looked like a flake on our end, and the second one looked like a transient Azure API failure (listing VM SKUs in populateVMSkus during RP startup).

@kimorris27
Copy link
Contributor

/azp run e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kimorris27
Copy link
Contributor

Third E2E run had the same failure as the first - cluster installation failed because k8s API server wasn't ready.

There's no way it's related to your changes, but if it happens again on this fourth try, maybe we should start looking at changes that were merged recently (?).

kimorris27
kimorris27 previously approved these changes Oct 28, 2024
@github-actions github-actions bot added the needs-rebase branch needs a rebase label Nov 18, 2024
Copy link

Please rebase pull request.

…_controller

# Conflicts:
#	pkg/util/azureclient/azuresdk/armnetwork/generate.go
#	pkg/util/azureclient/mgmt/network/generate.go
#	pkg/util/mocks/azureclient/azuresdk/armnetwork/armnetwork.go
#	pkg/util/mocks/azureclient/mgmt/network/network.go
@github-actions github-actions bot removed the needs-rebase branch needs a rebase label Nov 18, 2024
@bitoku
Copy link
Collaborator Author

bitoku commented Nov 18, 2024

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@bitoku
Copy link
Collaborator Author

bitoku commented Nov 18, 2024

/azp run ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bitoku
Copy link
Collaborator Author

bitoku commented Nov 20, 2024

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

*armnetwork.FlowLogsClient
}

func NewFlowLogsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (FlowLogsClient, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Reference Comment: #3619 (comment)

We should be returning structs, not interfaces as per the go standard. You can refer the roledefinitions client for the usage https://github.com/Azure/ARO-RP/blob/master/pkg/util/azureclient/azuresdk/armauthorization/roledefinitions.go

For now we can ignore the exisitng clients returning interfaces, but can stop returning the interfaces for new code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! nice catch!

@bitoku
Copy link
Collaborator Author

bitoku commented Nov 25, 2024

/azp run e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

4 participants