Skip to content

Commit 893882e

Browse files
mgmt, upgrade AKS to 2022-04-01 (#28985)
1 parent c13cfc0 commit 893882e

File tree

116 files changed

+932
-619
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+932
-619
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"dir": "azure-resourcemanager-containerservice",
7272
"source": "specification/containerservice/resource-manager/readme.md",
7373
"package": "com.azure.resourcemanager.containerservice",
74-
"args": "--tag=package-2022-03 --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku"
74+
"args": "--tag=package-2022-04 --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku"
7575
},
7676
"containerservice-hybrid": {
7777
"dir": "../resourcemanagerhybrid/azure-resourcemanager-containerservice",

sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#### Dependency Updates
1212

13-
- Updated `api-version` to `2022-03-01`.
13+
- Updated `api-version` to `2022-04-01`.
1414

1515
## 2.14.0 (2022-04-11)
1616

sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -509,11 +509,14 @@ public AgentPoolInner withMode(AgentPoolMode mode) {
509509
}
510510

511511
/**
512-
* Get the orchestratorVersion property: The version of Kubernetes running on the Agent Pool. As a best practice,
513-
* you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must
514-
* have the same major version as the control plane. The node pool minor version must be within two minor versions
515-
* of the control plane version. The node pool version cannot be greater than the control plane version. For more
516-
* information see [upgrading a node
512+
* Get the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version
513+
* <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When
514+
* <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the
515+
* cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an
516+
* upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an
517+
* AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control
518+
* plane. The node pool minor version must be within two minor versions of the control plane version. The node pool
519+
* version cannot be greater than the control plane version. For more information see [upgrading a node
517520
* pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool).
518521
*
519522
* @return the orchestratorVersion value.
@@ -523,11 +526,14 @@ public String orchestratorVersion() {
523526
}
524527

525528
/**
526-
* Set the orchestratorVersion property: The version of Kubernetes running on the Agent Pool. As a best practice,
527-
* you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must
528-
* have the same major version as the control plane. The node pool minor version must be within two minor versions
529-
* of the control plane version. The node pool version cannot be greater than the control plane version. For more
530-
* information see [upgrading a node
529+
* Set the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version
530+
* <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When
531+
* <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the
532+
* cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an
533+
* upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an
534+
* AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control
535+
* plane. The node pool minor version must be within two minor versions of the control plane version. The node pool
536+
* version cannot be greater than the control plane version. For more information see [upgrading a node
531537
* pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool).
532538
*
533539
* @param orchestratorVersion the orchestratorVersion value to set.
@@ -541,6 +547,18 @@ public AgentPoolInner withOrchestratorVersion(String orchestratorVersion) {
541547
return this;
542548
}
543549

550+
/**
551+
* Get the currentOrchestratorVersion property: The version of Kubernetes the Agent Pool is running. If
552+
* orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to
553+
* it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch>
554+
* version being used.
555+
*
556+
* @return the currentOrchestratorVersion value.
557+
*/
558+
public String currentOrchestratorVersion() {
559+
return this.innerProperties() == null ? null : this.innerProperties().currentOrchestratorVersion();
560+
}
561+
544562
/**
545563
* Get the nodeImageVersion property: The version of node image.
546564
*

sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java

Lines changed: 50 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,33 @@ public class ManagedClusterAgentPoolProfileProperties {
157157
private AgentPoolMode mode;
158158

159159
/*
160-
* The version of Kubernetes running on the Agent Pool. As a best practice,
161-
* you should upgrade all node pools in an AKS cluster to the same
162-
* Kubernetes version. The node pool version must have the same major
163-
* version as the control plane. The node pool minor version must be within
164-
* two minor versions of the control plane version. The node pool version
165-
* cannot be greater than the control plane version. For more information
166-
* see [upgrading a node
160+
* The version of Kubernetes specified by the user. Both patch version
161+
* <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are
162+
* supported. When <major.minor> is specified, the latest supported GA
163+
* patch version is chosen automatically. Updating the cluster with the
164+
* same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will
165+
* not trigger an upgrade, even if a newer patch version is available. As a
166+
* best practice, you should upgrade all node pools in an AKS cluster to
167+
* the same Kubernetes version. The node pool version must have the same
168+
* major version as the control plane. The node pool minor version must be
169+
* within two minor versions of the control plane version. The node pool
170+
* version cannot be greater than the control plane version. For more
171+
* information see [upgrading a node
167172
* pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool).
168173
*/
169174
@JsonProperty(value = "orchestratorVersion")
170175
private String orchestratorVersion;
171176

177+
/*
178+
* The version of Kubernetes the Agent Pool is running. If
179+
* orchestratorVersion is a fully specified version <major.minor.patch>,
180+
* this field will be exactly equal to it. If orchestratorVersion is
181+
* <major.minor>, this field will contain the full <major.minor.patch>
182+
* version being used.
183+
*/
184+
@JsonProperty(value = "currentOrchestratorVersion", access = JsonProperty.Access.WRITE_ONLY)
185+
private String currentOrchestratorVersion;
186+
172187
/*
173188
* The version of node image
174189
*/
@@ -703,11 +718,14 @@ public ManagedClusterAgentPoolProfileProperties withMode(AgentPoolMode mode) {
703718
}
704719

705720
/**
706-
* Get the orchestratorVersion property: The version of Kubernetes running on the Agent Pool. As a best practice,
707-
* you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must
708-
* have the same major version as the control plane. The node pool minor version must be within two minor versions
709-
* of the control plane version. The node pool version cannot be greater than the control plane version. For more
710-
* information see [upgrading a node
721+
* Get the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version
722+
* &lt;major.minor.patch&gt; (e.g. 1.20.13) and &lt;major.minor&gt; (e.g. 1.20) are supported. When
723+
* &lt;major.minor&gt; is specified, the latest supported GA patch version is chosen automatically. Updating the
724+
* cluster with the same &lt;major.minor&gt; once it has been created (e.g. 1.14.x -&gt; 1.14) will not trigger an
725+
* upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an
726+
* AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control
727+
* plane. The node pool minor version must be within two minor versions of the control plane version. The node pool
728+
* version cannot be greater than the control plane version. For more information see [upgrading a node
711729
* pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool).
712730
*
713731
* @return the orchestratorVersion value.
@@ -717,11 +735,14 @@ public String orchestratorVersion() {
717735
}
718736

719737
/**
720-
* Set the orchestratorVersion property: The version of Kubernetes running on the Agent Pool. As a best practice,
721-
* you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must
722-
* have the same major version as the control plane. The node pool minor version must be within two minor versions
723-
* of the control plane version. The node pool version cannot be greater than the control plane version. For more
724-
* information see [upgrading a node
738+
* Set the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version
739+
* &lt;major.minor.patch&gt; (e.g. 1.20.13) and &lt;major.minor&gt; (e.g. 1.20) are supported. When
740+
* &lt;major.minor&gt; is specified, the latest supported GA patch version is chosen automatically. Updating the
741+
* cluster with the same &lt;major.minor&gt; once it has been created (e.g. 1.14.x -&gt; 1.14) will not trigger an
742+
* upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an
743+
* AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control
744+
* plane. The node pool minor version must be within two minor versions of the control plane version. The node pool
745+
* version cannot be greater than the control plane version. For more information see [upgrading a node
725746
* pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools#upgrade-a-node-pool).
726747
*
727748
* @param orchestratorVersion the orchestratorVersion value to set.
@@ -732,6 +753,18 @@ public ManagedClusterAgentPoolProfileProperties withOrchestratorVersion(String o
732753
return this;
733754
}
734755

756+
/**
757+
* Get the currentOrchestratorVersion property: The version of Kubernetes the Agent Pool is running. If
758+
* orchestratorVersion is a fully specified version &lt;major.minor.patch&gt;, this field will be exactly equal to
759+
* it. If orchestratorVersion is &lt;major.minor&gt;, this field will contain the full &lt;major.minor.patch&gt;
760+
* version being used.
761+
*
762+
* @return the currentOrchestratorVersion value.
763+
*/
764+
public String currentOrchestratorVersion() {
765+
return this.currentOrchestratorVersion;
766+
}
767+
735768
/**
736769
* Get the nodeImageVersion property: The version of node image.
737770
*

sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java

Lines changed: 52 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfile;
2222
import com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile;
2323
import com.azure.resourcemanager.containerservice.models.ManagedClusterSku;
24+
import com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfile;
2425
import com.azure.resourcemanager.containerservice.models.ManagedClusterWindowsProfile;
2526
import com.azure.resourcemanager.containerservice.models.PowerState;
2627
import com.azure.resourcemanager.containerservice.models.PublicNetworkAccess;
@@ -167,11 +168,14 @@ public Integer maxAgentPools() {
167168
}
168169

169170
/**
170-
* Get the kubernetesVersion property: The version of Kubernetes the Managed Cluster is running. When you upgrade a
171-
* supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially
172-
* by major version number. For example, upgrades between 1.14.x -&gt; 1.15.x or 1.15.x -&gt; 1.16.x are allowed,
173-
* however 1.14.x -&gt; 1.16.x is not allowed. See [upgrading an AKS
174-
* cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details.
171+
* Get the kubernetesVersion property: The version of Kubernetes specified by the user. Both patch version
172+
* &lt;major.minor.patch&gt; (e.g. 1.20.13) and &lt;major.minor&gt; (e.g. 1.20) are supported. When
173+
* &lt;major.minor&gt; is specified, the latest supported GA patch version is chosen automatically. Updating the
174+
* cluster with the same &lt;major.minor&gt; once it has been created (e.g. 1.14.x -&gt; 1.14) will not trigger an
175+
* upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor
176+
* versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example,
177+
* upgrades between 1.14.x -&gt; 1.15.x or 1.15.x -&gt; 1.16.x are allowed, however 1.14.x -&gt; 1.16.x is not
178+
* allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details.
175179
*
176180
* @return the kubernetesVersion value.
177181
*/
@@ -180,11 +184,14 @@ public String kubernetesVersion() {
180184
}
181185

182186
/**
183-
* Set the kubernetesVersion property: The version of Kubernetes the Managed Cluster is running. When you upgrade a
184-
* supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially
185-
* by major version number. For example, upgrades between 1.14.x -&gt; 1.15.x or 1.15.x -&gt; 1.16.x are allowed,
186-
* however 1.14.x -&gt; 1.16.x is not allowed. See [upgrading an AKS
187-
* cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details.
187+
* Set the kubernetesVersion property: The version of Kubernetes specified by the user. Both patch version
188+
* &lt;major.minor.patch&gt; (e.g. 1.20.13) and &lt;major.minor&gt; (e.g. 1.20) are supported. When
189+
* &lt;major.minor&gt; is specified, the latest supported GA patch version is chosen automatically. Updating the
190+
* cluster with the same &lt;major.minor&gt; once it has been created (e.g. 1.14.x -&gt; 1.14) will not trigger an
191+
* upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor
192+
* versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example,
193+
* upgrades between 1.14.x -&gt; 1.15.x or 1.15.x -&gt; 1.16.x are allowed, however 1.14.x -&gt; 1.16.x is not
194+
* allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details.
188195
*
189196
* @param kubernetesVersion the kubernetesVersion value to set.
190197
* @return the ManagedClusterInner object itself.
@@ -197,6 +204,18 @@ public ManagedClusterInner withKubernetesVersion(String kubernetesVersion) {
197204
return this;
198205
}
199206

207+
/**
208+
* Get the currentKubernetesVersion property: The version of Kubernetes the Managed Cluster is running. If
209+
* kubernetesVersion was a fully specified version &lt;major.minor.patch&gt;, this field will be exactly equal to
210+
* it. If kubernetesVersion was &lt;major.minor&gt;, this field will contain the full &lt;major.minor.patch&gt;
211+
* version being used.
212+
*
213+
* @return the currentKubernetesVersion value.
214+
*/
215+
public String currentKubernetesVersion() {
216+
return this.innerProperties() == null ? null : this.innerProperties().currentKubernetesVersion();
217+
}
218+
200219
/**
201220
* Get the dnsPrefix property: The DNS prefix of the Managed Cluster. This cannot be updated once the Managed
202221
* Cluster has been created.
@@ -758,6 +777,29 @@ public ManagedClusterInner withSecurityProfile(ManagedClusterSecurityProfile sec
758777
return this;
759778
}
760779

780+
/**
781+
* Get the storageProfile property: Storage profile for the managed cluster.
782+
*
783+
* @return the storageProfile value.
784+
*/
785+
public ManagedClusterStorageProfile storageProfile() {
786+
return this.innerProperties() == null ? null : this.innerProperties().storageProfile();
787+
}
788+
789+
/**
790+
* Set the storageProfile property: Storage profile for the managed cluster.
791+
*
792+
* @param storageProfile the storageProfile value to set.
793+
* @return the ManagedClusterInner object itself.
794+
*/
795+
public ManagedClusterInner withStorageProfile(ManagedClusterStorageProfile storageProfile) {
796+
if (this.innerProperties() == null) {
797+
this.innerProperties = new ManagedClusterProperties();
798+
}
799+
this.innerProperties().withStorageProfile(storageProfile);
800+
return this;
801+
}
802+
761803
/**
762804
* Get the publicNetworkAccess property: PublicNetworkAccess of the managedCluster Allow or deny public network
763805
* access for AKS.

0 commit comments

Comments
 (0)