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

190 Коммитов

Автор SHA1 Сообщение Дата
Carlo Wisse 06356808f6 ran make client with new api version 2023-02-22 16:35:08 -05:00
bennerv 13d7dbd9cb Remove all old SDN fields that are no longer relevant to newest API ARO
is using
2023-02-21 08:52:52 -05:00
David Newman f8f3a4365f
Change az aro create install-version argument to version (#2655) 2023-01-25 10:03:23 +10:00
Srinivas Atmakuri d9b3829bcc
CLI errors if WorkerProfiles do not have subnets (#2044)
When enrichment fails on a cluster's WorkerProfiles and no SubnetIDs are
associated with them, the CLI errors with a key not found as it attempts
to break apart the resource ID of an empty string.

This commit handles the above issue.

WorkItem: https://msazure.visualstudio.com/AzureRedHatOpenShift/_workitems/edit/12670363
2023-01-24 11:27:07 +11:00
Steven Fairchild 07a08c6b59 Update az aro extension to support specifying --pull-secret file without @ prefix
Update az aro extension to handle reading the pull-secret file directly without having to prefix the path with @.
https://github.com/Azure/ARO-RP/issues/2110
2022-12-08 11:53:27 -05:00
darthhexx 1b0728caf7 Change the version iteration to suit the latest round of API changes 2022-11-22 15:49:28 +10:00
Christoph Blecker 92859ec12b
Generate API/clients 2022-11-16 10:38:00 -08:00
Andrew Denton 0a6f9968d7 Microsoft-requested changed for API acceptance, next round 2022-11-07 12:33:42 -05:00
Andrew Denton 32679f39fd Microsoft-requested changes for API acceptance 2022-11-07 12:33:42 -05:00
Amit Arora 470b25fcd7
add network contributor to NAT gateway (#2394)
Co-authored-by: Amit Arora <amarora@amarora.pnq.csb>
2022-10-31 07:36:16 +11:00
darthhexx d47c4a002a Fixes required for OpenShiftVerions API changes 2022-09-28 15:09:52 +10:00
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