Commit Graph

85 Commits

Author SHA1 Message Date
Krunal Hingu 0f89cf59dc fix: enhance availability zone comparison logic 2025-04-04 10:34:46 +05:30
Krunal Hingu 1b330c9e43 move enqueue update logic in updateUpstreamClusterState 2025-03-05 10:24:29 +05:30
Krunal Hingu 0bc730c0fa Refactor update re-enqueue logic for better readability and maintainability 2025-02-19 15:20:28 +05:30
vardhaman22 c21b3631d7 fix recorderror unit test 2025-02-14 10:36:47 +05:30
vardhaman22 8c86a4f167 added a debug log for conflict error and unit test for it 2025-02-04 20:03:12 +05:30
Michal Jura 48b4a561fd Fix outboundType validation and add more checks
Issue: https://github.com/rancher/aks-operator/issues/709
2024-12-23 11:12:45 +01:00
Michal Jura 1e8544c199
Merge pull request #704 from mjura/az-error
Return error when updating az
2024-10-31 08:39:25 +01:00
Michal Jura 8338522fc6 Remove deprecated azure-sdk-go modules 2024-10-30 10:02:35 +01:00
Michal Jura 05c217f0c6 Return error when updating az 2024-10-29 09:00:22 +01:00
Michal Jura 14bb1479ba
Revert "[main] fix: Retry operation on conflict" 2024-10-28 13:06:44 +05:30
Michal Jura 4dcb7bb244 Prevent from removing last node pool with mode System
Issue: https://github.com/rancher/aks-operator/issues/619
2024-10-21 13:36:41 +02:00
Michal Jura 264a1999cb
Merge pull request #673 from mjura/az-main
Add validation for modifications to availability zones
2024-10-01 11:19:23 +02:00
Michal Jura cb67801877 Add validation for modifications to availability zones
Updating Availability Zone is not allowed for Azure AKS.

Issue: https://github.com/rancher/aks-operator/issues/669
2024-10-01 10:43:26 +02:00
yiannistri 13b2fc8b4b
fix: Retry operation on conflict 2024-09-26 15:46:19 +01:00
Parthvi bf1310f116 Enhance logs
- Add log format [cluster-name (id:cluster-id)]
- Increase log verbosity
- Add more debug messages

Signed-off-by: Parthvi <parthvi.vala@suse.com>
2024-08-22 07:58:10 +02:00
yiannistri 146ee4ddd8
fix: Disable monitoring addon when spec.Monitoring is false 2024-08-14 10:36:24 +01:00
Michal Jura 7aea3273ac
Fix logic for Authorized IP ranges
(cherry picked from commit 08974fc3330e57b06dba4fe574f1c9e3b1782341)
2024-07-19 09:15:00 +02:00
vardhaman22 4be914627c updated wrangler to v3 2024-06-12 19:33:18 +05:30
Michal Jura 681f6b5c01
Update log message when tags are not updated 2024-06-07 11:02:56 +02:00
yiannistri 21b7795f04
fix: Replaced `retry.OnError` with `poller.PollUntilDone` which achieves the same result in a simpler way. 2024-04-30 16:33:49 +01:00
yiannistri bfca2930be
refactor: Migrate code from old Azure SDK to new Azure SDK. 2024-04-17 09:17:13 +01:00
Kevin Joiner 223e7cdd4f Bump Wrangler version to v2.0.2
The previous wrangler commit included all of the v2 changes.
Except for the import path changes.
2024-01-12 10:32:43 -05:00
Michal Jura 4de011052d
Fix for updating imported clusters
Issue: https://github.com/rancher/aks-operator/issues/294
Signed-off-by: Michal Jura <mjura@suse.com>
2023-10-31 10:32:37 +01:00
Michal Jura 9da2841852
Check for duplicate names for NodePools 2023-10-23 15:11:12 +02:00
Michal Jura 3724d2ebab
Fix update mode for node pool groups
Issues: https://github.com/rancher/aks-operator/issues/249
2023-08-26 17:02:33 +02:00
Michal Jura 4482fee4b8
Add user managed identities 2023-08-07 16:13:24 +02:00
Michal Jura 6513b9e32f
Add PrivateDNSZone for private clusters
Issue: https://github.com/rancher/aks-operator/issues/131
2023-08-07 16:11:33 +02:00
Michal Jura 29a6cf644f
Add validation checks for NodePools NodeTaints 2023-06-26 11:37:35 +02:00
Furkat Gofurov d9df3e7b20
Fix lint errors in the codebase
(cherry picked from commit 1df2d12648ca07bbe983bbe3aa1c96ada1656a50)
2023-05-08 20:03:19 +03:00
rajan2 6bc78ddd04
add support for outboundtype to use user defined routing 2023-05-03 11:18:16 +02:00
Michal Jura 5e63d60ba8
Skip updating dnsPrefix for private DNS zones
For imported private clusters with private DNS zones we can skip setting dnsPrefix,
because it will be nil value. DNSPrefix can be updated for existing clusters.

Issue: https://github.com/rancher/aks-operator/issues/169
2023-04-24 07:17:51 +02:00
Furkat Gofurov d06b56f940
Fix aks credentials passing to buildUpstreamClusterState() func
Signed-off by: Furkat Gofurov (furkat.gofurov@suse.com)
2023-04-11 12:00:07 +03:00
Michal Jura bf04b156e0
Merge pull request #136 from mjura/azure-gov
Add multi-environment support for AKS
2023-04-08 15:58:25 +02:00
Alexandr Demicev 716b422687
Add more tests for controller 2023-03-09 19:50:23 +01:00
Alexandr Demicev 7bcf60f110
Move buildUpstreamClusterState to external.go 2023-03-09 19:40:30 +01:00
Alexandr Demicev 7810332894
Add new unit tests for controller package 2023-03-06 16:21:48 +01:00
Alexandr Demicev f3851a69c0
Add envtest setup in controller package 2023-03-06 16:21:47 +01:00
Alexandr Demicev b26fd5df5c
Refactor and move exported function to new file 2023-03-06 16:21:47 +01:00
Siye Wang d95dafb233
Add multi-environment support for AKS
Fixes: https://github.com/rancher/aks-operator/issues/98

(cherry picked from commit 41a68e8345)
2023-02-24 09:30:13 +01:00
Michal Jura 06b9c133c0
Add Nodes Labels, Taints and MaxSurge to AgentPool
Fixes https://github.com/rancher/rancher/issues/40214
2023-01-24 07:02:43 +01:00
Michal Jura 25914b6882
Make Azure services compliant with Rancher 2023-01-23 12:36:20 +01:00
Michal Jura de8a7f90c9
Fix Rancher integration
Module aks-operator is imported by Rancher and functions:
- BuildUpstreamClusterState
- GetClusterKubeConfig
- GetClusterKubeConfig
- CheckLogAnalyticsWorkspaceForMonitoring
have to be public, because they are used by Rancher.

Signed-off-by: Michal Jura <mjura@suse.com>
2023-01-20 14:03:33 +01:00
Alexander Demicev d11a6605cd
Pass node pool's subnet id to azure client (#76) 2023-01-09 16:57:09 -05:00
Alexandr Demicev 1a1d0a6c8a
Fix linter warnings 2023-01-04 12:12:18 +01:00
Alexandr Demicev 5cbb751943
Switch to new services 2023-01-04 12:11:09 +01:00
Alexandr Demicev 8414c1b120
Fix linter warnings 2022-12-06 17:46:57 +01:00
Anna Blendermann e06888da6a Fix error msg 2022-11-21 17:37:36 -05:00
Anna Blendermann 0dce012766 Add checks for monitoring workspace/name 2022-11-18 19:18:27 -05:00
Anna Blendermann 8a968ec94a
Add duplicate cluster check (#65)
Add duplicate cluster check and update clusterExists logic
2022-09-07 14:09:43 -04:00
Kinara Shah f991112c87
Merge pull request #60 from kinarashah/v1.24 2022-06-27 15:16:05 -07:00