bennerv
6aeb4002f5
Fix non-existing resource on aro_delete
2021-06-16 09:56:10 -04:00
Mangirdas Judeikis
cea772e0af
Merge pull request #1499 from mjudeikis/kube.config
...
Add admin kubeconfig download api
2021-06-15 15:50:13 +01:00
Troy Connor
6b4dc8bf01
python: add pod/service cidr minimum in help
2021-06-11 13:46:54 -04:00
Mangirdas Judeikis
3d95bffcb1
Add API generation for kubeconfig
2021-06-08 13:16:08 +01:00
Mangirdas Judeikis
b5374d5650
s/descriptions/identifier
2021-05-26 10:05:32 +01:00
Mangirdas Judeikis
4039d66ac8
Add systemData handling ( #1412 )
...
Add systemData into document and handling in the frontend
2021-05-06 13:42:04 +01:00
Mangirdas Judeikis
c0abbbd7f8
Merge pull request #1458 from mjudeikis/api.generation
...
Multi API generator refactor
2021-04-27 09:12:57 +01:00
Leszek Jakubowski
ffbedfb8b2
fix pylint ( #1462 )
2021-04-26 13:56:08 -05:00
Mangirdas Judeikis
b934563fce
systemData and generator for multiapi
2021-04-26 12:55:50 +01:00
Mangirdas Judeikis
bb2b2f229b
CLI Credential rotation ( #1261 )
...
# Which issue this PR addresses:
Fixes: https://msazure.visualstudio.com/AzureRedHatOpenShift/_workitems/edit/9148852
First part of the story.
# What this PR does / why we need it:
It will enable us to pass credentials changes into API server.
API server will have to be changed to accept those.
This is out of scope for this PR
Rotation on CLI is https://msazure.visualstudio.com/AzureRedHatOpenShift/_workitems/edit/7609645
# Test plan for the issue:
Review review review...
# Is there any documentation that needs to be updated for this PR?
Yes, docs how to use it.
2021-04-23 10:59:53 -04:00
Jim Minter
fe73544939
remove if w that slipped in
2021-01-04 09:13:01 -06:00
bennerv
27900e2778
Check worker_profiles is not None before iterating through it
2020-12-14 13:27:24 -05:00
bennerv
6e12822f75
Update aro py ext to look like downstream
2020-12-11 09:45:24 -05:00
bennerv
7eb3b93f06
Reconcile downstream azure-cli az aro module with upstream
2020-12-09 17:56:16 -05:00
Jim Minter
ac4dec09c0
Merge pull request #1219 from jim-minter/minor-fixes
...
Minor fixes
2020-12-08 19:43:29 -06:00
Jim Minter
0816471348
az aro: don't honour AZURE_FP_CLIENT_ID when RP_MODE is unset
2020-12-08 16:18:02 -06:00
bennerv
1c8c7e28c7
Update error handling per new az-cli upstream guidelines
2020-12-07 16:46:26 -05:00
bennerv
95bbd1047a
Add rbac validation to aro update
2020-12-04 14:46:23 -05:00
Jim Minter
184f35e3b5
fixups
2020-12-04 09:39:50 -06:00
Mangirdas Judeikis
c19f4111cd
2020-10-31-preview -> 2021-01-31-preview
2020-12-02 12:08:47 -06:00
Mangirdas Judeikis
671576a75e
Merge pull request #1181 from mjudeikis/bump.worker.profile.size
...
Make workers count unbound
2020-11-26 05:38:04 -02:00
Jim Minter
56d4ab6603
remove validation text from API definition
2020-11-25 18:44:52 -06:00
Mangirdas Judeikis
e03d708fdb
Increase workers from 20 to 50
2020-11-24 15:21:12 +00:00
Jim Minter
a179c6479f
Merge pull request #1126 from ehashman/vsts8367811
...
Revert "Revert "Fix permissions on cluster deletion in az cli""
2020-11-19 15:06:57 -06:00
Elana Hashman
023fa72f5c
Fix import order
2020-11-18 13:29:39 -08:00
Elana Hashman
b862479f4e
Log error if an expected one is thrown
2020-11-18 12:59:02 -08:00
Elana Hashman
42042c1765
Address concerns around issues blocking cluster deletion
2020-11-18 12:56:39 -08:00
Jim Minter
9227743f5d
Swagger documentation updates
2020-11-16 16:52:05 -06:00
Jim Minter
a64585189d
use Network Contributor instead of Contributor for network resources in az and hack/cluster
2020-11-10 18:40:21 -06:00
Elana Hashman
024205465c
Revert "Revert "Fix permissions on cluster deletion in az cli""
...
This reverts commit 45baf2f5b9
.
2020-11-06 15:02:44 -08:00
Jim Minter
45baf2f5b9
Revert "Fix permissions on cluster deletion in az cli"
2020-11-04 12:03:43 -06:00
Elana Hashman
91f417bd2a
Check AAD perms before attempting deletion
2020-11-02 08:46:44 -08:00
Jim Minter
45abb2220c
fix python bug which prevented us from running correctly in INT
2020-10-28 18:28:45 -06:00
Jim Minter
dba3e0a433
retry hash conflict ValidationError in python
2020-10-20 08:57:55 -05:00
Denis Korzunov
be3a2d7a5a
aro extension: add extension supression
2020-10-13 14:52:19 +11:00
Petr Kotas
213abf54a6
Add x-ms-enum type to swagger and SDK
...
x-ms-enum will make future modifications
of the API simpler, the type is defined
https://github.com/Azure/autorest/tree/master/docs/extensions#x-ms-enum
Signed-off-by: Petr Kotas <pkotas@redhat.com>
2020-09-10 08:39:00 +02:00
Petr Kotas
9328e20c10
GEnerate new SDK
...
Signed-off-by: Petr Kotas <petr@kotas.tech>
2020-09-03 21:36:50 +02:00
Angus Salkeld
cecbfe0156
Fix assign_contributor_to_routetable
...
This caused the deployment in INT to fail.
The problem is we are using the wrong variable should be the loop
variable "rt" and not subnet.route_table.id
2020-06-23 11:34:52 +10:00
Jim Minter
56762673e0
homogenise assign_contributor_to_vnet and assign_contributor_to_routetable
2020-06-22 16:10:31 -05:00
Kenny Woodson
e3943cbfd4
Updating routetables to a dict instead of a set.
2020-06-18 16:19:04 -04:00
Kenny Woodson
7a4b4e25fa
Fixed naming, test output, and code duplication.
2020-06-17 15:12:29 -04:00
Kenny Woodson
c73ef2fbd5
Attempt to update routetable permissions
2020-06-17 15:12:29 -04:00
Jim Minter
8c6dc4ac61
add python/az/aro/linter_exclusions.yml
2020-06-01 17:07:03 -05:00
Petr Kotas
8adfedd3ce
Switch from random app names to RG naming
...
To enable pairing between cluster resource groups
and active directory application, this pr
switches application name from random to the
resource group name.
This enables the pairing.
Signed-off-by: Petr Kotas <pkotas@redhat.com>
2020-05-27 07:19:46 +00:00
Troy Connor
7d473e83df
[python]Add get_enum_type for allowed values in ingress/apiserver visibility
2020-05-20 10:24:42 -04:00
Troy Connor
649f206e70
[python]Add allowed values to ingress/apiserver visibility
2020-05-19 10:31:45 -04:00
Troy Connor
d632f8088f
Add function generate_random_id to always start with lowercase letter ( #676 )
...
* [python]Add function generate_random_id to always start with lowercase letter
* [python]Fix pylint/style guide errors in ci
* [python]Add tests for generate_random_id function
* [python]Mock randon.choice in test
* [python]Fix python style/lint errors
2020-05-18 19:23:13 -05:00
Jim Minter
003b86a615
Merge pull request #631 from nilsanderselde/retry-create-sp
...
Add retries to create_service_principal
2020-05-18 17:17:37 -05:00
Jim Minter
5671660da5
dedent and remove references to managed and openshift
2020-05-18 16:41:34 -05:00
Troy Connor
f80774481d
[python]Add examples to help
...
Add function to validate int for vm count and size
Sychronize with upstream azure/azure-cli
2020-05-18 16:31:58 -05:00
Jim Minter
3c0b8cc6f8
Merge pull request #675 from petrkotas/aro-extension-fix
...
Switch uuid5 back to uuid4 in az aro extenstion
2020-05-15 14:37:50 -05:00
Petr Kotas
7f3ce8d010
Introduce mock to the ARO ext tests
...
Mock is used to fix the UUID generation in
ARO cluster creation. Fix is important
so the test replay works as expected.
Signed-off-by: Petr Kotas <pkotas@redhat.com>
2020-05-13 16:35:29 +00:00
Petr Kotas
d6894be720
Switch to random UUID for role assignment
...
The fixed UUID is no longer needed. Tests can use mock in place
of fixed UUID.
Signed-off-by: Petr Kotas <pkotas@redhat.com>
2020-05-13 16:35:29 +00:00
Jim Minter
12a81f61ca
make random characters match k8s.io/apimachinery/pkg/util/rand.alphanums
2020-05-11 08:50:44 -05:00
Jim Minter
3b53278b0d
validate RP registration at top of create
...
provides a clear error message instead of a failure to retrieve the RP service principal later
2020-05-11 08:50:01 -05:00
Nils Elde
b4a7bd2210
add retries to create_service_principal
2020-04-30 00:54:21 -04:00
Sam Kingston
99e4dc4f9d
[WIP] Replace custom int validator in az aro ( #557 )
...
* Replace custom int validator with type=int
* Fix for when worker arguments are None
* Underscores should be hypens
2020-04-29 13:52:08 -05:00
Jim Minter
cddbd8f12e
bump az to 1.0.0
2020-04-24 19:38:05 -05:00
Kenny Woodson
6cf5ea0332
Forcing visibility parameters to capitilize
2020-04-22 15:07:13 -04:00
Mikalai Radchuk
01777df97e
Fixes az aro table output
...
When there are no worker profiles (cluster only has masters or we failed to get data from API server)
or a worker profile does not have count (machine set was scaled to 0)
2020-04-16 17:30:08 +01:00
Jim Minter
fd8f0ddbb5
Merge pull request #485 from jim-minter/infraid
...
revert to using infra id
2020-04-16 08:49:30 -05:00
Jim Minter
332139b1c7
Merge pull request #496 from jim-minter/vm-sizes
...
add additional vm sizes
2020-04-16 08:34:16 -05:00
Petr Kotas
3da997aee2
Backport changes from downstream
...
Signed-off-by: Petr Kotas <pkotas@redhat.com>
2020-04-16 06:13:03 +00:00
Jim Minter
64553dfa1c
add additional vm sizes
2020-04-15 20:42:36 -05:00
Jim Minter
b16d91a320
remove vowels from random strings
2020-04-15 20:13:48 -05:00
Jim Minter
46972534e5
bump az version
2020-04-14 13:24:32 -05:00
Jim Minter
4d5887dddf
don't allow clusters to be created with Standard_D2s_v3 in prod -- too small
2020-04-14 13:10:48 -05:00
Jim Minter
8d9311a344
another attempt at rewording
2020-04-07 08:43:38 -05:00
Kenny Woodson
2c54dbdc30
Update pull-secret warning.
2020-04-06 21:38:22 -05:00
Jim Minter
3cf1caff1e
roll aro extension back to 0.3.0, we never released it
2020-04-02 20:47:49 -06:00
Jim Minter
d064812395
fix az aro list -o table count
2020-04-02 19:42:36 -06:00
Jim Minter
aaecb66f7c
bump az to 0.4.0
2020-04-02 19:42:36 -06:00
Jim Minter
30b452d510
move az, tests to GA API
2020-04-02 19:42:36 -06:00
Jim Minter
44ff1c10dd
auto-generated
2020-04-02 19:41:31 -06:00
Jim Minter
224705a307
fix broken az update command
2020-04-02 15:30:03 -06:00
Jim Minter
8f433d8b61
stop advertising python 3.5 support
2020-03-26 14:47:33 -06:00
Jim Minter
954ae66ebe
stop advertising python 2.7 support
2020-03-26 14:40:57 -06:00
Jim Minter
f8861eac43
bump az version to 0.3.0
2020-03-21 13:20:58 -06:00
Jim Minter
84901e0e6c
add --pull-secret to az aro
2020-03-21 13:20:58 -06:00
Jim Minter
042a374802
add pull secret to API
2020-03-21 13:20:57 -06:00
Jim Minter
0d5e40634f
release az aro 0.2.0
2020-03-12 15:28:09 -06:00
Jack Quincy
5926d13464
adding origin to operations api object
2020-03-10 17:30:56 -06:00
Jim Minter
41fa355fd5
bump azext.maxCliCoreVersion
2020-03-10 08:58:19 -06:00
Jim Minter
cbc8275766
make client
2020-03-07 19:04:26 -06:00
Jim Minter
330472b767
advertise API pageability
2020-03-07 19:04:26 -06:00
Jim Minter
9d0d5e5959
add missing version to azext_metadata
2020-02-26 08:41:34 -06:00
Mikalai Radchuk
5d9968e635
Adds admin API
2020-02-18 15:33:54 -06:00
Olga Mirensky
62a7748423
Make worker profile count field immutable
2020-01-31 11:52:02 +11:00
Julien Stroheker
c40183dca5
fixing wrong logic
2020-01-21 15:28:03 -05:00
Mangirdas Judeikis
6f97f413bc
move console to consoleProfile
2020-01-21 13:53:53 +00:00
Jim Minter
26a4b94c41
make resource group configurable
2020-01-10 13:38:16 -06:00
Jim Minter
da62f1267e
add clusterVersion field
2020-01-10 13:38:16 -06:00
Jim Minter
7ee2da7cbe
start an api clusterProfile
2020-01-10 13:38:16 -06:00
Mikalai Radchuk
b26b998a95
Changes PUT and PATCH cluster request behaviour & adds tests for PATCH ( #46 )
...
Changes PUT and PATCH cluster request behaviour
Also adds tests for PATCH
Updates the az to follow new PATCH behaviour
2020-01-09 09:26:27 -06:00
Jim Minter
2326214a8a
reinstate "ARO v4 Development Subnet Contributor" development role definition
2020-01-03 12:11:53 -06:00
Jim Minter
9c6c88fc1c
python: prefer single quotes
2020-01-02 14:17:29 -06:00
Jim Minter
6a359dbe8a
use visibility enum instead of private bool
2020-01-02 14:17:29 -06:00
Jim Minter
ff0147081a
use types.json#/definitions/Resource
2020-01-02 14:05:41 -06:00
Jim Minter
a4619fecb2
start using swagger/common-types/resource-management/v1/types.json
2020-01-02 09:58:28 -06:00
Jim Minter
06c9af32cd
rename get-credentials to list-credentials
2020-01-02 09:41:08 -06:00
Jim Minter
25d787f364
private ingress
2019-12-31 14:47:01 -06:00
Jim Minter
6575b17cef
private API server
2019-12-31 13:06:07 -06:00
Jim Minter
36311656d2
add ip to apiserverProfile
2019-12-31 13:04:49 -06:00
Jim Minter
0d5e38830c
create apiserverProfile
2019-12-31 13:04:49 -06:00
Jim Minter
659751a770
add clusterDomain field
2019-12-31 12:05:50 -06:00
Jim Minter
f04481dd2f
add kubeadminUsername field
2019-12-31 09:49:27 -06:00
Jim Minter
601b2f5546
api typos
2019-12-31 08:14:38 -06:00
Jim Minter
3a0c5b9cb7
use PATCH to update/scale in python client
2019-12-30 13:04:41 -06:00
Jim Minter
836db54f04
simplify and fix aro_delete
2019-12-22 12:04:46 -06:00
Jim Minter
c6fdf76e2a
return 202 on asynchronous delete
2019-12-22 08:36:19 -06:00
Jim Minter
aed3844d3b
python style
2019-12-22 08:36:17 -06:00
Jim Minter
60ad89d069
add confirmation flag to az aro delete
2019-12-21 22:29:27 -06:00
Jim Minter
58493d7a26
only validate resource group non-existence on aro create
2019-12-17 08:39:57 -06:00
Jim Minter
3f2d1a0b09
add timestamp into autogenerated service principal
2019-12-17 08:25:35 -06:00
Jim Minter
f5f166728d
CI runner fixes and python logic fix
2019-12-17 07:54:57 -06:00
Jim Minter
18e245b67e
package rename
2019-12-16 19:26:21 -06:00
Jim Minter
00e3c6555a
add code license boilerplate
2019-12-16 19:16:50 -06:00
Jim Minter
ecc9c78d73
az: for now, disallow cluster names where they match resource group names
2019-12-16 11:50:43 -06:00
Jim Minter
79bdf58380
update client calls
2019-12-16 11:28:58 -06:00
Angus Salkeld
d0bbf6d81c
run "make client"
2019-12-16 11:26:24 -06:00
Jim Minter
bd0bc7f93d
az: use resource_group_name for vnet if vnet_resource_group_name unset
2019-12-16 10:52:00 -06:00
Jim Minter
1529b8cfeb
update supported python versions
2019-12-16 10:51:36 -06:00
Jim Minter
56cc2a73fb
az: only set role assignments if they don't already exist
2019-12-16 10:51:12 -06:00
Jim Minter
a3096fea90
Implement ARO extension
...
Co-authored-by: Mangirdas Judeikis <Mangirdas@Judeikis.LT>
2019-12-15 22:06:27 -06:00
Jim Minter
972eb709f3
check in autogenerated aro-preview extension stub
2019-12-15 18:56:44 -06:00
Jim Minter
227f4e13dc
bring python client closer to what would be officially shipped
2019-12-13 16:44:09 -06:00
Jim Minter
3f3d26ec32
move azure-python-sdk -> python/client
2019-12-13 16:44:09 -06:00