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

Add ability to upgrade nodepool kubernetes version #966

Merged
merged 2 commits into from
Sep 9, 2022
Merged
Changes from 1 commit
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
10 changes: 9 additions & 1 deletion plugins/modules/azure_rm_aks.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@
- 'System'
- 'User'
type: str
orchestrator_version:
description:
- Version of kubernetes running on the node pool.
type: str
node_labels:
description:
- Agent pool node labels to be persisted across all nodes in agent pool.
Expand Down Expand Up @@ -549,6 +553,7 @@ def create_agent_pool_profiles_dict(agentpoolprofiles):
os_type=profile.os_type,
type=profile.type,
mode=profile.mode,
orchestrator_version=profile.orchestrator_version,
enable_auto_scaling=profile.enable_auto_scaling,
max_count=profile.max_count,
node_labels=profile.node_labels,
Expand Down Expand Up @@ -605,8 +610,9 @@ def create_addon_profiles_spec():
vnet_subnet_id=dict(type='str'),
availability_zones=dict(type='list', elements='int', choices=[1, 2, 3]),
os_type=dict(type='str', choices=['Linux', 'Windows']),
orchestrator_version=dict(type='str', required=False),
type=dict(type='str', choice=['VirtualMachineScaleSets', 'AvailabilitySet']),
mode=dict(type='str', choice=['System', 'User'], requried=True),
mode=dict(type='str', choice=['System', 'User'], required=True),
dhageman marked this conversation as resolved.
Show resolved Hide resolved
enable_auto_scaling=dict(type='bool'),
max_count=dict(type='int'),
node_labels=dict(type='dict'),
Expand Down Expand Up @@ -852,6 +858,7 @@ def compare_addon(origin, patch, config):
os_disk_size_gb = profile_self.get('os_disk_size_gb') or profile_result['os_disk_size_gb']
vnet_subnet_id = profile_self.get('vnet_subnet_id', profile_result['vnet_subnet_id'])
count = profile_self['count']
orchestrator_version = profile_self['orchestrator_version']
vm_size = profile_self['vm_size']
availability_zones = profile_self['availability_zones']
enable_auto_scaling = profile_self['enable_auto_scaling']
Expand Down Expand Up @@ -1023,6 +1030,7 @@ def create_update_agentpool(self, to_update_name_list):
max_count=profile["max_count"],
node_labels=profile["node_labels"],
min_count=profile["min_count"],
orchestrator_version=profile["orchestrator_version"],
max_pods=profile["max_pods"],
enable_auto_scaling=profile["enable_auto_scaling"],
agent_pool_type=profile["type"],
Expand Down