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

243 Коммитов

Автор SHA1 Сообщение Дата
Ben Vesel 89f508910d
Remove aro build tag as it's not needed for the ARO-RP (#3341) 2024-01-04 10:52:09 +11:00
Amber Brown cd99e81d4a makefile to run kiota 2023-09-04 10:35:48 +10:00
Amber Brown b5ea75e75f
Add jq for must-gather (#3050) 2023-07-28 11:29:23 +10: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
Jeff Yuan b06512afc3
Guardrails policies (M1) (#2970)
* Revert "temporarily remove policies other than the machine one as the example and test policy to create a base code pr"

This reverts commit 08d377d4b8.

* extracted shared rego resources to a separate lib

* improvement: rego unit test and gator test polishing (#2767)

* rego unit test and gator test polishing
* lint fix
* rego lint fix

* adjusted user id related judgement plus match kinds for resources other than pod

* added test cases for priv'd ns to cover pull-secret deletion

* add new policy for machine config modification (#2879)

* add new policy for machine config modification
* reformat yaml
* revise api group logic

* added pod host path policy

* dont run guardrails if a standard gatekeeper instance is already started

* comment out corresponding gator tests as r/w PV check is temporarily removed

* satisfy mega linter

* temporarily backoff the standard gatekeeper check

* enable standard gatekeeper check with proper test case modifications

* comment out non-namespaced resources

* add k8s specific namespaces to the priv'd list

* update README plus add two SA to allowed list

* update Guardrails README

* a typo in README

* allow policies to enforce on openshift-azure-guardrails namespace

* added group support for user validation

* update: Guardrail policy scripts and doc updates (#2941)

* update generate.sh to support single dir gen
* update scripts to support params
* update README

* added usage print for scripts

* change to flexible mode for username, group and SA name validation

* update get func to print more debug info

* rely solely on userInfo for user authentication

* extend audit-interval to slow down the audit run, plus display more violations

* roll back a temp change for local test

* dont allow updates for machine and machineset

* removed MachineSet

* unified the constraint filename and resource name to make the config easier

* adjust constraint and template name and kind as per convention

* update gatekeeper params, affinity and tolerations

* log violations

* white list more user and group

* extend priv'd ns protection to ns itself

* add guardrails policy generate entry in makefile

* make gator in README lower cased to keep consistent with official doc

---------

Co-authored-by: Arris Li <huili@redhat.com>
2023-07-18 14:04:40 +10:00
Srinivas Atmakuri 05890cfefe
Update gatekeeper version tag (#3028)
Currently gatekeeper picks up version as 3.10.0,
with this PR the version will be v3.10.0 by appending
a prefix v
2023-07-14 22:22:33 +12: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
Tony Schneider bcd60e807f
initial scaffolding for preview api (#2972) 2023-06-20 18:56:30 -04:00
Tony Schneider 477c735fd2
Reconcile upstream changes / remove Network SDK (#2851)
* sync with upstream
* remove network sdk from _validators.py
* ignore licensing in python/az/aro/azext_aro/aaz
* display command flag for get_subnet error message
* move import to top of file
2023-06-06 09:59:59 -06:00
Srinivas Atmakuri 6c32510ab5
minor name corrections for Gatekeeper-Guardrails image (#2918) 2023-05-30 11:38:48 +10:00
Srinivas Atmakuri d7bc5ea6d2
Guardrails image Dockerfile (#2873)
* Guardrails image Dockerfile

* minor change in dockerfile guardrails
2023-05-22 11:06:42 +10:00
Ayato Tokubi 6053ea5e16
remove go vet, replaced by golangci-lint (#2897) 2023-05-10 13:04:23 +10:00
Carlo Wisse a68f9c10ff
Fix client generation (#2867)
* Update autorest core to 3.6.3. Update nodejs to new secure LTS version for client generation. Fix permissions error in autorest Dockerfile for client generation.

* Added closing console line after api version generation
2023-05-02 13:36:41 +10:00
Caden Marchese 30370deecd
Revert "Update Makefile to not allow unset variables" (#2830)
* Revert "Fix e2e pipeline buy hardcoding ARO_IMAGE value"

This reverts commit 1e125095f4.

* Revert "Update Makefile to not allow unset variables"

This reverts commit 3d540c3a8e.
2023-04-06 12:11:27 +10:00
Steven Fairchild 3d540c3a8e Update Makefile to not allow unset variables
Adding SHELLFLAGS and switch to double dollar signs to prevent make from expanding bash variables
2023-04-03 10:50:57 -04:00
Amber Brown aee7b316c4 change mariner to go from MCR 2023-03-30 09:35:45 -04:00
Amber Brown 472d035f7e
Move CI/dev tool usage to use go run pkg@version to reduce the number of vendored dependencies (#2789)
Use the new go run thing@version for test/CI items to remove vendoring
2023-03-24 10:01:05 +11:00
Amber Brown 576bbd541c multistage for proxy 2023-03-16 15:17:44 -04:00
Amber Brown f7ef0b7668
Add a Fluentbit image build using Mariner containers (#2520) 2023-03-06 11:55:01 +11:00
Carlo Wisse 06356808f6 ran make client with new api version 2023-02-22 16:35:08 -05:00
Andrew Denton 98e39610ed
Always use lowercase "true" for the Official Release flag (#2673) 2023-02-01 13:49:10 +01:00
Amber Brown 127b0565f1
Migrate E2E to 1ES pool (#2638)
This doesn't include portal tests, those will follow.
2023-01-31 10:10:05 +11:00
Aldo Fuster Turpin a3fb28cfc6 fix/delete usage of flags at package-level and include Go test directive with -coverpkg in Makefile 2023-01-26 12:40:35 +01:00
Andrew Denton 2ca94a547f Change how release mode is passed to Makefile 2023-01-09 16:41:30 -05:00
Andrew Denton 4f90ba9e73 Require "official" builds have a valid tag. 2023-01-09 16:41:30 -05:00
Ellis Johnson eafca5aa99
Fix admin portal go embed (#2541)
* Fixed admin portal v2 navigation and e2e admin portal flakes

Check for docker before running e2e tests

* Assuming docker has failed until proven succeeded

* Made changes based on review feedback
2022-11-16 11:02:17 -08:00
Mikalai Radchuk bfafdea970 Adds junit report to E2E
So we can see trends and more easily identify most frequently failing tests.
2022-11-04 14:06:28 +00:00
Spencer Amann 2a9794b362 bump fluentbit image version to latest in makefile 2022-11-03 11:02:21 -04:00
Petr Kotas 4fa5b73f7d Build fat go file for the proxy
PRoxy needs to include all its dependencies instead of
linking them.
With links and ubi-minimal it can lead to missing libraries issue.

Signed-off-by: Petr Kotas <pkotas@redhat.com>
2022-11-02 19:03:25 +01:00
Mikalai Radchuk e2f927b67a Makes e2e flags consistent 2022-09-30 16:54:58 +01:00
Ross Bryan 3e302feefe add color back into e2es, easier to see pass/fails in ADO 2022-09-29 16:50:31 -04:00
Amber Brown 26ef9684eb update to ginkgo v2 in the e2e tests 2022-09-27 15:16:30 +01:00
Mikalai Radchuk 011e2ebe14 Makes ginkgo rerun flaky specs 2022-09-22 17:30:18 +01:00
Carlo Wisse 0ddff8d3d8 Removed registry from linter 2022-09-13 10:13:51 +10:00
Carlo Wisse 34605d0ad6 Remove all reported CVE issues with npm packages, create fallbacks for polyfills, use absolute path to eslint with formatter, upgrade all packages 2022-09-12 15:36:22 +10:00
Christoph Blecker aa3b6e7525
Fix autorest client generation 2022-08-30 19:18:07 -07:00
Christoph Blecker 3a592abe93
Specify platform when building or running images 2022-08-29 21:05:49 -07:00
Brendan Bergen b4c95223f1
Stop printing the admin password to console on login (#2322) 2022-08-11 13:39:57 -04:00
Andrew Denton 7fa655230b pin python versions using requirements.txt. 2022-08-10 16:57:18 +01:00
darthhexx 231b39b6a9 Revert to the correct quay.io repo (still needs to be pushed) 2022-08-05 11:03:10 +10:00
darthhexx 98921644d3 autorest version bump 2022-08-04 21:32:20 +10:00
Brendan Bergen f26818a8a2 Bump fluentbit version 2022-07-13 15:49:24 -06:00
Ross Bryan 95d192c35f create new api version, make client 2022-07-05 17:40:36 -04:00
Caden Marchese 6544bcd2c5
Remove 3rd party dependencies: dockerfile registry arg (#2126)
* allow args in Dockerfiles, change pull references

* add new Dockerfile for OBP, adjust template

remove debugging code
2022-06-24 14:40:13 -04:00
Ross Bryan f8a1bc45e5
add docs, script, and makefile to log into/use shared cluster (#2187) 2022-06-24 08:34:53 -04:00
cadenmarchese 1542fd2b8a Go vet with tags 2022-06-17 10:48:04 -04:00
Aldo Fuster Turpin cc111ee230
improve Python unit testing and refactor _validators.py (#2120)
* refactor: apply Guard clauses in _validators.py to simplify code
* fix _validators.py trailing whitespace
* improve python test tructure, include execution of unit tests in make test-python
* crate make directive to run python unit tests, add unit tests for azext_aro._validators.validate_cidr
* add tests for test_validate_client_id and include test cases description
* add unit tests for validate_client_secret from azext_aro._validators
* add explicit fields to named tuple in test cases in test_validators.py
* add two test scenarios for validate_cluster_resource_group
* simplify mocks
* add test case for test_validate_cluster_resource_group
* improve test descriptions
* add test_validate_disk_encryption_set test to test validate_disk_encryption_set
* add test cases to test_validate_disk_encryption_set()
* refactor test_validator.py to use classes instead of namedtuples. Use mocks instead of specific defined classes
* refactor (simplify code): remove explicit assignemnt to None when it is the default value
* create test_validate_domain() with 1st test case
* add test case, domain with '_'
* explicit import of unittest.TestCase
* fix test message in test_validate_domain
* finish test_validate_domain()
* finish test_validate_sdn() and test_validate_pull_secret()
* create test_validate_subnet() with first test case
* finish test_validate_subnet() and minor refactor in _validators.py
* create test_validate_subnets() and add first test case
* finish validate_vnet_resource_group_name()
* finish test_validate_worker_count() of test_validators.py and simple refactor in _validators.py
* finish test_validate_worker_vm_disk_size_gb()
* refactor _validators.py
* add test_validate_refresh_cluster_credentials() and minor refactor of test_validators()
* refactor _test_validators.py to use pytest, create script and invoke it from Makefile
* simplify test_validate_cidr() using pytest.mark.parametrize
* simplify some tests using pytest.mark.parametrize
* finish applying pytest.mark.parametrize
* clean up Makefile test-python
* add blank line to hack/unit-test-python.sh
* fix typo in test case
* fix mega-linter error, blank space
* fix test case to fail due to invalid range
* fix typo in beeing to be being
* remove redundant test case
* reformat code for better readability
* add missing license to __init__.py files
2022-06-09 09:24:31 +02:00
David Newman bc4b6489e1
Merge pull request #2128 from darthhexx/aks-dev-deploy
AKS development environment
2022-06-09 11:05:39 +10:00
Jeremy Facchetti b4bd5842ac
move validate-go to github action (#2153) 2022-06-07 12:39:51 +02:00
darthhexx 00fd14f9cb Add aks.kubeconfig to Makefile .PHONY 2022-06-07 12:41:14 +10:00
darthhexx 7f09fbad6a Add 'make aks.kubeconfig' for use in development environments. 2022-06-07 12:41:13 +10:00
Aldo Fuster Turpin eb72d3275c
create lint-go script and call it from Makefile (#2118)
Co-authored-by: Jeremy Facchetti <facchettos@gmail.com>
2022-06-03 17:11:25 +02:00
Jeremy Facchetti 8d6d4c3a95
added yaml lint (#2132)
* added yaml lint

* updated the doc
2022-05-27 13:10:11 -04:00
bennerv 500a7926c9 Bump fluentbit, mdm, and mdsd images to mitigate P0/P1s 2022-04-26 15:35:25 -04:00
Ellis Johnson bedce2b2b0
Admin Portal v2 (#2019)
Add in sre portal v2, still default to v1

Co-authored-by: Amber Brown <ambrown@redhat.com>
Co-authored-by: Brett Embery <bembery@redhat.com>
Co-authored-by: Ben Vesel <10840174+bennerv@users.noreply.github.com>
2022-04-06 09:06:11 -04:00
Peter Kostyukov 49ed232c76
Create 2022-04-01 API (#1876) 2022-04-05 15:34:54 +02:00
cadenmarchese cdbb3aac51 add containers_image_openpgp everywhere 2022-04-05 14:21:21 +02:00
Nont cc9a21680d
Change secrets-update to allow subsequent updates (#2038)
Co-authored-by: Nont <nthanonchai@microsoft.com>
2022-04-04 20:45:08 -04:00
Caden Marchese 33133993bb
add containers_image_openpgp tag (#2032) 2022-04-04 11:51:46 -04:00
Neeraj Bhatt f63e65c294
Update Makefile (#2020)
The ARO-RP returns special characters in color encoding special character, which is not decoded as of now. This change removes the color encoding characters by default in e2e tests
2022-03-22 18:56:45 -04:00
Leszek Jakubowski 648c860272
adding a way to pass additional flags to E2E tests (#1998) 2022-03-10 19:53:31 -05:00
Petr Kotas b73ec7ce6d fix: use the tag/commit as the aro version
ARO uses both tags and commits as its version.
The commits are used for the development scenario,
tags are used when building and deploing to
production.
2022-02-24 13:30:08 +00:00
Ross Bryan d3ced9732d add fips validation scripts and ci step 2022-02-14 15:10:20 +00:00
Karan Magdani 6ad5a2d56e
clean temporary gomock folders (#1912)
Signed-off-by: Karan.Magdani <kmagdani@redhat.com>
2022-02-10 12:08:55 -05:00
bennerv d949dbfbf6 Suppress stderr within Makefile command 2022-02-03 11:45:04 -05:00
Petr Kotas d3efc247d4 Revert "Revert "[PIPELINES 4] Create release based on annotated git tag"" 2022-01-31 13:51:44 +00:00
Petr Kotas 56b90ee8a0
Revert "[PIPELINES 4] Create release based on annotated git tag" 2022-01-19 15:07:14 +01:00
Petr Kotas 7197f3255d
Merge pull request #1684 from petrkotas/build-by-tag 2022-01-18 18:54:08 +01:00
Petr Kotas 44f6fc55fb
Add tagged aro image
Add annotated tag build and push into makefile.
Without annotation, the TAG is empty and
action is not performed.

Signed-off-by: Petr Kotas <pkotas@redhat.com>
2022-01-14 13:57:39 +01:00
Amber Brown c7b36900f5
Merge pull request #1858 from SrinivasAtmakuri/patch-1
make runlocal-rp read the version.gitCommit
2021-12-22 14:32:00 +11:00
Mikalai Radchuk 9b4fecf09f Revert to previous fluentbit 2021-12-13 15:48:32 +00:00
Srinivas Atmakuri ef54ea8a01
make runlocal-rp read the version.gitCommit
Existing code for running localrp does not read version.gitCommit, resulting in ARO operator version as `unknown` for dev clusters.
With this PR, we pass the ${COMMIT} to the go run aro command.
2021-11-30 17:32:23 +05:30
Mangirdas Judeikis eafc4b5285
Docs and make file nits (#1731) 2021-11-16 13:29:01 -05:00
Ben Vesel ac41f36590
Merge pull request #1838 from bennerv/add-aro-tag
Add `aro` build tags when running code out of cmd
2021-11-16 11:08:08 -05:00
bennerv fb920475a0 Add aro tags when running commands 2021-11-15 13:26:46 -05:00
Ross Bryan 6c49abc69e update fluentbit 2021-11-15 10:21:24 -05:00
Leszek Jakubowski 3c70bef2e2 adding colorama to pyenv 2021-11-05 18:45:59 +01:00
Ben Vesel fef8f41aa3
Remove generate dependency from test-python makefile target (#1795) 2021-10-18 14:55:22 +01:00
Drew Anderson d61fd1609f Ensure build tag "aro" is present
make runlocal-rp
Fail run and use Tests to report -tags status
Updated doc
2021-09-30 16:45:59 +01:00
Jim Minter 91d6a55e8e add gateway 2021-08-19 10:21:09 -04:00
Mangirdas Judeikis a2938d7482
Merge pull request #1649 from 25region/autorest-image
Update Python SDK to Track 2
2021-08-18 05:23:02 -02:00
Mikalai Radchuk 9677872d61
Update Makefile 2021-08-16 13:44:58 +01:00
Peter Kostyukov 10a73b2523 Python Track 2 SDK 2021-08-13 11:47:17 -05:00
Mikalai Radchuk 647da4ec3c Revert "Temporary remove azdev from tests"
This reverts commit c91f758749.
2021-08-06 14:50:20 +01:00
Jim Minter 6cb9988382
build using codec.safe 2021-07-28 11:31:10 +01:00
Mikalai Radchuk c91f758749 Temporary remove azdev from tests 2021-07-27 12:46:28 +01:00
Michael Andescavage db7a220e14 re-adding shell: 2021-07-20 12:59:48 -07:00
Mangirdas Judeikis 6ba3d3b1bd
rename 20210131 -> 20210901 2021-07-20 12:15:25 +01:00
Mangirdas Judeikis 27af6e370a
Merge pull request #1465 from petrkotas/add-testsum
Reduce noise and amount of workers in the CI
2021-07-19 07:56:03 +01:00
Mikalai Radchuk 5b39df3b1a
Makes pyenv target more platform agnostic 2021-07-02 11:36:25 +01:00
Petr Kotas bb7ecaa20d
Organize makefile
split test-go to allow separate phases to be run in CI
each phase will be able to fail separately increasing
readability

Signed-off-by: Petr Kotas <pkotas@redhat.com>
2021-06-28 17:05:43 +02:00
Naveen Malik 30d96047af Bump fluentbit version, change to ubi7/ubi base image 2021-06-15 18:01:21 -04:00
Petr Kotas 303f943991
Add gotestsum to the vendor
gotestsum offers summarized test results with
output of only failed tests

Signed-off-by: Petr Kotas <pkotas@redhat.com>
2021-06-01 15:25:56 +02:00
Mikalai Radchuk 350dc63c24 Update to OCP 4.7 2021-05-27 16:41:01 +01:00
Mangirdas Judeikis 03ab6ebf0f
Merge pull request #1491 from hawkowl/hawkowl/portal-webpack-2
Webpack build process (retry)
2021-05-20 15:31:30 +03:00
Mangirdas Judeikis 7d79319687
Merge pull request #1489 from mbarnes/mbarnes-python3
Use Python3 explicitly
2021-05-11 09:53:03 +03:00
Amber Brown f4c6a0cfb8 Revert "Merge pull request #1479 from mjudeikis/revert.portal"
This reverts commit 11fba06fd7, reversing
changes made to 4039d66ac8.
2021-05-11 14:13:31 +10:00
Mangirdas Judeikis c2d7b5027e
Revert "Merge pull request #1404 from hawkowl/hawkowl/portal-webpack"
This reverts commit a6c6619a93, reversing
changes made to eb247dbc7f.
2021-05-06 16:28:53 +01:00
Mangirdas Judeikis a6c6619a93
Merge pull request #1404 from hawkowl/hawkowl/portal-webpack
Add an asset pipeline for the admin portal
2021-05-06 11:50:35 +03:00
Matthew Barnes fa92223e9e Use Python3 explicitly
Debian Buster still symlinks /usr/bin/python to python2.
Similarly, pip and virtualenv still default to Python 2.
2021-05-05 16:19:29 -04:00