Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 14 additions & 9 deletions sdk/containerservice/arm-containerservice/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# Release History

## 21.0.0 (2024-07-02)

**Features**

## 20.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter daemonsetEvictionForEmptyNodes
- Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter daemonsetEvictionForOccupiedNodes
- Interface ManagedClusterPropertiesAutoScalerProfile has a new optional parameter ignoreDaemonsetsUtilization
- Enum KnownNetworkPolicy has a new value None
- Enum KnownNodeOSUpgradeChannel has a new value SecurityPatch

### Other Changes
**Breaking Changes**

- Removed operation ManagedClusters.getOSOptions


## 20.0.0 (2024-04-26)

**Features**
Expand All @@ -26,7 +31,7 @@

- Interface IstioEgressGateway no longer has parameter nodeSelector


## 20.0.0-beta.1 (2024-04-12)

**Features**
Expand Down
8 changes: 4 additions & 4 deletions sdk/containerservice/arm-containerservice/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "34d8b6d264d9b8980a3c8fe2dde026319b2ba32f",
"commit": "2719c03411d111d503bb4fd6caca9e7bdeb68831",
"readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\Microsoft.ContainerService\\aks\\readme.md --use=@autorest/[email protected].21 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].5",
"use": "@autorest/[email protected].21"
"release_tool": "@azure-tools/[email protected].10",
"use": "@autorest/typescript@^6.0.12"
}
20 changes: 6 additions & 14 deletions sdk/containerservice/arm-containerservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ContainerServiceClient.",
"version": "20.0.1",
"version": "21.0.0",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -37,10 +37,10 @@
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"esm": "^3.2.18",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
Expand Down Expand Up @@ -76,7 +76,7 @@
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"prepack": "npm run build",
"pack": "npm pack 2>&1",
"extract-api": "api-extractor run --local",
"extract-api": "dev-tool run extract-api",
"lint": "echo skipped",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
Expand Down Expand Up @@ -106,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice"
}
Original file line number Diff line number Diff line change
Expand Up @@ -651,13 +651,15 @@ export enum KnownNetworkPluginMode {
export enum KnownNetworkPolicy {
Azure = "azure",
Calico = "calico",
Cilium = "cilium"
Cilium = "cilium",
None = "none"
}

// @public
export enum KnownNodeOSUpgradeChannel {
NodeImage = "NodeImage",
None = "None",
SecurityPatch = "SecurityPatch",
Unmanaged = "Unmanaged"
}

Expand Down Expand Up @@ -1240,7 +1242,10 @@ export interface ManagedClusterPoolUpgradeProfileUpgradesItem {
// @public
export interface ManagedClusterPropertiesAutoScalerProfile {
balanceSimilarNodeGroups?: string;
daemonsetEvictionForEmptyNodes?: boolean;
daemonsetEvictionForOccupiedNodes?: boolean;
expander?: Expander;
ignoreDaemonsetsUtilization?: boolean;
maxEmptyBulkDelete?: string;
maxGracefulTerminationSec?: string;
maxNodeProvisionTime?: string;
Expand Down Expand Up @@ -1287,7 +1292,6 @@ export interface ManagedClusters {
getCommandResult(resourceGroupName: string, resourceName: string, commandId: string, options?: ManagedClustersGetCommandResultOptionalParams): Promise<ManagedClustersGetCommandResultResponse>;
getMeshRevisionProfile(location: string, mode: string, options?: ManagedClustersGetMeshRevisionProfileOptionalParams): Promise<ManagedClustersGetMeshRevisionProfileResponse>;
getMeshUpgradeProfile(resourceGroupName: string, resourceName: string, mode: string, options?: ManagedClustersGetMeshUpgradeProfileOptionalParams): Promise<ManagedClustersGetMeshUpgradeProfileResponse>;
getOSOptions(location: string, options?: ManagedClustersGetOSOptionsOptionalParams): Promise<ManagedClustersGetOSOptionsResponse>;
getUpgradeProfile(resourceGroupName: string, resourceName: string, options?: ManagedClustersGetUpgradeProfileOptionalParams): Promise<ManagedClustersGetUpgradeProfileResponse>;
list(options?: ManagedClustersListOptionalParams): PagedAsyncIterableIterator<ManagedCluster>;
listByResourceGroup(resourceGroupName: string, options?: ManagedClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ManagedCluster>;
Expand Down Expand Up @@ -1411,14 +1415,6 @@ export type ManagedClustersGetMeshUpgradeProfileResponse = MeshUpgradeProfile;
export interface ManagedClustersGetOptionalParams extends coreClient.OperationOptions {
}

// @public
export interface ManagedClustersGetOSOptionsOptionalParams extends coreClient.OperationOptions {
resourceType?: string;
}

// @public
export type ManagedClustersGetOSOptionsResponse = OSOptionProfile;

// @public
export type ManagedClustersGetResponse = ManagedCluster;

Expand Down Expand Up @@ -1800,20 +1796,6 @@ export interface OperationValue {
// @public
export type OSDiskType = string;

// @public
export interface OSOptionProfile {
readonly id?: string;
readonly name?: string;
osOptionPropertyList: OSOptionProperty[];
readonly type?: string;
}

// @public
export interface OSOptionProperty {
enableFipsImage: boolean;
osType: string;
}

// @public
export type Ossku = string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient {
credential: credentials,
};

const packageDetails = `azsdk-js-arm-containerservice/20.0.1`;
const packageDetails = `azsdk-js-arm-containerservice/21.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -126,7 +126,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2024-02-01";
this.apiVersion = options.apiVersion || "2024-05-01";
this.operations = new OperationsImpl(this);
this.managedClusters = new ManagedClustersImpl(this);
this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this);
Expand Down
53 changes: 13 additions & 40 deletions sdk/containerservice/arm-containerservice/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,35 +69,6 @@ export interface CloudErrorBody {
details?: CloudErrorBody[];
}

/** The OS option profile. */
export interface OSOptionProfile {
/**
* The ID of the OS option resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* The name of the OS option resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* The type of the OS option resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
/** The list of OS options. */
osOptionPropertyList: OSOptionProperty[];
}

/** OS option property. */
export interface OSOptionProperty {
/** The OS type. */
osType: string;
/** Whether the image is FIPS-enabled. */
enableFipsImage: boolean;
}

/** Hold values properties, which is array of KubernetesVersion */
export interface KubernetesVersionListResult {
/** Array of AKS supported Kubernetes versions. */
Expand Down Expand Up @@ -748,6 +719,12 @@ export interface UpgradeOverrideSettings {
export interface ManagedClusterPropertiesAutoScalerProfile {
/** Valid values are 'true' and 'false' */
balanceSimilarNodeGroups?: string;
/** If set to true, all daemonset pods on empty nodes will be evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted. */
daemonsetEvictionForEmptyNodes?: boolean;
/** If set to true, all daemonset pods on occupied nodes will be evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted. */
daemonsetEvictionForOccupiedNodes?: boolean;
/** If set to true, the resources used by daemonset will be taken into account when making scaling down decisions. */
ignoreDaemonsetsUtilization?: boolean;
/** If not specified, the default is 'random'. See [expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders) for more information. */
expander?: Expander;
/** The default is 10. */
Expand Down Expand Up @@ -2488,6 +2465,8 @@ export type NetworkPluginMode = string;

/** Known values of {@link NetworkPolicy} that the service accepts. */
export enum KnownNetworkPolicy {
/** Network policies will not be enforced. This is the default value when NetworkPolicy is not specified. */
None = "none",
/** Use Calico network policies. See [differences between Azure and Calico policies](https:\//docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. */
Calico = "calico",
/** Use Azure network policies. See [differences between Azure and Calico policies](https:\//docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. */
Expand All @@ -2501,6 +2480,7 @@ export enum KnownNetworkPolicy {
* {@link KnownNetworkPolicy} can be used interchangeably with NetworkPolicy,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **none**: Network policies will not be enforced. This is the default value when NetworkPolicy is not specified. \
* **calico**: Use Calico network policies. See [differences between Azure and Calico policies](https:\/\/docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. \
* **azure**: Use Azure network policies. See [differences between Azure and Calico policies](https:\/\/docs.microsoft.com\/azure\/aks\/use-network-policies#differences-between-azure-and-calico-policies-and-their-capabilities) for more information. \
* **cilium**: Use Cilium to enforce network policies. This requires networkDataplane to be 'cilium'.
Expand Down Expand Up @@ -2656,6 +2636,8 @@ export enum KnownNodeOSUpgradeChannel {
Unmanaged = "Unmanaged",
/** AKS will update the nodes with a newly patched VHD containing security fixes and bugfixes on a weekly cadence. With the VHD update machines will be rolling reimaged to that VHD following maintenance windows and surge settings. No extra VHD cost is incurred when choosing this option as AKS hosts the images. */
NodeImage = "NodeImage",
/** AKS downloads and updates the nodes with tested security updates. These updates honor the maintenance window settings and produce a new VHD that is used on new nodes. On some occasions it's not possible to apply the updates in place, in such cases the existing nodes will also be re-imaged to the newly produced VHD in order to apply the changes. This option incurs an extra cost of hosting the new Security Patch VHDs in your resource group for just in time consumption. */
SecurityPatch = "SecurityPatch",
}

/**
Expand All @@ -2665,7 +2647,8 @@ export enum KnownNodeOSUpgradeChannel {
* ### Known values supported by the service
* **None**: No attempt to update your machines OS will be made either by OS or by rolling VHDs. This means you are responsible for your security updates \
* **Unmanaged**: OS updates will be applied automatically through the OS built-in patching infrastructure. Newly scaled in machines will be unpatched initially and will be patched at some point by the OS's infrastructure. Behavior of this option depends on the OS in question. Ubuntu and Mariner apply security patches through unattended upgrade roughly once a day around 06:00 UTC. Windows does not apply security patches automatically and so for them this option is equivalent to None till further notice \
* **NodeImage**: AKS will update the nodes with a newly patched VHD containing security fixes and bugfixes on a weekly cadence. With the VHD update machines will be rolling reimaged to that VHD following maintenance windows and surge settings. No extra VHD cost is incurred when choosing this option as AKS hosts the images.
* **NodeImage**: AKS will update the nodes with a newly patched VHD containing security fixes and bugfixes on a weekly cadence. With the VHD update machines will be rolling reimaged to that VHD following maintenance windows and surge settings. No extra VHD cost is incurred when choosing this option as AKS hosts the images. \
* **SecurityPatch**: AKS downloads and updates the nodes with tested security updates. These updates honor the maintenance window settings and produce a new VHD that is used on new nodes. On some occasions it's not possible to apply the updates in place, in such cases the existing nodes will also be re-imaged to the newly produced VHD in order to apply the changes. This option incurs an extra cost of hosting the new Security Patch VHDs in your resource group for just in time consumption.
*/
export type NodeOSUpgradeChannel = string;

Expand Down Expand Up @@ -2969,16 +2952,6 @@ export interface OperationsListOptionalParams
/** Contains response data for the list operation. */
export type OperationsListResponse = OperationListResult;

/** Optional parameters. */
export interface ManagedClustersGetOSOptionsOptionalParams
extends coreClient.OperationOptions {
/** The resource type for which the OS options needs to be returned */
resourceType?: string;
}

/** Contains response data for the getOSOptions operation. */
export type ManagedClustersGetOSOptionsResponse = OSOptionProfile;

/** Optional parameters. */
export interface ManagedClustersListKubernetesVersionsOptionalParams
extends coreClient.OperationOptions {}
Expand Down
Loading