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

1188 Коммитов

Автор SHA1 Сообщение Дата
LiniSusan c38242fea3
capturing Azure storage account throttling error (#3298)
reverting the runner changes

changes for more robust code- checking for httpstatuscode

simplifying the levels of nesting of the block of code
2024-03-19 09:23:30 +05:30
Amber Brown 7a415b07de
Remove unneeded OpenShift pins & imports (#3430)
* Remove dependencies on console-operator and cluster-api-azure

* remove the forks that we don't use

* go mod updates

* go mod vendor

* stop relying on the providerspec being registered in tests

* cleanups

* update go sum

* test coverage fixes
2024-03-12 16:23:44 +11:00
Amber Brown e86100c9ae
Add clienthelper, a replacement for dynamichelper (#3345) 2024-03-12 12:44:53 +11:00
Nont 6061732eb8
Update applens tenant (#3444)
* Update applens tenant

* Change the applens prod app ID as well
2024-03-08 08:35:47 -05:00
Maitiú Ó Ciaráin b7de9128e1
Revert "Refactor result type (#3410)" (#3441)
Revert "Refactor result type" (commit 6ed5f52)
2024-03-07 14:00:54 +01:00
Maitiú Ó Ciaráin 6ed5f52e0f
Refactor result type (#3410)
Refactor result type
2024-03-06 12:14:21 +01:00
Amber Brown ed94c28346
Update to Go 1.20 (#3429)
* Go 1.20 changes

* go 1.20 does not need the seed randomised by default

* go generate
2024-03-05 18:18:36 +11:00
Kipp Morris 8ee1b531ef
2024-08-12-preview API skeleton (#3419) 2024-02-29 12:37:28 -05:00
Caden Marchese 42f3708452
Create oic storage account in dev (#3404)
* create oic storage account in dev
* split oic resources into new template for reuse
* add roleassignment, dev script
* parameterize, add documentation
* create new cmd for full env, doc change
2024-02-27 13:15:35 -07:00
Amber Brown 730651374c
Merge pull request #3413 from hawkowl/hawkowl/ci-cleanup-feb24
Clean up some of the CI/linting/generate
2024-02-21 17:48:08 +11:00
Amber Brown 0b31fe7560 fix local dev not building a cluster successfully because of network issues, plus fix a bug in the authorisation logging 2024-02-21 10:59:54 +11:00
Tanmay Satam 07135d82dc
Revert pkg/util/cluster creation to use 20230904 API (#3415)
* Revert pkg/util/cluster creation to use 20230904 API

* remove 20231122 client from cluster.go entirely
2024-02-20 14:58:10 -05:00
Amber Brown f0611becb1 fix linting errors that become noisier in go 1.20 2024-02-20 13:56:18 +11:00
Ben Vesel 5ac65fd499
Don't add security context on <4.11 as OpenShift restricted SCCs do not tolerate it (#3401)
* Don't add security context on <4.11 as OpenShift restricted SCCs do not
tolerate it

* Update GetClusterVersion to return cv.Status.History[0] if no completed update exists
2024-02-19 09:26:52 -05:00
Srinivas Atmakuri 6e8e4e1870
HiveNamespace to use docID/clusterID for new Installs (#2992)
HiveNamespace currently uses aro-<uuid>, this change is an effort
to unify UUIDs accross cluster doc instead of having multiple,
by pointing HiveNamespace to docID so this can be leveraged later.

More Details: https://redhat-internal.slack.com/archives/C02ULBRS68M/p1686806655273309
2024-02-05 12:45:28 +11: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
Matthew Barnes 809041fe2e
Move default openshift version (#3094)
* api: Avoid referencing DefaultInstallStream in tests

* frontend: Avoid referencing DefaultInstallStream

The frontend's OpenShiftVersions change feed handler will record
the current default version for the rest of the frontend to use.

* monitor: Remove latestGaMinorVersion metric

The RP no longer has this information internally, so the metric
is no longer relevant.

* update_ocp_versions: Read versions from an environment variable

Read OpenShift versions and pull specs from an OPENSHIFT_VERSIONS
environment variable containing a JSON object. This data includes
the default OpenShift version for new installs that don't specify
a version.

This moves us toward eliminating hard-coded OpenShift versions in
pkg/util/version/const.go.

* cache_fallback_discovery_client_test.go: Hard-code version

I'm not sure what to do with this test.  Install stream data has
moved to RP-Config, so if the test is worth keeping then I guess
the oldest supported version will have to be hard-coded and kept
up-to-date.  But it probably won't be.

* version: Remove DefaultInstallStreams

DefaultInstallStream will remain for now, but it's ONLY for use by
local development mode until we can come up with a better solution.

---------

Co-authored-by: Matthew Barnes <mbarnes@fedorapeople.org>
2024-01-18 13:20:03 -07:00
Amber Brown b4e8930830
Make env know what the service component its running is (#3254)
* make env know what the service component its running is

* regen mocks
2024-01-17 15:17:14 +11:00
Daniel Ionel Bizau 4afe1d7339
disable gzip compression as a workaround (#3339) 2024-01-02 19:10:44 -05:00
kimorris27 3b2db9c121 Added space and fixed grammar in user-facing error messages 2023-12-20 15:56:59 -05:00
kimorris27 d7377e7d67 Capitalize `Azure` in customer-facing error message 2023-12-20 15:56:59 -05:00
kimorris27 adb1f0c4c8 Update attachNSGs cluster install step to retry if Azure complains that NSG is not yet ready 2023-12-20 15:56:59 -05:00
Kipp Morris de1b399b6c
`az aro update` CredentialsRequest hotfix (#3325)
* If the CredentialsRequest isn't found, retry until timeout instead of immediately erroring out

* `ensureCredentialsRequest` upon every `az aro update`

* Add an E2E test for the `az aro update` scenario where the ARO
operator's CredentialsRequest has been deleted
2023-12-14 15:49:19 -05:00
Ben Vesel c3d127ad47
Use image digests for fluentbit images (#3316) 2023-12-07 09:08:31 -05:00
Andrew Denton 91fd9d00ac
Enable 4.13.23 as an install target instead of 4.13.16 (#3314) 2023-12-05 17:29:26 -05:00
Andrew Denton cb6ab10d16
Enable 4.13.16 as an install target (#3312) 2023-12-05 14:57:13 -05:00
Ben Vesel 232d3bc536
Move to correct mdsd image (#3308) 2023-12-01 16:11:41 -05:00
Steven Fairchild 86deb391a8
MDM Image Bump - ARO-4792 (#3297)
Update MDM image to 2.2023.1118.1225-d7e0d6-20231118t1338
Update MDSD image to mariner_20231109.1
2023-12-01 13:40:15 -05:00
Jeff Yuan 548ad5cb0c
Merge pull request #3232 from SrinivasAtmakuri/remove-IsLessThanMinimumDuration
etcd-renew - Add extra validation and remove IsLessThanMinDuration
2023-11-30 18:46:41 +13:00
Tony Schneider 9b92b4f79b
Admin action to delete a cluster managed resource (#3286)
* add ResourceDeleteAndWait to azureactions

* add delete resource admin action and frontend routing

* add helper functions for lb config manipulation

* refactor azure actions
- moves resource delete code to seperate file
- adds loadbalancer client to handle deleting FrontendIPConfiguration
- updates ResourceDeleteAndWait to handle deleting FrontendIPConfigurations
- adds DeleteByIDAndWait to features/resources client

* add e2e tests

* fix imports and add license headers

* cleanup / fix lint

* add command example to doc

* rename to "managed" resource id

* change query param to camel case

* use var group instead

* return error as adminReply already wraps in CloudError

* fix missed camelCase of query param

* use regex to match frontend ip configurations

* remove focus

* add deny list to prevent deleting PLS and Storage

* fix mixed import

* use fake pls name to prevent accidently deleting e2e cluster pls

* fix test

* add PE to deny list
2023-11-29 17:09:56 -05:00
bennerv 72cad158a9 Remove version 4.11.26 as it's affected by installation bugs 2023-11-29 13:51:28 +00:00
Kipp Morris 9a9edacf6b
Update ARO operator Azure auth scheme to use a DefaultAzureCredential (#3274)
* Update the cluster authorizer to use a DefaultAzureCredential

* Update the ARO operator to set and use DefaultAzureCredential via env vars

* Add a CredentialsRequest to the ARO operator deployment

* Restart the ARO operator upon `az aro update`

* Removed now unused AzCredentials function

* Changed ARO operator deployment wait time during `az aro update` from
  20 minutes -> 5 minutes

* Refactor CliWithApply to generalize to different object types

* Updated Restart in pkg/util/kubernetes to use server-side apply
* Updated Restart in pkg/operator/deploy to only return an error after
  at least attempting to restart all of the deployments passed in

* E2E test for ARO operator master deployment's restart upon cluster update

* Wait for the ARO operator's CredentialsRequest to be reconciled before
restarting
2023-11-28 10:45:00 -05:00
Amber Brown afa28a3789
fix not returning arm template errors (#3288) 2023-11-27 13:52:49 -05:00
Matthew Barnes 966f7a176e graph: Allow gzip compression in requests
Microsoft fixed the Graph service regression that broke
kiota-http-go, so revert the workaround.
2023-11-27 10:30:47 -05:00
Tanmay Satam 06f78b75ce
Watch MachineSets for worker subnet changes instead of Machines (#3280)
https://issues.redhat.com/browse/ARO-4632
2023-11-21 10:24:25 +11:00
Nont e7f514086d
Migrate documentdb client from sdk track 1 to track 2 client (#3255)
* Create documentdb track 2 client and mockgen

* Replace track 1 documentdb with track 2

* Refactor per comments

* Delete unused client

* Fix generated env mocks
2023-11-17 15:34:17 -05:00
Nicolas Ontiveros a85b8d011e
FedRAMP TLS 1.3 Compliance (#3285) 2023-11-17 14:10:13 -05:00
Matthew Barnes d25e7f29d9
graph: Add HTTP tracing option for MS Graph requests (#3269)
* graph: Add HTTP tracing option for MS Graph requests

Debug feature enabled by ARO_MSGRAPH_TRACE environment variable.

* graph: Temporarily disable gzip compression in requests

---------

Co-authored-by: Matthew Barnes <mbarnes@fedorapeople.org>
2023-11-08 15:12:42 -05:00
Amber Brown e278fd6891
Add some more golangci-lint linters and fix the issues they find (#3234) 2023-11-08 10:45:17 +11:00
Amber Brown bb8097c92f
Skip failing pki test for now (#3249) 2023-10-30 13:59:56 +01:00
Srinivas Atmakuri 7e09f87c45 Add extra validation and remove IsLessThanMinDuration
Added extra validation to verify if etcd certificates are renewed
Also, removed isLessThanMinDuration code block so we can
even renew clusters whose expiry is more than 6 months duration
2023-10-30 12:53:55 +05:30
Ben Vesel debb5ae92b
Remove 4.10 as an installation target (#3238) 2023-10-27 10:38:23 -04:00
Nont ab05ba74c4 Add a new azureclient for subnet from az-sdk 2023-10-27 09:51:40 -04:00
Nont 9bb9b518d8
Fix CheckAccess unmarshal bug (#3241) 2023-10-27 12:08:12 +02:00
Ben Vesel f44f544e9f
Default installation target to 4.12 (#3237) 2023-10-26 15:31:32 -04:00
Tanmay Satam 4c89c89171
Update MDM, MDSD, Fluentbit images (#3233)
* Update MDM,MDSD,Fluentbit versions to latest

* Update generated deployment artifacts
2023-10-26 14:06:54 -04:00
Caden Marchese 4e00e297ef
Return actionable service principal errors to the user (#3231)
* revert changes made in #3222 to ensureAccessTokenClaims

* after timeout, return any actionable errors to the user

* combine / improve error messages

* still log err in RP logs if not nil

* fix nil pointer
2023-10-25 15:29:25 -04:00
Ben Vesel 4e8877545b
Fix panic on addressPrefix vs addressPrefixes on subnet (#3223) 2023-10-24 18:26:42 -04:00
Tanmay Satam 4f8c591a5b Ensure DynamicHelper preserves Status on MachineHealthCheck updates 2023-10-23 15:56:45 -04:00
Caden Marchese cd81ce9073
Return errors from AuthorizationRetryingAction if timeout is reached (#3222) 2023-10-23 16:21:30 +02:00