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

234 Коммитов

Автор SHA1 Сообщение Дата
Tanmay Satam d33d81b9c1
Support Update requirements for Workload Identity clusters (#3935)
* Do not clobber existing PlatformWorkloadIdentity readonly fields (clientid/objectid) on patch

* Ensure CSP-specific update steps only run for CSP clusters

* Ensure ClientId/ObjectIds are populated for all platform workload identities

* Ensure required federated identity credentials during cluster update

Note that additional work is still required to ensure this works as expected,
which will be handled in follow-up efforts.

* Add step to directly deploy platform workload identity credential secrets on-cluster during Update

* Refactor: extract mock platformWorkloadIdentityRolesByVersion setup to shared function

* Do not clobber existing ManagedServiceIdentity fields (IssuerURI) on patch

* Apply upgradeable-to annotation to cloudcredential resource via Patch

This avoids issues with e.g. having the wrong version of the resource struct
definition vendored into the RP.

* Fix az aro update request body handling

- Only pass in new/updated identities (RP will add these to the existing identity map during a patch operation)
- Only set the upgradeableTo property if it is explicitly set
2024-11-08 07:31:52 -08:00
Caden Marchese faf377c984
Incorporate CI and ARM feedback from azure-rest-api-specs to v2024-08-12-preview API (#3727)
* api changes

fix tag package-2023-11
this was wrong in the readme

remove UserAssignedIdentities
top level fields must not have additionalproperties

update the default tag to latest

define a new IdentityType with x-ms-enum

modelAsString on identityType x-ms-enum should be false

rename IdentityType to ResourceIdentityType to match v3/types.json

make client

add descriptions to all new API fields

make client

fix unit test that was failing as a result of removing the UserAssignedIdentity type from the API

Adjust a doc comment according to feedback

make client

* add platformworkloadidentityroleset to API definition and examples

Update client generation to account for swagger subfolder

make client

fix pwip and validatestatic unit tests

fix relative path to common-types

migrate from common-types/v3 to common-types/v6
it was requested that we use the latest version of
common types. This involves some changes to our examples
to match the UUID expected.

move from Identity to ManagedServiceIdentity type
defined in common-types/v6

use modelerfour.lenient-model-deduplication=true
avoids python client generation issues

convert PlatformWorkloadIdentity to map

ARO-4382 fix unit test cases

make generate swagger

fix unit tests

revert naming openShiftCluster.ManagedServiceIdentity to Identity

fix prod code and unit tests post-rebase, reference common-types
directly for the identity property

* more swagger CI fixes
* fix examples to contain identity and type
* remove PlatformWorkloadIdentityRoleSetUpdate

oct 16th changes

oct 17th changes

fix issues post-rebase

* update readme to contain suppression for avoidAdditionalProperties

* fix ModelValidation error by converting example IDs to resourceIDs

* Update python/go clients

* Update az aro extension to enumerate platform_workload_identities as a dict instead of a list

* Fix python linter issues

* configure suppression for PatchBodyParametersSchema

appease the linter, fix subscriptionID type in util/azureclient

appease the linter again

correct log statement, use better naming

* regenerate examples
* changes operatorName and roleDefinitionName in PWIRS_List.json

---------

Co-authored-by: Tanmay Satam <tsatam@redhat.com>
2024-10-29 14:08:36 -07:00
Ayato Tokubi 53673d4857
Update CLI integration test (#3898)
* change integration cli test

* fix name prefix
2024-10-11 09:08:49 -04:00
Sanjana Lawande d64782c410
disallow refresh_cluster_credentials with platowrm_workload_identities (#3870)
* disallow refresh_cluster_credentials with platowrm_workload_identities

* add pylint comment

* fix python lint issue

* fix pylint issue

* Revert "disallow refresh_cluster_credentials with platform_workload_identities"

This reverts commit 329322a0fecb15127b316c726f305d374092b113.

* disallow refresh_cluster_credentials with platform_workload_identities fix
2024-10-09 11:29:42 -04:00
Sanjana Lawande 9375d8222b
CLI Phase 1 - add UpgradeableTo field to update functionality (#3844)
* CLI Phase 1 - add UpgradeableTo field to update functionality

* fix upgradeableTo parameter

* apply suggestions from code review

* add unit tests for upgradeableTo

* fix unit tests

* Disallow refresh_cluster_credentials together with upgradeable_to

* apply code review suggestions

* fix python lint issue
2024-10-02 15:17:11 -04:00
Tanmay Satam 8bcd1b6dc1
WI/MI CLI Phase 1 - Base Update Functionality (#3709)
* Add --assign-platform-wi flag to az aro update

* Fix nil pointer dereference when converting Identity structs on API

* Restructure update command to make branching logic more clear

* Remove duplicate test

* Disallow passing in duplicate platform workload identities within the same create/update invocation

* Ensure reported duplicate platform_workload_identities list doesn't itself contain duplicates
2024-08-13 16:32:17 -04:00
Tanmay Satam 3907e7cf3a
WI/MI CLI Phase 1 - Base API functionality (#3624)
* Update az aro extension version to 1.0.11

* Update az aro extension to use ARO v20240812preview SDK

* Implement --enable-managed-identity argument

* Implement --assign-platform-workload-identity argument

* Implement --mi-user-assigned argument

* Apply suggestions from code review

Co-authored-by: Kipp Morris <117932707+kimorris27@users.noreply.github.com>

* Add additional test cases

* Style/lint fixes + PR feedback

---------

Co-authored-by: Kipp Morris <117932707+kimorris27@users.noreply.github.com>
2024-07-23 11:34:45 -04:00
Ayato Tokubi 25a91572f9
fix lint error 2024-07-05 18:32:14 +01:00
kimorris27 47289ba59e `make client` 2024-06-18 11:38:56 -05:00
cadenmarchese 0c47ee7f2c fix typos, use semver 2024-05-30 13:48:54 -04:00
cadenmarchese 0db13aadf7 add field and type, make client, converters 2024-05-22 16:36:26 -04:00
Caden Marchese adc4836520
Add new initial fields to v20240812preview (#3478)
* Add new initial fields to v20240812preview
* update openshiftcluster_example.go
* add new fields to converter

Co-authored-by: kimorris27 <kimorris@redhat.com>
2024-04-08 09:26:41 -04:00
Tanmay Satam a1bc5175a5
`az aro`: Implement the multiple public IPs functionality against the ARO stable API (#3354)
* Use v2023_11_22 API in az aro extension
* Implement --load-balancer-managed-outbound-ip-count flag on az aro update
* Improve public-facing messaging on flag description/validation
* Bring managed outbound ips validation in line with other numeric validation
* Add flag to create command
* Increment az aro extension version to 1.0.10
2024-03-05 16:49:28 -07:00
Kipp Morris 8ee1b531ef
2024-08-12-preview API skeleton (#3419) 2024-02-29 12:37:28 -05:00
Tony Schneider af311a2d31
Back port v2023-11-22 Azure REST specs (#3420)
* ProvisioningState Cancelled -> Canceled
* add WorkerProfileStatuses to example openshift cluster
* add x-ms-enum header to ProvisioningState and PreconfiguredNSG
* make client
2024-02-26 15:15:33 -07:00
Tanmay Satam a861f41bb9
Update `az aro` permissions validation to mirror RP frontend validation (#3395)
* Update az aro permissions validation to mirror RP frontend validation

* refactor can_do_action to return boolean and shift error reporting to validate_resource
2024-02-19 14:45:25 -05:00
Tanmay Satam 9eb8db1e4e
Update cluster lifecycle API fields to readOnly (#3380)
* Exclude Python AAZ client from license hack script
* Update clusterProfile url, apiserverProfile url and ip, ingressProfile ip, systemdata to be readonly in v20231122 API
* Update swagger json (generated)
* Update API static validation tests and converter to respect readOnly fields
* Update generated client SDKs
2024-02-08 10:35:17 -07:00
Jory Horeman 3abcd30e5b
2023-11-22 stable API (porting 07-01-preview api) (#3300)
* adding 2023-11-22 stable

---------

Co-authored-by: b-jhoreman <b-jhoreman@microsoft.com>
2024-01-18 14:15:38 -07:00
Goutham Muguluvalli Niranjan 0dd1ec9300
Add defaults and update k8s dev version (#3245)
* add defaults and update k8s dev version

* update default of outbound_type

* no default set for disk enryption

* nit: fix style

---------

Co-authored-by: gniranjan <gniranjan@microsoft.com>
2023-11-01 10:02:06 -04:00
Ayato Tokubi 7579edebcf
fix graph error handling in az-aro command module (#3093) 2023-10-17 10:57:46 -04:00
Jory Horeman 2a16a3634c
upstreaming changes required by upstream CI (#3117)
Co-authored-by: b-jhoreman <b-jhoreman@microsoft.com>
2023-09-20 10:15:03 -06:00
Goutham Muguluvalli Niranjan 118f1a8fbc
Enable preconfigured NSG flag on azure-cli (#3112)
* enable preconfigured NSG flag on azure-cli

* fix option length too long UT failure

* add network contributor role to BYO-NSGs when preconfigured NSG feature is enabled

* remove feature check and print subnets with no NSG

* use arg_type=get_three_state_flag()

* include subnets from worker_Profiles_Status

* add worker_profiles_status to mock class

* fix grammers

---------

Co-authored-by: gniranjan <gniranjan@microsoft.com>
2023-09-19 10:06:09 -06:00
Goutham Muguluvalli Niranjan dba48c1f0c
Add worker profile status (#3053)
* add workerProfilesStatus field to hold the enriched worker profile data

* update swagger

* swagger examples

* update clients

* resolve golint

* update defaults

* validate worker Profile status is nil in input request

* make client changes after rebase

* rebase

* update workerProfiles references and UTs

* fix golint errors

* remove duplicate logic of verifing workerProfilesStatus not nil

---------

Co-authored-by: gniranjan <gniranjan@microsoft.com>
2023-09-05 14:56:27 -04:00
Tanmay Satam 690c43156d
Reduce diffs between our `az aro` extension and the upstream Azure CLI command (#3125)
* Reduce whitespace differences

* Refactor rp_mode_development() calls
2023-09-01 10:14:43 -04:00
Tony Schneider aa61608c9f
Preview api lb profile (#3020)
* add LoadBalancerProfile to v20230701preview
2023-07-28 16:03:54 -06:00
Nont b9a207e7a1
Add preconfigured NSG to 2023-09-04 api (#3062) 2023-07-28 13:10:53 -04:00
Tony Schneider 861bdb9cb4
fix API Skeleton file permissions (#3055) 2023-07-24 12:19:30 +02:00
Goutham Muguluvalli Niranjan f9ee191ad8
skeleton for 20230904 (#3048)
* skeleton for 20230904

* Update .sha256sum

---------

Co-authored-by: gniranjan <gniranjan@microsoft.com>
2023-07-21 12:16:46 -04:00
tschneid 2714d67213 additional test cases 2023-07-19 11:54:39 +02:00
tschneid bb08bf7d96 raise error if using UserDefinedRouting incorrectly 2023-07-19 11:54:39 +02:00
tschneid 38c886f078 default to empty outboundtype, let RP decide 2023-07-19 11:54:39 +02:00
tschneid d818ce8abd update missed versions 2023-07-19 11:54:39 +02:00
tschneid 1bdd06390a bump api version 2023-07-19 11:54:39 +02:00
tschneid b39adcccaf add outbound-type param to az cli extension 2023-07-19 11:54:39 +02:00
Tony Schneider bcd60e807f
initial scaffolding for preview api (#2972) 2023-06-20 18:56:30 -04:00
Tony Schneider 477c735fd2
Reconcile upstream changes / remove Network SDK (#2851)
* sync with upstream
* remove network sdk from _validators.py
* ignore licensing in python/az/aro/azext_aro/aaz
* display command flag for get_subnet error message
* move import to top of file
2023-06-06 09:59:59 -06:00
Carlo Wisse 24a70ea611
Updated OutboundType to include comment for Swagger generation - Updated Swagger Readmes (#2920)
* Updated OutboundType to include comment for Swagger generation and linting fix upstream. Updated swagger readmes for new API.

* Added xmsEnum

* Re-word description for OutboundType
2023-06-05 19:01:04 -04:00
David Squirrell bd7e1441b1
ARO-2887 - Add az aro validate functionality to az aro create (#2906) 2023-05-25 09:40:09 +02:00
Steven Fairchild 9984b7f9f4 Update az aro --pull-secret help example output
This is to simplify the help output for az aro create --help. An @ symbol is no longer required before the pull secret file.
2023-05-04 15:23:55 -04:00
Tony Schneider 23b52a40a0 fix typo 2023-04-12 11:16:37 -04:00
Tony Schneider 41e472ed8a generate clients 2023-04-12 11:16:37 -04:00
Tanmay Satam 6802c77aae Rename get-admin-kubeconfig method name to match command 2023-03-23 13:57:15 -04:00
Tanmay Satam 8d5d2092bd Remove feature flag check from az aro get-admin-kubeconfig 2023-03-23 13:57:15 -04:00
Ellis Johnson 54883f70b9
Az aro validate cmd (#2517)
Co-authored-by: Spencer Amann <samann@redhat.com>
2023-03-23 15:02:22 +11:00
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