-
Notifications
You must be signed in to change notification settings - Fork 13
fix: resolve first-time deployment reliability issues #53
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
Merged
openshift-merge-bot
merged 10 commits into
openshift-eng:main
from
agullon:NO-JIRA-fix-first-time-deployment-issues
Mar 16, 2026
+77
−4
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
328d618
NO-JIRA: fix: replace timeout command with AWS CLI built-in waiter
agullon a5dd376
NO-JIRA: fix: use portable lowercase conversion in redeploy script
agullon b458662
NO-JIRA: fix: enable CRB repository on AWS RHUI instances
agullon 30a1f81
NO-JIRA: fix: make OCP project handler resilient to missing kubeconfig
agullon 3eeb854
NO-JIRA: fix: add pre-flight validation for CI registry credentials
agullon fe13899
Revert "NO-JIRA: fix: replace timeout command with AWS CLI built-in w…
agullon 063ea37
NO-JIRA: fix: add portability comment for tr lowercase conversion
agullon 5dc337a
NO-JIRA: fix: fail explicitly on CRB repo enablement failure
agullon 05440bb
NO-JIRA: fix: check kubeconfig existence before setting OCP project
agullon 758b473
NO-JIRA: fix: wrap pull-secret parsing in block/rescue
agullon 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
26 changes: 24 additions & 2 deletions
26
deploy/openshift-clusters/roles/dev-scripts/install-dev/handlers/main.yml
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 |
|---|---|---|
| @@ -1,3 +1,25 @@ | ||
| --- | ||
| - name: Set OCP project | ||
| command: oc --kubeconfig="{{kubeconfig_path}}" project openshift-machine-api | ||
| - name: Check kubeconfig exists for OCP project | ||
| stat: | ||
| path: "{{ kubeconfig_path }}" | ||
| register: kubeconfig_stat | ||
| when: kubeconfig_path is defined | ||
| listen: Set OCP project | ||
|
|
||
| - name: Run oc project | ||
| command: oc --kubeconfig="{{ kubeconfig_path }}" project openshift-machine-api | ||
| when: | ||
| - kubeconfig_path is defined | ||
| - kubeconfig_stat.stat.exists | default(false) | ||
| changed_when: false | ||
| listen: Set OCP project | ||
|
|
||
| - name: Warn about missing kubeconfig | ||
| debug: | ||
| msg: >- | ||
| Could not set OCP project: kubeconfig not found at '{{ kubeconfig_path }}'. | ||
| The cluster may not have been deployed yet. | ||
| when: | ||
| - kubeconfig_path is defined | ||
| - not (kubeconfig_stat.stat.exists | default(false)) | ||
| listen: Set OCP project | ||
32 changes: 32 additions & 0 deletions
32
deploy/openshift-clusters/roles/dev-scripts/install-dev/tasks/config.yml
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
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.
Uh oh!
There was an error while loading. Please reload this page.