Граф коммитов

179 Коммитов

Автор SHA1 Сообщение Дата
Ross Bryan 7812c70247 make client 2022-09-20 11:56:02 -04:00
Ross Bryan 9b492f94c3 refactor openshiftversion implementation code 2022-09-20 09:28:09 -04:00
Ross Bryan 0ef1dde3b9 update examples, address feedback, make client
Co-authored-by: Spencer Amann <samann@redhat.com>

refactor
2022-09-14 10:26:47 -04:00
Ross Bryan a5673f1532 rm interface support - refactor examples to resources b64 strings 2022-09-14 09:57:31 -04:00
Ross Bryan 2d076a8242 create clustermanager api definitions, wire up cosmosdb 2022-09-14 09:57:29 -04:00
Christoph Blecker 295940d4c6
Run make client 2022-08-30 11:44:12 -07:00
David Newman e0c9352eb3
API 2022-09-04: install-version parameter activation and version listing fixes (#2356)
* Move InstallVersion into cluster properties and give it a type.

* Regenerated 2022-09-04 API

* Add 2022-09-04 API to the cluster creation, in preparation for the switchover.

* Pass a validated install-version parameter for create creation

* Fix the InstallVersion's parameters and example output

* Fix python visual indentation test requirement
2022-08-29 14:38:42 -04:00
Carlo Wisse f1e9d611a2 Removed test - unit tests to be added in another PR due to the imminent CosmoDB change regarding versions 2022-08-25 10:55:23 +10:00
Carlo Wisse 1efe7bf690 Fixed Pylint rule errors for Python Unit tests 2022-08-23 15:21:41 +10:00
Carlo Wisse 92fa2303ae added unit test for az aro get-versions 2022-08-17 17:20:14 +10:00
Carlo Wisse abad46d701 change command to get-versions 2022-08-16 13:53:26 +10:00
Carlo Wisse f7fe82efb1 Added help text for list-install-versions 2022-08-12 14:50:45 +10:00
Carlo Wisse 226e60c8cc Added AZ command to list install version by location with optional table formatter 2022-08-11 11:27:26 +10:00
darthhexx d9e072684e API update from 'make client' 2022-08-04 21:34:39 +10:00
Anshul Verma 1f5a9a92ef changed installOpenShiftVersions to installVersions 2022-08-02 11:34:33 +05:30
Anshul Verma 5d4f5fea0c changed in path from 'listinstallopenshiftversions' to 'listinstallversions' 2022-08-02 09:55:44 +05:30
Anshul Verma 25590c623f Added an endpoint to list available versions to install. Currently it responds with hardcoded data 2022-07-27 17:00:07 +05:30
bennerv 4bac57eaf9 Regenerate clients for 2022-09-04 API 2022-07-11 15:51:11 -04:00
bennerv d5c757c810 Generate clients for new API 2022-07-11 14:49:03 -04:00
Shivkumar Anil Ople cecb6a0357
Adding validations for subnet provisioning state (#2154)
* Adding validations for subnet provisioning state

* Adding validations for Subnet Provisioning State

Co-authored-by: Shivkumar Ople <shivkumarople@gmail.com>
2022-07-06 10:57:30 -04:00
Aldo Fuster Turpin cc111ee230
improve Python unit testing and refactor _validators.py (#2120)
* refactor: apply Guard clauses in _validators.py to simplify code
* fix _validators.py trailing whitespace
* improve python test tructure, include execution of unit tests in make test-python
* crate make directive to run python unit tests, add unit tests for azext_aro._validators.validate_cidr
* add tests for test_validate_client_id and include test cases description
* add unit tests for validate_client_secret from azext_aro._validators
* add explicit fields to named tuple in test cases in test_validators.py
* add two test scenarios for validate_cluster_resource_group
* simplify mocks
* add test case for test_validate_cluster_resource_group
* improve test descriptions
* add test_validate_disk_encryption_set test to test validate_disk_encryption_set
* add test cases to test_validate_disk_encryption_set()
* refactor test_validator.py to use classes instead of namedtuples. Use mocks instead of specific defined classes
* refactor (simplify code): remove explicit assignemnt to None when it is the default value
* create test_validate_domain() with 1st test case
* add test case, domain with '_'
* explicit import of unittest.TestCase
* fix test message in test_validate_domain
* finish test_validate_domain()
* finish test_validate_sdn() and test_validate_pull_secret()
* create test_validate_subnet() with first test case
* finish test_validate_subnet() and minor refactor in _validators.py
* create test_validate_subnets() and add first test case
* finish validate_vnet_resource_group_name()
* finish test_validate_worker_count() of test_validators.py and simple refactor in _validators.py
* finish test_validate_worker_vm_disk_size_gb()
* refactor _validators.py
* add test_validate_refresh_cluster_credentials() and minor refactor of test_validators()
* refactor _test_validators.py to use pytest, create script and invoke it from Makefile
* simplify test_validate_cidr() using pytest.mark.parametrize
* simplify some tests using pytest.mark.parametrize
* finish applying pytest.mark.parametrize
* clean up Makefile test-python
* add blank line to hack/unit-test-python.sh
* fix typo in test case
* fix mega-linter error, blank space
* fix test case to fail due to invalid range
* fix typo in beeing to be being
* remove redundant test case
* reformat code for better readability
* add missing license to __init__.py files
2022-06-09 09:24:31 +02:00
Nont 8c3da66825 Migrate from AD to MS Graph
Also changed the AADManager so that it only returns values
instead of the data structure.  This hides the implementation
details so that in the future if MSAL changes the internal
representation, any required changes will be contained within
the class (vs. right now custom.py has to be changed accordingly).
2022-06-02 12:01:57 +02:00
Jeremy Facchetti 8d6d4c3a95
added yaml lint (#2132)
* added yaml lint

* updated the doc
2022-05-27 13:10:11 -04:00
Brendan Bergen e070358150
Fixing exception handling for missing subnet (#2117)
* Fixing exception handling for missing subnet

* use isinstance

* Another err.message fix
2022-05-06 12:15:50 +01:00
Brendan Bergen e76d7fddd9 Better err handling to customer 2022-05-04 11:46:02 -06:00
Brendan Bergen 0ed2f48979
Update az cli extension to use api v2022_04_01 (#2042)
* Bumping az aro extenion api version to v2022_04_01

* Adding new command flags and data structures to az aro create

* linting
2022-05-04 11:21:34 -04:00
Peter Kostyukov 49ed232c76
Create 2022-04-01 API (#1876) 2022-04-05 15:34:54 +02:00
Leszek Jakubowski 222b479188 Fixing encoding to a value supported by Python3.6 AND fulfilling pylint requirements. 2021-11-30 14:49:30 +00:00
Leszek Jakubowski 6abf1a88d0
AZ CLI - get-admin-kubeconfig command fixes (#1800)
* Removed enums, replaced with strings - enums no longer available in feature api

* Adding decoding and saving to a kubeconfig file.

* fixing HISTORY
2021-11-23 12:59:27 +00:00
Leszek Jakubowski 74010972d0 changed %-strings to f-strings as requested by linter 2021-11-05 16:33:19 +01:00
bennerv 361459b120 Missed a version in a different file 2021-10-29 13:57:46 -04:00
bennerv 9ecab804d0 Bump the az-aro extension version for removal of identifier_uris 2021-10-29 12:07:17 -04:00
bennerv 0a2b0408c5 Remove identifier uris for aro SP as it's not used 2021-10-27 16:30:05 -04:00
Leszek Jakubowski 36fa1303be fixing a bug if DES isn't used 2021-10-26 09:43:11 +01:00
Leszek Jakubowski 9c9d48ea11
Adding support for list-admin-credentials (getting kubeconfig) (#1789) 2021-10-15 14:56:17 +01:00
Amber Brown efbe50a375
Merge pull request #1768 from bryanro92/fips_feature_flag
feat: Move FIPS-mode behind feature flag
2021-10-11 11:11:32 +11:00
Leszek Jakubowski aa13757a76
AzExt - Adding support for the v2021-09-01-preview API (#1739)
* Adding support for the v2021-09-01-preview API - disk encryption sets, sdn selection, encryption at host options

* Adding doc about how to use the disk-encryption-set
2021-10-05 12:20:56 +01:00
Ross Bryan 3a57d37fc8 refactor fips from preview api to feature flag and admin api 2021-10-01 15:58:30 -04:00
Ross Bryan 9b38321e87 make client 2021-09-24 13:53:07 -04:00
Mangirdas Judeikis 63382712ce
Adjust swagger as per ARM requirments 2021-08-20 12:09:56 +01:00
Peter Kostyukov 54c9ea424e Update Track 2 specifics 2021-08-17 16:15:32 -05:00
Peter Kostyukov 10a73b2523 Python Track 2 SDK 2021-08-13 11:47:17 -05:00
Mangirdas Judeikis 5efde463fb
Set Defaults functionality (#1654)
* Add internal API defaulting code
* ListAdminKubeconfig -> ListAdminCredentials
2021-08-11 15:21:05 +01:00
Mangirdas Judeikis 7150882043
Make EncryptionAtHost enum 2021-08-04 12:13:22 +01:00
Mangirdas Judeikis 6ba3d3b1bd
rename 20210131 -> 20210901 2021-07-20 12:15:25 +01:00
Drew Anderson 2f613911fb make client; make test-go; 2021-07-19 09:41:36 +02:00
Drew Anderson 016aab3740 make client; make test-go 2021-07-19 09:41:36 +02:00
Mangirdas Judeikis deda73a2ac
Merge pull request #1581 from jhoreman/aad-cloudaware
AAD Manager cloudaware changes
2021-07-13 08:46:51 +01:00
Jory Horeman f96faf1443 Cloud aware logic for AAD Manager
mend
2021-07-08 16:05:42 -07:00
Mikalai Radchuk 9b30254bc8 make client 2021-07-05 16:42:46 +01:00