Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/upset-clowns-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openchoreo/backstage-plugin-backend': patch
---

Fix Deploy UI showing Failed for ProjectReleaseBinding during namespace provisioning
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ describe('deriveBindingStatus', () => {
expect(deriveBindingStatus(binding)).toBe('NotReady');
});

it('returns NotReady for NamespaceProgressing reason', () => {
const binding = makeBinding([
{
type: 'Ready',
status: 'False',
reason: 'NamespaceProgressing',
message: 'Namespace is still being provisioned',
},
]);
expect(deriveBindingStatus(binding)).toBe('NotReady');
});
it('returns NotReady for JobRunning reason', () => {
const binding = makeBinding([
{ type: 'Ready', status: 'False', reason: 'JobRunning' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const PROGRESSING_REASONS = [
// plane seeds it with the project's latest release once one exists, so a
// just-created binding sits here briefly. Pending, not an error.
'ProjectReleaseNotSet',
// ProjectReleaseBinding's DataPlane Namespace is still being created or has
// not yet been observed as ready. Pending, not an error.
'NamespaceProgressing',
Comment on lines +22 to +24
] as const;

/** Reasons that represent an intentional non-deployed state, not an error. */
Expand Down
Loading