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

360 Коммитов

Автор SHA1 Сообщение Дата
Ross Bryan e93b0f49b4 address feedback 2022-09-14 16:10:07 -04:00
Ross Bryan 0ef1dde3b9 update examples, address feedback, make client
Co-authored-by: Spencer Amann <samann@redhat.com>

refactor
2022-09-14 10:26:47 -04:00
Ross Bryan a5673f1532 rm interface support - refactor examples to resources b64 strings 2022-09-14 09:57:31 -04:00
Ross Bryan 2d076a8242 create clustermanager api definitions, wire up cosmosdb 2022-09-14 09:57:29 -04:00
darthhexx 127f0caf52 Hive image with CLI Image domain override support 2022-09-07 21:45:08 +10:00
Brendan Bergen baa9d67eef Update auth used by rhcos uploads 2022-09-01 14:05:38 -06: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
Petr Kotas ca87817010
Add vpn code run before e2e to connect to the aks (#2338) 2022-08-23 11:10:54 +02:00
Jeremy Facchetti 05ee165220
added github action for go ci (#2212) 2022-08-22 16:59:55 +02:00
Jeremy Facchetti 37c94aa494 cleanup 2022-08-08 14:43:18 +02:00
Mikalai Radchuk 11197564cb Updates hive image
New version includes support for log decoration with extra fields
For more details see:

* https://github.com/Azure/ARO-RP/pull/2284
* https://github.com/openshift/hive/pull/1828
2022-08-05 13:57:25 +01:00
Petr Kotas 572e9fa209
Fix the aks name in get kubeconfig (#2296)
Signed-off-by: Petr Kotas <pkotas@redhat.com>
2022-08-02 11:58:34 -04:00
Mikalai Radchuk f22254e177 Enforces hivev1azure import alias 2022-08-02 09:00:55 +01:00
Amber Brown d9f33a0dc6 consistently use our uuids 2022-07-27 15:07:29 +10:00
Amber Brown aa33c5e100 make a uuid package that implements or reexports all we need 2022-07-27 13:38:00 +10:00
Mikalai Radchuk 2781843c89 Fixes validate-imports
Fixes the issue is that import aliases (from both regex rules and yaml)
are only being enforced if an import under the validation uses alias.
2022-07-26 12:08:53 +01:00
Nont de7083eb9b
Update changes required for Microsoft Graph (#2169)
Co-authored-by: Nont <nthanonchai@microsoft.com>
2022-07-21 10:57:00 -04:00
Mikalai Radchuk 5ab9a3e095
Vendoring: update Hive to the latest version (#2263)
* Updates vendoring docs and scripts

* Makes use of `go mod tidy -compat=1.17`:
  we do not have to be compatible with prior versions.
  Saves a bit of headache when dealing with dependencies.
* Makes `hack/update-go-module-dependencies.sh` ignore `github.com/openshift/hive`:
  it is not part of OCP dependencies and is not following `release-4.Y` branching.
  We want to update it separately.

* Vendoring: update Hive to the latest version

* make generate
2022-07-19 13:44:23 -04:00
Mikalai Radchuk 961f8ed6e9 Updates hive to the latest version
It includes support for private endpoint: https://github.com/openshift/hive/pull/1817
2022-07-19 16:16:04 +01:00
darthhexx 83333a2e99 Create a DNS record for the AKS API in the DNS zone during provisioning. 2022-07-18 10:22:16 +10:00
tschneid 7b6138505e Replace go-bindata with go:embed in pkg/deploy 2022-07-15 09:51:26 -05:00
tschneid bea9aec2d8 Bump ocp to 4.10.20, revert workarounds for BZ 2093044
Revert "Add name length validation on ARO clusters for non-zonal regions"
This reverts commit 13c3290ffc.

Revert "Typo in pipeline script"
This reverts commit 6e1acd4f13.

Revert "Truncate cluster names to 19 char in e2e pipelines"
This reverts commit b2273bdc6a.

Removed test cases in pkg/api/v20220904/openshiftcluster_validatestatic_test.go for cluster
name length validation, these tests are no longer needed as BZ 2093044 is fixed in 4.10.20
2022-07-07 14:24:10 -05:00
Jason Healy e2093f95da
E2E scripting and documentation improvements (#2228)
* prevent terminal from closing after unsuccessful source

* CLUSTER needs to be set locally
2022-07-07 11:26:26 -04:00
Ulrich Schlueter 3d8654a1a7 Register cluster with hive at install time 2022-07-05 16:16:56 +01:00
Amber Brown 3bf02a0f8f add an initial hive client manager 2022-07-04 13:13:56 +01:00
Ross Bryan f8a1bc45e5
add docs, script, and makefile to log into/use shared cluster (#2187) 2022-06-24 08:34:53 -04:00
David Newman 657e4f38be
Hive AKS development environment deploy (#2171)
* Add hive config generation script

* Script to install hive into the AKS dev environments

* Add note about semi-scientific container image search

* Vanilla hive config gleaned from app-sre config

* Initial OCP 4.10.15 image set

* Ignore the generated hive config files

* Check for crds folder and ask to re-running install

* Add docs

* Add newline to yaml EOF

* Spelling is clearly hard at this hour...

* Fix typo, grammer, and spelling

* Use the shell var instead

* Use the expanded output variable syntax. No lazy typing :)

* Use 1's for all error exit's

* Fix make aks.kubeconfig in docs/hive.md

Co-authored-by: Spencer Amann <samann@redhat.com>

* Fix hive docs kubeconfig typo

* Use HIVE_IMAGE_COMMIT_HASH in the HIVE image and comments for popd/pushd

* Update docs to reflect the use of the HIVE_IMAGE_COMMIT_HASH define

Co-authored-by: Spencer Amann <samann@redhat.com>
2022-06-16 20:03:21 -04:00
Spencer Amann 70a3f19716
Fix azureproviderspec regression (#2167)
* Fix AzureMachineProviderSpec regression in 4.10

* refactor to reduce branches and clean up

Co-authored-by: bennerv <10840174+bennerv@users.noreply.github.com>
2022-06-10 08:59:29 -07: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 0c9408b0d7 Remove any previous AKS config. 2022-06-07 12:41:14 +10:00
darthhexx 0da359b497 Output an error if the AKS kubeconfig generation fails 2022-06-07 12:41:14 +10:00
darthhexx 010a95210f Filter for the system node pool for cases when there are more than one deployed. 2022-06-07 12:41:14 +10:00
darthhexx cf18e45c73 Display list of clusters when a search returns 0 or >1 AKS clusters. 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
darthhexx 4d2e911dc2 Script to SSH into AKS node pool VM instances for prototyping and debugging. 2022-06-07 12:41:13 +10:00
darthhexx 8c47dcdc4d New deploy_aks_dev function for the AKS ARM template. 2022-06-07 12:41:13 +10:00
Ben Vesel c0ee53e632
Merge pull request #2158 from tony-schndr/truncate-e2e-cluster-name
Truncate cluster names to 19 char in e2e pipelines
2022-06-04 01:30:25 +01:00
Tony Schneider b2273bdc6a Truncate cluster names to 19 char in e2e pipelines 2022-06-03 16:34:07 -05:00
bennerv 13c3290ffc Add name length validation on ARO clusters for non-zonal regions 2022-06-03 17:17:36 -04: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 b639b19bfa
clean up of validate import, now uses a yaml file for maintainability (#2136) 2022-06-02 16:05:50 +02:00
Jeremy Facchetti 168b5cbe85
removed go-bindata from pkg/operator (#2119) 2022-06-02 11:05:32 +02:00
Jeremy Facchetti 08b4a30034
refactored muo to extract deployer (#2122) 2022-06-02 10:35:07 +02:00
Amber Brown bd08c71826
Merge pull request #2099 from hawkowl/hawkowl/installer-pullout-infra-id
Generate the InfraID without Installer dependency
2022-06-01 08:11:45 +10:00
Spencer Amann 7bba674b3a
when mhc is managed create an alert for frequent remediation (#2123) 2022-05-31 09:34:48 -04:00
Ulrich Schlueter 5bb1018ad4
Add an option to send metrics via UDP instead of Unix Domain Sockets (#2074) 2022-05-31 11:08:55 +01:00
Amber Brown 58831ff4a4 validate apimachinery rand as utilrand 2022-05-30 13:09:43 +10:00