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

21 Коммитов

Автор SHA1 Сообщение Дата
Nicolas Ontiveros ce31826325
Update Go to 1.21 (#3698)
* Update ci-go

* Update go toolset

* Update prepare shared rp dev

* Update prepare your dev

* More 1.21 updates

* more changes

* save work

* test

* tidy up

* Add license to typealker test
2024-07-18 17:35:06 +10:00
Anshul Verma 7a568dbad1 removed all the references of dbtoken 2024-06-11 22:24:45 +05:30
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
Steven Fairchild 6bd01cddf4
Revendor hive to 5fbe0d158ba9 (#3377)
* Increase golangci-lint verbosity

* Revender hive to 9dd47f8bfa1f
2024-02-12 10:13:32 -05:00
Ben Vesel 14d5b29238
Remove openshift/installer vendored dependency script (#3301) 2023-12-04 16:34:32 -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 cc6cd1e0b8
Move pkg/api dependencies on util/subnet to api/util/subnet (#3070) 2023-08-03 16:41:32 +10:00
Amber Brown ede320dd33
Run prettier on the pipeline yaml files (#2979)
* move prettierrc up one level

* add a prettierignore

* update files
2023-08-01 21:41:31 +10:00
Amber Brown 06b565ae84
Run local development and PR E2E in podman (#2817)
Runs local development and PR E2E in podman containers, rather than using the inbuilt installer.
---------

Co-authored-by: Jeremy Facchetti <facchettos@gmail.com>
2023-07-13 13:04:39 +10:00
Matthew Barnes 156383c4a6
Migrate RP from Azure AD Graph to Microsoft Graph (#1970)
* go.mod: Add github.com/microsoftgraph/msgraph-sdk-go

* azureclient: Add NewGraphServiceClient

Creates a GraphServiceClient with scope and graph endpoint set
appropriately for the cloud environment (public or US government).

* pkg/util/graph: Add GetServicePrincipalIDByAppID

* armhelper: Use MS Graph to obtain service principal ID

* armhelper: Remove unused authorizer parameter

* Use MS Graph endpoint to validate service principal

I don't think it matters for the purpose of validation, but the
AD Graph endpoint is nearing its end-of-life.

* pkg/cluster: Use MS Graph to obtain service principal ID

* pkg/util/cluster: Use MS Graph to create and delete clusters

* Pretty-print OData errors from MS Graph

To aid debugging failed MS Graph requests.

MS Graph's top-level APIError message is hard-coded and only says
"error status code received from the API".  Further details have
to be extracted from the "ODataErrorable" interface type.

* azureclient: Remove ActiveDirectoryGraphScope

No longer used.

* Remove pkg/util/azureclient/graphrbac

No longer used.

* pipelines: Run CodeQL analysis for Go on 1ES Hosted Pool

Vendoring the Microsoft Graph SDK for Go causes memory consumption
during CodeQL analysis to double due to its enormous API surface,
putting it well beyond the memory limit of standard GitHub Action
runners.

I inquired with the Azure organization admins about provisioning
larger GitHub runners, but was directed instead to use the 1ES
Hosted Pool which runs our other CI checks. Since ARO controls
the VM type for Hosted Pool agents, we can use a VM type with
adequate memory for CodeQL analysis with the Graph SDK.

Note: Implemented CodeQL commands in a template in case we
      ever decide to move Javascript or Python analysis to
      1ES Hosted Pool as well.
2023-06-14 11:10:37 -06:00
Ayato Tokubi 5009d9228f
use importas linter to check import aliases. (ARO1693) (#2891) 2023-05-17 21:47:49 +02:00
Jeremy Facchetti 6210fa5852
added more linter (#2481) 2022-10-31 08:18:27 +11:00
Jeremy Facchetti 652d206056 remove deadcode linter (duplicated) version bump of golangci-lint 2022-10-03 09:05:09 +02:00
Amber Brown 26ef9684eb update to ginkgo v2 in the e2e tests 2022-09-27 15:16:30 +01:00
Jeremy Facchetti 8d6d4c3a95
added yaml lint (#2132)
* added yaml lint

* updated the doc
2022-05-27 13:10:11 -04:00
Amber Brown 0e3717774a increase the timeout to 10 minutes, since a rebuild can trigger the timeout 2022-05-24 14:23:02 +10:00
Jeremy Facchetti fdfd3900b4
added stylecheck and moved golangci-lint to a github action (#2083)
* enabled github action instead of running from ADO

* fixed style

* fixed some style

fixed styling

fixed failing tests because of case on errs
2022-05-02 10:38:27 -04:00
Mikalai Radchuk 0d067794d6
Enables go fmt simplify (#2081) 2022-04-25 21:16:23 -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
Jim Minter d0a5afd5dd
enable lint on CI 2020-11-19 08:09:59 -06:00
Amber Brown 613ef643af Add golangci-lint configuration file and instructions to run it. 2020-06-18 14:51:21 +10:00