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

243 Коммитов

Автор SHA1 Сообщение Дата
Ayato Tokubi d89a378897
Check Role Definition for MIWI (#3876)
* bump cluster-credentials-operator

* add Get to roledefinitions client

* check script

* pipeline

* use parameters

* change target-version help message

* vendor

* fix role.go

* use candidate channel

* use operator names in RP-Config

* modify the output format

* changed to use quay.io API

* add some comments

* remove pipeline resource

* change role definition names
2024-10-24 12:35:57 -04:00
kimorris27 c6e13d95d3 Made codesign command part of install-tools target 2024-10-14 09:10:18 -05:00
kimorris27 fffa8f7109 Codify solution to https://github.com/uber-go/mock/issues/185 for MacOS users 2024-10-14 09:03:35 -05:00
Shubhadapaithankar 4256e68ea3
Selenium Service Migration to Docker Compose (#3883)
* Selenium Service Migration to Docker Compose

* Improved the consistency and readability of your code.

* Remove unused build target, switch to standalone-chrome, and update scripts for consistency

* fix(docker-compose): revert to using selenium/standalone-edge

* Changed the image to selenium/standalone-edge:4.10.0-20230607 to match the original configuration
2024-10-11 11:19:00 -04:00
Shubhadapaithankar 96637dbc85
Migrate VPN and rp service to Docker Compose (#3882)
* VPN, RP, and Portal are now managed by Docker Compose
2024-10-10 13:18:26 -06:00
Rajdeep Chauhan 16834d8ddd
Fix Managed Identity Cluster creation dynamic validation flow (#3891)
* Fix Dynamic Validation Flow for Workload Identity

* fix the mock msi object id export

* Remove unwanted code

* update OIDC_STORAGE_ACCOUNT_NAME local env setup

* ARO-11049 resolve comments
2024-10-10 14:12:06 -04:00
Amber Brown f69705b7e1 add a regression test param which includes tests which we don't need to run every PR, but are still useful to run on master 2024-10-01 14:59:06 +10:00
Kipp Morris e3cec21b73
Lay groundwork for cluster MSI usage (#3757)
* Add a parameter for enabling Entra ID RBAC on key vaults
* Add an RP-level feature flag for determining whether to use the mock MSI RP
* Tweak the mock identity URL to play nicely with the mock MSI RP
* Add Azure SDK client wrappers for new clients (federated identity credentials control plane and key vault data plane)
* Vendor in new Azure SDK clients and update msi-dataplane

* Lay groundwork for use of cluster MSI...
- Initialize the MSI dataplane client, using the mock MSI RP/stub if
  appropriate
- Initialize key vault store client (for MSI certificates; functionality
  is implemented in MSI dataplane module)
- Create a cluster MSI certificate and store it in the key vault during
  cluster bootstrap
- Instantiate an Azure SDK FederatedIdentityCredential client using the
  cluster MSI certificate
- Delete the cluster MSI certificate as needed during cluster deletion

* Don't fail during cluster deletion if the cluster MSI certificate is
already gone from the key vault (or was potentially never created)

* Establish an RP-Config variable for the MSI RP endpoint

- Update doc comment for ensureClusterMsiCertificate
- Simplify conditional logic in MSI cert deletion

* Use pointer conversion functions that aren't deprecated

* Respond to PR comments (and fix some other things along the way)

- Move `clusterMsiResourceId` function to `OpenShiftCluster` type
- When persisting the MSI cert to KV, use the `NotAfter` returned by the MSI RP (for the stub, just use an arbitrary value)
- Move `getClientOptions` functionality to `AROEnvironment` type
- Move logic for determining cluster MSI key vault name to `pkg/env`
- Pull cloud name mapping stuff out to `AROEnvironment` type
- Update msi-dataplane module to include new changes and use `UserAssignedIdentities` type to get Azure credential in `pkg/cluster/clustermsi.go`
- Fix typo in https URL in comment in `pkg/cluster/delete.go`
- Implement suggestion to use `errors.As` instead of a type assertion in `pkg/cluster/delete.go`

* Update documentation with info about new feature flag

- Move new cluster MSI steps forward in bootstrap step order
- Move MSI dataplane client options stuff to pkg/env
- Explicitly check for a single cluster MSI in `ClusterMsiResourceId`
- Other small tweaks

* Vendor in msi-dataplane update that prevents a potential nil pointer dereference

* Add missing method to internal key vault client

* Make error messages more specific in ClusterMsiResourceId

* Add missing env vars to run-rp make target and uncomment dynamic validation bootstrap step

- In newly added Azure clients, return struct types instead of interface
  types
- Move cluster MSI certificate deletion to be after Azure resource
  deletion for safety just in case cx continues to use cluster that is
  in Failed/Deleting provisioning state

* Add new env vars for MIWI to env.example for clarity/completeness

* Turn check for nonzero number of user assigned identities into a utility function

* Use existing constant for key vault dns suffix
2024-09-24 08:14:56 -04:00
Shubhadapaithankar 0657f6aa5a
Shubhadapaithankar/aro-9323-cirp-mvp (#3799)
- Converted containerized CI process to use docker for ease of use in ADO
- Added stage to authenticate and push CI images to ACR
- Added support for extracting test results and coverage files from containerized build
2024-09-19 10:41:44 -06:00
Amber Brown 590e82881c
Clean up the remainder of `go run` uses of external tools (#3823)
* fix make aro build in onebranch
* just install jq for clean subscription
* move fipsdetect and gojq out of go run/manual go build territory
* install tools for validate-fips and e2e
* add to bin
* copy gojq here too
* go mod tidy
* go mod vendor
2024-09-10 18:28:06 +10:00
Amber Brown c554e98391
Drop some unneccessary dependencies by moving to `bingo` for tooling (#3719)
* Move to using bingo for tools
* go mod vendor
2024-09-05 15:29:19 +10:00
Brendan Bergen 0c5b8e6acc
Separate Makefile targets for local vs containers (#3816)
- reverts changes to runlocal-rp
- updates old run-portal to runlocal-portal since it uses local bins
- adds new targets for containerized run of RP and Portal; opt-in
- fixes docs and pipelines to use updated targets
2024-09-04 15:45:44 -04:00
Brendan Bergen ddff7a2e56
Fix make ci-clean and runlocal-rp (#3806)
* Fix make ci-clean error for running work containers by buildah that prevents prune from working
* Fix make runlocal-rp image syntax
2024-09-03 11:39:49 -06:00
Brendan Bergen 710eb2bdf0
Add the old make runlocal-rp as an alternative to containerization (#3789) 2024-08-30 14:52:47 -06:00
Shubhadapaithankar b1caf181ee
This is the new CI-RP stage for the pipline (#3768)
* This is the new CI-RP stage for the pipline (#3753)

* Ensure Podman Service is Started and PODMAN_REMOTE_ARGS is Configured Automatically

Ensure Podman Service is Started and PODMAN_REMOTE_ARGS is Configured Automatically

Ensure Podman Service is Started and PODMAN_REMOTE_ARGS is Configured Automatically

removed the tag

Add Podman service start and remote args setup for seamless operation

Add sudo to start Podman service for elevated permissions and fix permission errors

Add sudo to start Podman service for elevated permissions and fix permission errors

Refactor Makefile: Update Podman service handling with sudo and remove default PODMAN_REMOTE_ARGS to improve flexibility and ensure proper permissions.

Add sudo to start Podman service for elevated permissions and fix permission errors

* Added Podman service target and set PODMAN_REMOTE_ARGS for seamless builds.

* fix the makefile

* added the port to fix the Makefile
2024-08-29 09:09:59 -04:00
Shubhada a05c82c50e Fixed to correctly reference the local image, preventing unauthorized Docker Hub pulls. 2024-08-26 09:49:05 -07:00
Brendan Bergen c9410c24c8 Allow remote podman 2024-08-21 16:35:24 -06:00
Brendan Bergen e374a4275c Makefile Podman Fixes
- Allows true use of NO_CACHE by using LABELs and podman tag commands instead of --cache-from
- Standardizes formatting of image names and variables
- Standardizes use of VERSION for image tags
- Standardizes formatting of podman commands and parameter ordering
2024-08-21 16:35:24 -06:00
Brendan Bergen 09c49cbce8 Use Podman, not Docker 2024-08-21 16:35:24 -06:00
Brendan Bergen 92a8bfcc15
Containerized portal as it runs in prod, locally (#3745)
- creates a new make target to run the Portal app containerized
- updates portal addresses to work with podman machine
- adds docs
2024-08-21 09:21:45 -06:00
Shubhadapaithankar a387947960
Make runlocal-rp with Container Image (#3593)
Runlocal-RP is Containerized

- Modified Makefile to execute a local `podman run` for the RP on 127.0.0.1
- Local RPs now by default interact with Hive due to MacOS limitations
- Updated RP dev config to serve on all IPs due to MacOS limitations
- Doc updates
2024-08-16 11:41:58 -06:00
Tanmay Satam 8d8e63dcc6 Do not modify user's Azure CLI config
We previously added the Azure Extension dev_sources property the user's global Azure
configuration file, but with #3554 this is no longer necessary, as we set this
property via environment variable within the RP development context instead.
2024-07-29 14:09:09 -04:00
Ayato Tokubi 4e46fd2d84
check CO availability 2024-07-18 12:04:38 +01:00
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
Brendan Bergen f7c752b245
HOTFIX: correct local image names (#3682)
- eliminated TCP errors attempting to hit localhost:443 as a registry domain
- eliminated build failures caused by incorrect final tag name with unset envvars
2024-07-12 10:02:58 -06:00
Tanmay Satam 2eb19ec6ea
Containerize tunnel (#3646) 2024-07-10 14:58:46 -04:00
Mohammed Safwan Aslam Kazi 46a75fa107
Architecting Local `make ci-rp` File To Allow Caching For Later (#3623)
* adding new variables to handle tagging of intermediate docker images in a multi-stage container file, which helps differentiating them from final slim image

* building intermediate docker images individually

* using --cache-from flag to point to an image name instead of tags

* building intermediate images pointing to localhost instead of actual registry

* creates new variable in code to manage fake FQDN for localhost

* removing complexity and avoiding using fake FQDN for localhost

* rearranging the code line to maintain the relevance of the code

* using conditional assignment
2024-07-10 14:53:31 -04:00
oraz 5e40a61a61 Add new makefile targets for go mod verification
Run 'go mod' functions to search for tidy, vendor changes and verify it
2024-06-26 15:19:38 -04:00
Tanmay Satam ec4eff0995
Split Makefile PHONY target (#3620) 2024-06-12 09:30:56 -06:00
Tanmay Satam 1a7df460e9
Minimal Python container to build `az aro` extension (#3490)
* Add build container for az aro extension
2024-06-07 16:54:46 -06:00
Jeff Yuan 85ea77a763
Merge pull request #3539 from Azure/f/guardrails-3.15.1
feat(guardrails): Update manifests to match 3.15.1
2024-06-07 18:30:33 +12:00
Mohammed Safwan Aslam Kazi 470884a435
Automate Local Image Pruning (#3587)
* adding labels to each stage in docker file ci-rp
* added a new makefile target ci-clean to prune local images
* removing ci-portal from .PHONY accidentally came with previous commit
2024-06-06 14:03:17 -06:00
Tanmay Satam 019b6ebbff
Add explicit ARG VERSION to RP build stage in ci-rp (#3597) 2024-06-04 17:20:43 +05:30
Shubhadapaithankar 7bf05051f0
Integrate JS asset build into Golang Dockerfile to ensure consistent builds and deployment process" (#3576)
* SRE Portal build is now incorporated into the RP build process in "make ci-rp"
2024-05-22 12:13:17 -06:00
Brendan Bergen 50418b65a1
`make ci` support for golang (RP) components (#3558)
* multi staged CI via make and docker build

* Improving docker mobilty and performance

- fixing file handles during build
- removing vendor checks
- allowing "dirty" builds
- improving cache hits via multiple COPY operations
- adding specific dockerignore
- removing all makefile dependencies during docker build
- adding docs for podman machine sizing
- using most recent golang version

* Add support for MacOS vendoring

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

---------

Co-authored-by: tschneid <tschneid@redhat.com>
Co-authored-by: Kipp Morris <117932707+kimorris27@users.noreply.github.com>
2024-05-10 15:01:38 -06:00
Jeff Yuan fc564970f7 Merge branch 'master' into f/guardrails-3.15.1 2024-05-07 17:55:29 +12:00
Jeff Yuan 5a3b817666 fixed gatekeeper version in dockerfile plus a makefile issue 2024-05-07 17:32:04 +12:00
Shubhadapaithankar 3a7daba694
Modified the content to set up the dev env : ARO-7278 (#3554) 2024-05-03 14:25:50 -06:00
Sanjana Lawande d178fb23bc
Update MARINER_VERSION to 20240425 (#3553) 2024-05-03 09:13:06 -04:00
Amber Brown 27bc205e24
Remove portal v1 (#3465)
Portal V1, you have served us well.
2024-04-05 12:06:22 +11:00
Brendan Bergen 2d6b88cb10
Add git hooks for branch name validation (#3479) 2024-03-25 13:48:08 -06:00
Brendan Bergen c9b7d81508
Add CI containerfile for portal javascript build (#3397)
* Add CI containerfile for portal NPM commands + makefile target

* Update docs to reflect new envvar for makefile, including a reasonable default for local dev: NO_CACHE
2024-03-20 07:24:18 -04:00
Maitiú Ó Ciaráin 7ec73ba0cb
Update shared cluster login (#3424)
Update shared cluster login
2024-03-07 14:50:53 +01:00
Kipp Morris 8ee1b531ef
2024-08-12-preview API skeleton (#3419) 2024-02-29 12:37:28 -05:00
Amber Brown 35e907a2ab move the client-gen code to another makefile step, since it's busted :( 2024-02-20 14:03:07 +11:00
Amber Brown a1b5370138 move the github actions CI into containerised steps 2024-02-20 13:55:31 +11:00
Amber Brown b6e1b07fe8
Use another method of FIPS validation (fips-detect) (#3363)
* Use another method of FIPS validation (fips-detect)
2024-02-01 13:21:34 +11:00
Maitiú Ó Ciaráin efd47430a5
Update shared cluster usage (#3332)
* Update the hack script to require the new envs

* Add new targets to the Makefile

* Update the docs

* Fix typo

* Add some info to the delete flow

* Update docs/shared-cluster.md

Co-authored-by: Jason Healy <jason@jhealy.net>

* Tag all created resource groups with persist

* Drop shared-cluster from the explicit denys

* Update docs

---------

Co-authored-by: Jason Healy <jason@jhealy.net>
2024-01-25 12:02:23 +01:00
Amber Brown 340fc3711a Remove Dockerfile.aro and the image-aro Makefile -- the images made from it have the potential to be built with inconsistent Golang versions. 2024-01-24 14:43:01 -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