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

358 Коммитов

Автор SHA1 Сообщение Дата
Or Raz f384df3f24
Add ose-tools-rhel8 for 4.15 (#3649)
ose-tools image is used for troubleshooting scenarios in the wiki, as it comes with the oc client and a few handy tools for investigations.
2024-06-28 14:07:13 +02:00
Anshul Verma b8ed0da73f added scope to be of the database rather than the whole cosmosdb account 2024-06-11 22:24:46 +05:30
Anshul Verma ce4e04bd6e corrected the new database client methods for components. 2024-06-11 22:24:46 +05:30
Anshul Verma 8928e025b2 createUpdateTriggers were taking time. Reduced poll fequency time 2024-06-11 22:24:45 +05:30
Anshul Verma 7a568dbad1 removed all the references of dbtoken 2024-06-11 22:24:45 +05:30
Anshul Verma 6a6dc9a9c2 Previously missed changing triggers logic for monitor, added it 2024-06-11 22:24:45 +05:30
Anshul Verma ca06e6de0f fixed usgov scope thing, also changed few things. 2024-06-11 22:24:45 +05:30
Anshul Verma 49f572ae6e removed generate issues 2024-06-11 22:24:45 +05:30
Kipp Morris 31c72522fe
MIWI API endpoints (#3608)
* Add Cosmos DB container for PlatformWorkloadIdentityRoleSets

* Revert change to AKS k8s version - committed by mistake

* Fix bug in converter

When I first wrote the converter, I thought Go would treat the the slice
we `make` few lines above these changes as a slice full of zero-value
structs, but it actually treats it as an empty slice, which led to
out-of-bound issues when I first tried to use this converter to work on
the API endpoints.

* Add the PlatformWorkloadIdentityRoleSetConverter to the API register

* Implement the change feed for role sets in the easiest, most naive way

* Implement the external API endpoint for listing role sets

* Fix a small oversight from earlier on

* Add unit tests for the list endpoint

* Add unit tests for changefeed changes

* Uncomment the static validator

* Fix more slice out of bounds bugs in the converters...

* Add converter and static validator to the admin API register

* Add list and put endpoints

* Fix name of function to match convention

* Fix bug in static validator

I originally wrote the code the way I did so that we could aggregate
errors so that we could provide a better UX in cases where there are
multiple similar errors in the request content. I found while writing
unit tests that aggregating the errors in this way and not wrapping them
in a CloudError causes the RP to return an internal server error instead
of a 400 bad request.

Is there a way we can aggregate the errors and still wrap them in a
CloudError? I'm not sure of the formatting requirements for the text of
CloudErrors.

* Add unit tests for new API endpoints

* Fix typo

* Appease the linter

* Appease the linter

* Add TODO comment re: the number of parameters

* Update static validator to return multiple validation issues at the same time where applicable for better UX

* Add a simple utility function to make semver comparisons of OpenShift minor version more readable

* Log error before returning 500 to user

* Log errors before returning 500 to user

* Improve naming of unit test cases

* Add additional unit test cases
2024-06-06 10:15:44 -04:00
Tanmay Satam 7f79db4220 Remove Geneva image mirroring from aro mirror 2024-06-06 09:11:52 -04:00
Steven Fairchild 08ebcf1631 Revender hive to commit d7ead609f495785360aeea7c318f28fe82f9bcbf 2024-06-06 08:55:00 -04:00
Steven Fairchild 24f43d8b6a
Revendor Hive Dependencies - ARO-5061 (#3578)
* Revender Hive Dependencies - ARO-5061

Revendering Hive Dependencies against hive commit git, commit 83aedb9f6e73f9668a3b96025c97052bfb1e5282, built at 2024-05-10T15:02:58Z

* Revender hive dependencies
2024-05-15 12:31:13 -04:00
Amber Brown bcc67cff1e
Sync go-toolset 1.20.12 (#3495) 2024-04-16 11:40:15 +10:00
Maitiú Ó Ciaráin 422e209045
Use the correct MDSD image (#3516) 2024-04-11 12:27:44 +02:00
Tanmay Satam 162164ea66
Update azure-cli coordinates in mirror (#3501) 2024-04-04 17:52:37 +02:00
Tanmay Satam fb41688ea3
MDM/MDSD/Fluentbit Image Bumps (#3493)
* Update mdm/mdsd/fluentbit coordinates to latest versions

* make generate
2024-04-04 10:55:09 +02:00
Miguel Abad Perez 5d6caf2d95
Return image mirroring errors to calling function (#3485) 2024-03-28 11:21:30 +01:00
Maitiú Ó Ciaráin 07672dde9c
Switch to using the secondary key (#3427)
* Switch to using the secondary key

* Documentation update

* Log the name of the key used

* Pass log arg through

* Fix import ordering

* Shorten line
2024-03-21 11:28:58 -04: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
Steven Fairchild b628965f18 Mirror hive revender images
Fixes [ARO-5059](https://issues.redhat.com/browse/ARO-5059)
2024-02-12 14:59:41 -05: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
Amber Brown aaca34ee0b
Add Go 1.20 images (and ose-tools-rhel8 for 4.14) (#3349) 2024-01-11 21:12:50 +11:00
Jeff Yuan 7bf277bd1d iterate over all namespaces to find out if another gatekeeper is deployed 2023-12-21 16:45:41 +13: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
Lisa Rashidi-Ranjbar a017435855 ARO-4779: Mirror new hive image to close vulns 2023-11-29 15:43:50 -05: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
Andrew Denton 83b2a552c2
Delete OpenShiftVersions via change-feed (#3262) 2023-11-03 08:20:55 -04:00
Ben Vesel 35a5f16464
Bump Hive Version + Minimal Install (#3260)
* fix: match existing hive-config with production hive-config

* bug: bump hive version to use minimal install version and resolve vulns

* Remove oc-cli domain annotation
2023-11-02 12:56:26 -04:00
Ben Vesel 4aaccb824e
Only mirror images from 4.11+ (#3240) 2023-10-30 10:36:24 -04:00
nont 9c30a16b1c Plug NSG monitoring to mon.WorkOne 2023-10-27 09:51:40 -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
Amber Brown 796b7141c0 add ubi9, latest MUO, mariner azure-cli 2023-09-06 15:40:49 +10:00
Amber Brown c81ec65fb6 4.10+ mirroring 2023-09-06 15:40:33 +10:00
Caden Marchese 56352e6f02
Mirror the hive version we intend to upgrade to (#3126) 2023-08-31 19:41:38 -04:00
Amber Brown 1e3c10291f
Remove old upgradestreams logic from the monitor & old parts of the RP (#3092) 2023-08-31 09:22:24 +10:00
Lisa Ranjbar Miller b7ba1cc158
ARO-3112: Set DisableOutbound SNAT to true on Load Balancers (#3069) 2023-08-28 07:51:49 -06:00
Nicolas Ontiveros 01cf99f1ca
Unplanned Maintenance Signals (#3060)
Co-authored-by: Nicolas Ontiveros <nicolas.ontiveros@microsoft.com>
2023-08-25 13:17:19 -04:00
Shivkumar Anil Ople d74f9f3106
ran make generate (#3106) 2023-08-22 12:13:37 -04: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
Matthew Barnes a12ca8ab67 update_ocp_versions: Code cleanup
Split off a new function so the environment variable name
INSTALLER_IMAGE_DIGESTS only has to be specified once.
2023-07-19 11:46:09 +02:00
Amber Brown 12f1466e35
Remove the inbuilt installer (#3030)
* axe the build tags

* graph removals

* remove installer code

* go mod tidy

* go mod vendor
2023-07-18 14:56:23 +10:00
Jory Horeman 9bb3a47f45
bumping versions and make generate (#3019)
Co-authored-by: b-jhoreman <b-jhoreman@microsoft.com>
2023-07-13 16:27:13 +12:00
Matthew Barnes 8877ebc582
Read installer image digests from an environment variable (#3009)
INSTALLER_IMAGE_DIGESTS should be a JSON-formatted mapping of
"MAJOR.MINOR" OpenShift versions to an aro-installer image digest.
2023-07-11 10:30:36 -06:00
Ben Vesel 0378d0ecf7
Installer images use sha256 (#2967)
* Fix equality logic on version

* Leverage image digests when using the aro-installer image

* frontend: Discontinue adding default to enabled OCP versions

The CosmosDB "OpenShiftVersions" container in all environments is
now primed with supported OCP versions. RP no longer needs to hard
code a default in enabledOcpVersions.

* Insert the default version into cosmosdb on cluster creation in localdevmode

---------

Co-authored-by: Matthew Barnes <mbarnes@fedoraproject.org>
2023-07-03 15:18:22 -04:00
Ben Vesel 4100e65eef
Update the hive image used to an older commit but built more recently (#2985) 2023-06-26 14:17:34 -04:00
Tony Schneider bcd60e807f
initial scaffolding for preview api (#2972) 2023-06-20 18:56:30 -04:00