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

235 Коммитов

Автор SHA1 Сообщение Дата
kimorris27 7448b3db41 `make validate-go` to format stuff and make CI happy 2024-09-26 09:00:11 -05:00
kimorris27 086f532624 Replace all references to the golang mock repo with references to the
Uber fork, then `go mod tidy` and `go mod vendor`

Note the change to `deps.go`
2024-09-26 09:00:11 -05:00
Rajdeep Chauhan 66f073f205
Dynamic validation for workload identity permissions and requirements (#3619)
* ARO-4376 Track2 authorization api addition for roledefinitions

* ARO-4376 add a stringutil funcs

* ARO-4376 use dbPlatformWorkloadIdentityRoleSets to get platform identity roles for cluster version

* ARO-4376 add dynamic validation for platformworkloadidentityprofile

* ARO-4376 resolve initial comments

* ARO-4376 refactor error messages and checkaccess action crosscheck

* ARO-4376 Add unit tests and comments resolution

* ARO-4376 add validation for upgradeableTo

* ARO-4376 Comment resoultion and additional unit tests

* ARO-4376 minor version comparison handling

* ARO-4376 update permission error messaging handling for MIWI

* ARO-4376 update constructors to return non-interface type

* ARO-4376 add unit tests for GroupsIntersect

* ARO-4376 update generate files to support bingo
2024-09-10 16:32:25 -04:00
Brendan Bergen 49525d2cff
Fix slow tests in /pkg/backend (#3809) 2024-09-04 11:29:15 -06:00
Steven Fairchild c3655d124a
Add panic recovery within endLease (#3701)
This is to ensure EndLease always gets called, including cases when a panic is encountered.
2024-08-01 09:16:12 -06:00
Rajdeep Chauhan 0684a5af89
ARO-6756 Remove usecheckaccess feature and variables (#3643) 2024-07-23 14:53:46 -05:00
Steven Fairchild 639fd8698e Bug fix - Add nil pointer check for LoadBalancerProfile in cluster metrics 2024-07-16 05:50:15 -07:00
Steven Fairchild 3db436013f Improve logging, handling of empty metric values 2024-07-08 13:12:33 -07:00
Steven Fairchild cf51f260ac Emit cluster features enabled/disabled during cluster provisioning
Add workload identity or cluster service principal metrics emission
Add emit features
Emit features concerning newly installed clusters.
Add emitMetrics to all provisioning states
Add logging statements for metrics,
Allows metrics being emitted to also be used in kusto dashboards.
Constant values are used for all metric names in deminsions.
If an error is encountered while gathering metrics, that metric is omitted.
Unit tests provide 100% coverage for emitMetrics.

Rename emitMetrics to emitProvisioningMetrics, rename emitInstallMetrics to emitMetrics,
emitMetrics can be used for all provisioning states, not just creating state. Changed name to reflect this.
2024-07-08 13:12:33 -07:00
Maitiú Ó Ciaráin be7b8157b0
Refactor the ResultType (#3443) 2024-03-28 13:09:07 +01:00
Maitiú Ó Ciaráin f20df84717
Make TestAsyncOperationResultLog more robust (#3442)
* Check all logs

* Use better test pattern

* Remove unused property
2024-03-12 11:55:41 +01: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
Ankur Singh 8b523d1d2f
Adding segregation of resultType for CloudError (#3396)
* Adding segragation of resultType for CloudError

* Fixing lint issues

* Adding test coverage

* Fixing lint issue

* Uncommit unwanted commit

* Fixing test cases
2024-02-22 08:41:14 +05:30
carvalhe 2ac8d655d2
Added FP Check for validation (#3335)
* Added FP Check for validation

* Cloud Err to surface level backend for SP issue
2024-02-02 11:23:57 -05:00
Nicolas Ontiveros e4eea7f7a8
Use an enum for cluster maintenance states (#3230) 2023-11-28 16:25:49 -05:00
Nicolas Ontiveros e7c6ec954b fix error checking 2023-07-18 11:53:25 +02:00
Nicolas Ontiveros 0e4a76c56a set no pucm pending properly 2023-07-18 11:53:25 +02:00
Nicolas Ontiveros 73444f1d63 fiix 2023-07-18 11:53:25 +02:00
Nicolas Ontiveros 6f2c893744 PUCM Maintenance Signals 2023-07-18 11:53:25 +02:00
Srinivas Atmakuri d82d4f53a1
Add field ClusterDeploymentNamespace in ServiceLogs (#2957)
JIRA: https://issues.redhat.com/browse/ARO-3309
2023-07-04 16:32:37 +10:00
nont ed8b7070af Use LiveConfig for the flag 2023-05-25 14:18:08 -07:00
Ankur Singh 606f547080
Add cluster OpenShift version in log (#2869) 2023-05-03 09:30:17 +10:00
Jeremy Facchetti 5c5a96fc40
enrichers redesign (#2402)
redesigned enrichers for better understandability
2023-04-05 15:30:24 +02:00
Yehor Naumenko 7700c2d6c5
Ensure monitor captures the deletion (#2597) 2023-01-05 14:14:28 +01:00
Amber Brown 7c68f83d52 pass in the hive manager directly rather than passing through the restconfig 2022-09-07 12:53:18 +10:00
darthhexx 1f678c3b87 M6: enable install-version selection for Hive adoption and installs 2022-09-05 12:08:56 +10:00
Arris Li 10399cf765 resolve confict 2022-08-24 14:04:23 +12:00
Amber Brown d9e63cceb8
[M4/M5/M6] Read Hive kubeconfig from AKS live (#2325) 2022-08-23 17:09:53 +02:00
BCarvalheira 597e1e69a4 add logKind column and filter FB 2022-08-16 13:51:35 -07:00
Arris Li f77f3764eb Merge branch 'master' of https://github.com/Azure/ARO-RP into feat/add-cluster-install-time-metrix 2022-08-02 19:19:19 +12:00
Ulrich Schlueter d6722882e9
Monitor Hive ClusterDeployment conditions (#2175)
Co-authored-by: Ulrich Schlueter <uschlueter@redhat.com>
2022-07-27 11:21:45 +01:00
Mikalai Radchuk 7ec2f5cc34 Update a comment to be a todo 2022-07-19 11:42:25 +01:00
Arris Li 8668276465 resolve conficts 2022-07-07 12:07:33 +12:00
Ulrich Schlueter 3d8654a1a7 Register cluster with hive at install time 2022-07-05 16:16:56 +01:00
Arris Li 2a3f0a4b4c Added cluster install time metrics 2022-06-28 10:45:55 +12:00
carvalhe 016a596b3f
Add additional values to CloudError and Cluster Operation Logs (#2094)
* Added additional values to CloudError

* Update pkg/api/error.go

Co-authored-by: Weinong Wang <weinong@outlook.com>

* Add details for cluster logs in terminal state

* Fixed issue with logging clusterResult

* Changed to generic name, add String() func

* Update logging comments

Co-authored-by: Weinong Wang <weinong@outlook.com>

* Add prefix to cloudErrorMessage String()

* Add additional json monikers

* Fix bug with resultType output

* Defined CloudErrorCategory string type

* Empty-Commit to retrigger test

* Shift logs, remove code for next PR

* Added log fields, removed category

* Shift resultType to Logs

* Empty-Commit to retrigger test

* Remove all error changes

* Update openshiftcluster.go

change logs to lowercase

Co-authored-by: BCarvalheira <bcarvalheira@microsoft.com>
Co-authored-by: Weinong Wang <weinong@outlook.com>
2022-05-26 18:05:36 -04:00
Aman Verma a53082acb9
Enable first basic linters in ARO (#2060)
* Enable first basic linters in ARO

* Remove modules-download-mode from the linter run config
2022-04-19 12:35:01 -04:00
Jeremy Facchetti d9d9fa0ed5 renamed oddly named metrics.Interface to Emitter 2022-04-11 15:27:22 +02:00
Amber Brown 22ba7801bf MaintenanceTask is cleared after run pass/failure 2021-11-16 16:07:14 +11:00
Amber Brown 30400c6cc0 Update install.go to use the new flag 2021-11-16 16:07:14 +11:00
Jim Minter ed319c139b update rp 2021-08-19 10:30:29 -04:00
Jim Minter 768040d8b9 add DisableReadinessDelay feature flag for faster development startup 2021-05-11 11:48:19 -04:00
Jim Minter 1d2384d768
move billingE2EStorageAccountId to RP configuration 2021-04-08 09:12:12 -05:00
Jim Minter d68fda1888
noop fixup imports 2021-03-02 13:17:01 -06:00
Jim Minter 7a14788cea
renames:
cipher -> aead
  encrypt/decrypt -> seal/open
  aeadCipher -> xChaCha20Poly1305
2020-12-14 11:18:57 -06:00
Amber Brown c9eefeaa2b move create around and make validatedynamic take the fpauthorizer as a param
review comments
2020-12-03 15:08:18 +11:00
Amber Brown 3b64138344 use the cluster.Interface for pkg/backend 2020-12-02 11:55:22 +11:00
Olga Mirensky 127c334a90 Remove invoking Dynamic in Admin Upgrade 2020-11-26 14:41:03 +11:00
Olga Mirensky 2dd264299e merge 2020-11-26 14:07:42 +11:00