-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 2023 05 16.1.fa26250 (#1037)
## Description <!-- Please include a summary of the change and a link to the JIRA ticket. Please add any additional motivation and context as needed. Screenshots are also welcome --> Release ACSCS 2023-05-16.1.fa26250 ## Checklist (Definition of Done) <!-- Please strikethrough options not relevant using two tildes ~~Text~~. Do not delete non relevant options --> - [ ] Unit and integration tests added - [ ] Added test description under `Test manual` - [ ] Documentation added if necessary (i.e. changes to dev setup, test execution, ...) - [ ] CI and all relevant tests are passing - [ ] Add the ticket number to the PR title if available, i.e. `ROX-12345: ...` - [ ] Discussed security and business related topics privately. Will move any security and business related topics that arise to private communication channel. - [ ] Add secret to app-interface Vault or Secrets Manager if necessary ## Test manual **TODO:** Add manual testing efforts ``` # To run tests locally run: make db/teardown db/setup db/migrate make ocm/setup OCM_OFFLINE_TOKEN=<ocm-offline-token> OCM_ENV=development make verify lint binary test test/integration ```
- Loading branch information
Showing
98 changed files
with
1,715 additions
and
1,179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
- uses: actions/setup-python@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.19" | ||
go-version: "1.20" | ||
- uses: pre-commit/[email protected] | ||
- uses: pre-commit/[email protected] | ||
name: Verify generated files are up-to-date | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# How to e2e test RDS | ||
|
||
At the point in time this documentation was written AWS RDS DB creation and deletion is not e2e tested with a full setup of fleet-manager and fleetshard-sync. Everytime a change to the RDS provisioning logic is introduced we need to e2e test that change manually using the steps described here. | ||
|
||
**Prerequisites:** | ||
|
||
- A K8s cluster to create central resources on (using CRC as an example here) | ||
- Kubeconfig configured with access to that cluster | ||
- Setup personal AWS access through `aws-saml.py` (see [secret-management.md](./secret-management.md)) | ||
- RHACS Operator running or installed in the cluster | ||
|
||
1. Run local fleet-manager | ||
|
||
``` | ||
make db/teardown db/setup db/migrate | ||
make binary | ||
./fleet-manager serve --dataplane-cluster-config-file ./dev/config | ||
``` | ||
1. Run local fleetshard-sync | ||
``` | ||
# Prepare environment and secrets | ||
export PATH="$PATH:$(pwd)/bin" | ||
source ./scripts/lib/external_config.sh | ||
kinit # get a kerberos ticket | ||
export AWS_AUTH_HELPER=aws-saml | ||
init_chamber | ||
# When prompted select your profile for the dev AWS account arn:aws:iam::047735621815:role/047735621815-poweruser | ||
source <(run_chamber env "fleetshard-sync") | ||
source <(run_chamber env -b secretsmanager "fleetshard-sync") | ||
source <(run_chamber env "local_cluster") | ||
export MANAGED_DB_ENABLED=true | ||
# flip the PublicAcessible flag to true in rds.go line 354 | ||
make binary | ||
./fleetshard-sync | ||
``` | ||
1. Create a central instance and wait for DB Creation | ||
``` | ||
central_id=$(./scripts/create-centrals.sh | jq '.id' -r) | ||
# Watch the fleetshard-sync logs to tell what's happening in the background. | ||
# It should print something like this if everything works like expected: | ||
# RDS instance status: creating (instance ID: rhacs-chcb5m8ah6b2ko6qut0g-db-instance) | ||
# At some point your central instance should become ready | ||
``` | ||
1. Make sure DB state is available and 2 instances exist in state available the central pod is ready | ||
1. Delete the central | ||
``` | ||
export OCM_TOKEN=$(ocm token) | ||
./scripts/fmcurl "rhacs/v1/centrals/$central_id?async=true" -XDELETE | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...lm/rhacs-terraform/charts/observability/templates/01-operator-03-secret-alertmanager.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: rhacs-alertmanager-configuration | ||
namespace: {{ include "observability.namespace" . }} | ||
stringData: | ||
alertmanager.yaml: | | ||
global: | ||
resolve_timeout: 5m | ||
route: | ||
receiver: default-receiver | ||
repeat_interval: 12h | ||
routes: | ||
- receiver: managed-rhacs-pagerduty | ||
match: | ||
observability: managed-rhacs | ||
severity: critical | ||
- receiver: managed-rhacs-deadmanssnitch | ||
repeat_interval: 5m | ||
match: | ||
alertname: DeadMansSwitch | ||
observability: managed-rhacs | ||
receivers: | ||
- name: default-receiver | ||
- name: managed-rhacs-pagerduty | ||
pagerduty_configs: | ||
- service_key: {{ .Values.pagerduty.key | quote }} | ||
- name: managed-rhacs-deadmanssnitch | ||
webhook_configs: | ||
- url: {{ .Values.deadMansSwitch.url | quote }} | ||
type: Opaque |
8 changes: 0 additions & 8 deletions
8
...hacs-terraform/charts/observability/templates/01-operator-03-secret-dead-mans-switch.yaml
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
.../helm/rhacs-terraform/charts/observability/templates/01-operator-03-secret-pagerduty.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.