Skip to content

Commit

Permalink
AutoScaler Profile Change (#8350)
Browse files Browse the repository at this point in the history
* add autoScalerProfile to spec

* add example for put MC

* add to custom words

* add list of accepted params

* disable linting for profile

* update example
  • Loading branch information
marwanad authored Feb 13, 2020
1 parent 4c1552b commit fe24e32
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ autopatching
autopool
autorest
autoscale
autoscaler
autoscalesettings
autoscaling
Avro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
}
}
},
"autoScalerProfile": {
"scan-interval": "20s",
"scale-down-delay-after-add": "15m"
},
"windowsProfile": {
"adminUsername": "azureuser",
"adminPassword": "replacePassword1234$"
Expand Down Expand Up @@ -140,6 +144,10 @@
}
]
}
},
"autoScalerProfile": {
"scan-interval": "20s",
"scale-down-delay-after-add": "15m"
}
}
}
Expand Down Expand Up @@ -220,6 +228,10 @@
}
]
}
},
"autoScalerProfile": {
"scan-interval": "20s",
"scale-down-delay-after-add": "15m"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1971,6 +1971,36 @@
"$ref": "#/definitions/ManagedClusterAADProfile",
"description": "Profile of Azure Active Directory configuration."
},
"autoScalerProfile": {
"type": "object",
"properties": {
"scan-interval": {
"type": "string"
},
"scale-down-delay-after-add": {
"type": "string"
},
"scale-down-delay-after-delete": {
"type": "string"
},
"scale-down-delay-after-failure": {
"type": "string"
},
"scale-down-unneeded-time": {
"type": "string"
},
"scale-down-unready-time": {
"type": "string"
},
"scale-down-utilization-threshold": {
"type": "string"
},
"max-graceful-termination-sec": {
"type": "string"
}
},
"description": "Parameters to be applied to the cluster-autoscaler when enabled"
},
"apiServerAccessProfile": {
"$ref": "#/definitions/ManagedClusterAPIServerAccessProfile",
"description": "Access profile for managed cluster API server."
Expand Down
4 changes: 4 additions & 0 deletions specification/containerservice/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ These settings apply only when `--tag=package-2020-02-01-only` is specified on t
``` yaml $(tag) == 'package-2020-02-01-only'
input-file:
- Microsoft.ContainerService/stable/2020-02-01/managedClusters.json
directive:
- suppress: DefinitionsPropertiesNamesCamelCase
where: $.definitions.ManagedClusterProperties.properties.autoScalerProfile
reason: Cluster-autoscaler settings are not camel-cased
```

### Tag: package-2020-01-01-only
Expand Down

0 comments on commit fe24e32

Please sign in to comment.