Repository navigation
[GPTEINFRA-18402] Check ArgoCD repo access in ocp4_workload_field_content - #196
Merged
Merged
Conversation
After the Application is accepted, poll it for up to 30 seconds until ArgoCD either reports a sync status or a ComparisonError or InvalidSpecError condition. On an error, add a warning with the ArgoCD message to user info, so a typo in the repo URL or revision, a bad token, or a broken chart is visible in the order details. The provision never fails on this check, and the role still does not wait for sync or health. Retries and delay are set in defaults. The README and defaults comments describe the new step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Write field_content_gitops_repo_url, field_content_gitops_repo_revision and field_content_argocd_app_namespace to user data, so catalog info messages can show the repo and link to the ArgoCD application. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The GitOps operator creates the default AppProject some seconds after the ArgoCD instance. An Application created before that gets an InvalidSpecError, and the repository check then reports a false "project default which does not exist" warning in user info, even though ArgoCD syncs the Application once the project exists. Wait up to five minutes for the default AppProject before creating the Application. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wkulhanek
approved these changes
Nov 3, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Makes field content repo problems (typo in URL or revision, bad token, broken chart) visible in the order details instead of failing silently in ArgoCD. The provision never fails on this check.
Changes
defaultAppProject before creating the Application. This removes a false "project default which does not exist" warning.ComparisonErrororInvalidSpecError, add a warning with the ArgoCD message to user info. A sync status (Synced/OutOfSync) means OK. No sync or health wait.field_content_gitops_repo_url,field_content_gitops_repo_revisionandfield_content_argocd_app_namespaceto user data for catalog info messages.Related: rhpds/agnosticv#28865.
🤖 Generated with Claude Code