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

Update Managed Cluster to v2023-07-01 #3629

Merged
merged 37 commits into from
Dec 6, 2023

Conversation

theunrepentantgeek
Copy link
Member

@theunrepentantgeek theunrepentantgeek commented Dec 5, 2023

What this PR does / why we need it:

Imports the latest stable version of ManagedCluster and ManagedClusterAgentPool, v2023-07-01.

How does this PR make you feel:
gif

If applicable:

  • this PR contains documentation
  • this PR contains tests

@codecov-commenter
Copy link

Codecov Report

Attention: 601 lines in your changes are missing coverage. Please review.

Comparison is base (eb9dccb) 53.25% compared to head (9c0cb5a) 53.45%.

Files Patch % Lines
...1/storage/managed_clusters_agent_pool_types_gen.go 70.29% 207 Missing and 134 partials ⚠️
...230202preview/storage/managed_cluster_types_gen.go 56.14% 56 Missing and 44 partials ⚠️
...v1api20230701/storage/managed_cluster_types_gen.go 48.57% 34 Missing and 2 partials ⚠️
...1/storage/managed_clusters_agent_pool_types_gen.go 56.66% 24 Missing and 2 partials ⚠️
...rage/compat/upgrade_override_settings_types_gen.go 65.00% 8 Missing and 6 partials ⚠️
...ompat/cluster_upgrade_settings_status_types_gen.go 66.66% 4 Missing and 6 partials ⚠️
...orage/compat/cluster_upgrade_settings_types_gen.go 66.66% 4 Missing and 6 partials ⚠️
...mpat/upgrade_override_settings_status_types_gen.go 62.96% 6 Missing and 4 partials ⚠️
...v1api20210501/storage/managed_cluster_types_gen.go 50.00% 4 Missing and 4 partials ⚠️
...1/storage/managed_clusters_agent_pool_types_gen.go 50.00% 4 Missing and 4 partials ⚠️
... and 6 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3629      +/-   ##
==========================================
+ Coverage   53.25%   53.45%   +0.19%     
==========================================
  Files        1341     1353      +12     
  Lines      438369   458233   +19864     
==========================================
+ Hits       233465   244959   +11494     
- Misses     170404   176701    +6297     
- Partials    34500    36573    +2073     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@super-harsh super-harsh left a comment

Choose a reason for hiding this comment

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

Just a few minors below

}

func NewManagedCluster20230701(tc *testcommon.KubePerTestContext, rg *v1api20200601.ResourceGroup, adminUsername string, sshPublicKey *string) *aks.ManagedCluster {
region := to.Ptr("westus3") // TODO: the default test region of westus2 doesn't allow ds2_v2 at the moment
Copy link
Collaborator

Choose a reason for hiding this comment

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

can move this to Location with comment?

Copy link
Collaborator

Choose a reason for hiding this comment

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

and remove //region := tc.AzureRegion

Copy link
Member Author

Choose a reason for hiding this comment

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

When a test can't be run in the standard test region, this is how we normally move it, so that every resource gets the same region (if there are more than one).

@@ -0,0 +1,13 @@
apiVersion: storage.azure.com/v1api20210401
kind: StorageAccount
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't think this ref and below (Workspaces, Keyvault) are used in containerservice samples?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've simplified the samples.

matthchr
matthchr previously approved these changes Dec 5, 2023
@@ -17,7 +17,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/conversion"

containerservice "github.com/Azure/azure-service-operator/v2/api/containerservice/v1api20230201/storage"
containerservice "github.com/Azure/azure-service-operator/v2/api/containerservice/v1api20230701/storage"
Copy link
Member

Choose a reason for hiding this comment

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

Don't we need customized conversion for the property that disappeared and re-appeared? Where is it?

Copy link
Member

@matthchr matthchr left a comment

Choose a reason for hiding this comment

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

Sorry, meant to not approve yet

@matthchr matthchr dismissed their stale review December 5, 2023 17:29

Didnt mean to approve yet

@theunrepentantgeek theunrepentantgeek added this pull request to the merge queue Dec 6, 2023
Merged via the queue into main with commit 070794b Dec 6, 2023
9 checks passed
@theunrepentantgeek theunrepentantgeek deleted the feature/update-managed-cluster branch December 6, 2023 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

4 participants