-
Notifications
You must be signed in to change notification settings - Fork 2.3k
ROSAENG-1331: Add MC e2e testing workflow for SRE operators (RMO, AVO) #82850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dustman9000
wants to merge
1
commit into
openshift:main
Choose a base branch
from
dustman9000:rmo-mc-e2e
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+334
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
86 changes: 86 additions & 0 deletions
86
ci-operator/jobs/openshift/aws-vpce-operator/openshift-aws-vpce-operator-main-periodics.yaml
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,10 @@ | ||
| approvers: | ||
| - dustman9000 | ||
| - joshbranham | ||
| - bmeng | ||
| - ravitri | ||
| reviewers: | ||
| - dustman9000 | ||
| - joshbranham | ||
| - bmeng | ||
| - ravitri |
17 changes: 17 additions & 0 deletions
17
ci-operator/step-registry/rosa/operator/mc-e2e/rosa-operator-mc-e2e-workflow.metadata.json
This file contains hidden or 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,17 @@ | ||
| { | ||
| "path": "rosa/operator/mc-e2e/rosa-operator-mc-e2e-workflow.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "dustman9000", | ||
| "joshbranham", | ||
| "bmeng", | ||
| "ravitri" | ||
| ], | ||
| "reviewers": [ | ||
| "dustman9000", | ||
| "joshbranham", | ||
| "bmeng", | ||
| "ravitri" | ||
| ] | ||
| } | ||
| } |
34 changes: 34 additions & 0 deletions
34
ci-operator/step-registry/rosa/operator/mc-e2e/rosa-operator-mc-e2e-workflow.yaml
This file contains hidden or 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,34 @@ | ||
| workflow: | ||
| as: rosa-operator-mc-e2e | ||
| steps: | ||
| env: | ||
| HOSTED_CP: "true" | ||
| CLUSTER_SECTOR: rosa-e2e | ||
| ENABLE_BILLING_ACCOUNT: "yes" | ||
| OCM_LOGIN_ENV: staging | ||
| CHANNEL_GROUP: stable | ||
| REPLICAS: "3" | ||
| pre: | ||
| - chain: rosa-aws-sts-hcp-provision | ||
| - ref: rosa-cluster-wait-ready-hosted-cp | ||
| - ref: rosa-cluster-credentials-hypershift-mgmt | ||
| - ref: rosa-operator-mc-e2e-setup | ||
| test: | ||
| - ref: rosa-operator-e2e | ||
| post: | ||
| - chain: rosa-cluster-deprovision | ||
| best_effort: true | ||
| - chain: rosa-sts-oidc-config-delete | ||
| best_effort: true | ||
| - ref: rosa-e2e-cleanup-vpc | ||
| best_effort: true | ||
| - ref: aws-deprovision-stacks | ||
| best_effort: true | ||
| documentation: |- | ||
| Provisions an HCP on a CI sector, fetches the Management Cluster | ||
| kubeconfig, runs operator e2e tests against the MC, then deprovisions. | ||
| Used for testing MC-resident operator code paths (HCP reconcilers, | ||
| synthetic monitoring probes, VPC endpoint management). | ||
|
|
||
| The operator is NOT installed or cleaned up. It is fleet-managed via | ||
| MCC/PKO on the MC. Tests run against the existing deployment. |
10 changes: 10 additions & 0 deletions
10
ci-operator/step-registry/rosa/operator/mc-e2e/setup/OWNERS
This file contains hidden or 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,10 @@ | ||
| approvers: | ||
| - dustman9000 | ||
| - joshbranham | ||
| - bmeng | ||
| - ravitri | ||
| reviewers: | ||
| - dustman9000 | ||
| - joshbranham | ||
| - bmeng | ||
| - ravitri |
21 changes: 21 additions & 0 deletions
21
ci-operator/step-registry/rosa/operator/mc-e2e/setup/rosa-operator-mc-e2e-setup-commands.sh
This file contains hidden or 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,21 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -o nounset | ||
| set -o errexit | ||
| set -o pipefail | ||
|
|
||
| log(){ | ||
| echo -e "\033[1m$(date "+%d-%m-%YT%H:%M:%S") " "${*}\033[0m" >&2 | ||
| } | ||
|
|
||
| MC_KUBECONFIG="${SHARED_DIR}/hs-mc.kubeconfig" | ||
| if [[ ! -f "${MC_KUBECONFIG}" ]]; then | ||
| log "ERROR: MC kubeconfig not found at ${MC_KUBECONFIG}" | ||
| log "rosa-cluster-credentials-hypershift-mgmt may have failed" | ||
| exit 1 | ||
| fi | ||
|
|
||
| cp "${MC_KUBECONFIG}" "${SHARED_DIR}/kubeconfig" | ||
| log "MC kubeconfig set for operator e2e" | ||
| KUBECONFIG="${SHARED_DIR}/kubeconfig" oc whoami | ||
| log "Connected to MC: $(KUBECONFIG="${SHARED_DIR}/kubeconfig" oc whoami --show-server)" | ||
17 changes: 17 additions & 0 deletions
17
...tor/step-registry/rosa/operator/mc-e2e/setup/rosa-operator-mc-e2e-setup-ref.metadata.json
This file contains hidden or 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,17 @@ | ||
| { | ||
| "path": "rosa/operator/mc-e2e/setup/rosa-operator-mc-e2e-setup-ref.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "dustman9000", | ||
| "joshbranham", | ||
| "bmeng", | ||
| "ravitri" | ||
| ], | ||
| "reviewers": [ | ||
| "dustman9000", | ||
| "joshbranham", | ||
| "bmeng", | ||
| "ravitri" | ||
| ] | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
ci-operator/step-registry/rosa/operator/mc-e2e/setup/rosa-operator-mc-e2e-setup-ref.yaml
This file contains hidden or 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,14 @@ | ||
| ref: | ||
| as: rosa-operator-mc-e2e-setup | ||
| from: rosa-aws-cli | ||
| commands: rosa-operator-mc-e2e-setup-commands.sh | ||
| resources: | ||
| requests: | ||
| cpu: 100m | ||
| memory: 100Mi | ||
| timeout: 2m0s | ||
| documentation: |- | ||
| Bridges MC kubeconfig for operator e2e testing. Copies the MC | ||
| kubeconfig produced by rosa-cluster-credentials-hypershift-mgmt | ||
| (hs-mc.kubeconfig) to the standard kubeconfig path expected by | ||
| rosa-operator-e2e. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Do not print the Management Cluster API URL.
oc whoami --show-serverwrites the cluster URL to the CI log. Replace this message with a generic connection confirmation.Proposed fix
As per coding guidelines, step registry command scripts must not echo cluster URLs.
📝 Committable suggestion
🤖 Prompt for AI Agents
Source: Coding guidelines