Skip to content

Commit

Permalink
update preview API to follow GA api - use one forceupgrade boolean in… (
Browse files Browse the repository at this point in the history
#25099)

* update preview API to follow GA api - use one forceupgrade boolean instead of multiple overrides

* update msg

---------

Co-authored-by: Wenjun Gao <wenjungao@microsoft.com>
  • Loading branch information
wenjungaogaogao and Wenjun Gao authored Aug 3, 2023
1 parent 870eba0 commit 288bcc1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@
},
"upgradeSettings": {
"overrideSettings": {
"controlPlaneOverrides": [
"IgnoreKubernetesDeprecations"
],
"forceUpgrade": true,
"until": "2022-11-01T13:00:00Z"
}
},
Expand Down Expand Up @@ -184,9 +182,7 @@
},
"upgradeSettings": {
"overrideSettings": {
"controlPlaneOverrides": [
"IgnoreKubernetesDeprecations"
],
"forceUpgrade": false,
"until": "2022-11-01T13:00:00Z"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@
},
"upgradeSettings": {
"overrideSettings": {
"controlPlaneOverrides": [
"IgnoreKubernetesDeprecations"
],
"forceUpgrade": true,
"until": "2022-11-01T13:00:00Z"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5513,33 +5513,12 @@
},
"description": "Auto upgrade profile for a managed cluster."
},
"ControlPlaneUpgradeOverride": {
"type": "string",
"enum": [
"IgnoreKubernetesDeprecations"
],
"x-ms-enum": {
"name": "ControlPlaneUpgradeOverride",
"modelAsString": true,
"values": [
{
"value": "IgnoreKubernetesDeprecations",
"description": "Upgrade the cluster control plane version without checking for recent Kubernetes deprecations usage."
}
]
},
"description": "The list of control plane upgrade override settings."
},
"UpgradeOverrideSettings": {
"type": "object",
"properties": {
"controlPlaneOverrides": {
"type": "array",
"items": {
"$ref": "#/definitions/ControlPlaneUpgradeOverride"
},
"x-ms-identifiers": [],
"description": "List of upgrade overrides when upgrading a cluster's control plane."
"forceUpgrade": {
"type": "boolean",
"description": "Whether to force upgrade the cluster. Note that this option instructs upgrade operation to bypass upgrade protections such as checking for deprecated API usage. Enable this option only with caution."
},
"until": {
"type": "string",
Expand Down

0 comments on commit 288bcc1

Please sign in to comment.