Add namespace label to argo rollouts in kubernetes (#25467)
* Create fixture for rollouts Since rollouts have customized support, having a fixture for them can help in maintaining their rendering. Signed-off-by: ilias <mail@ilias.xyz> * Show namespace on Argo Rollout drawers Signed-off-by: ilias <mail@ilias.xyz> * Add changeset Signed-off-by: ilias <mail@ilias.xyz> * Check namespace shows up on rollouts Signed-off-by: ilias <mail@ilias.xyz> --------- Signed-off-by: ilias <mail@ilias.xyz>
This commit is contained in:
@@ -33,6 +33,7 @@ import fixture1 from '../src/__fixtures__/1-deployments.json';
|
||||
import fixture2 from '../src/__fixtures__/2-deployments.json';
|
||||
import fixture3 from '../src/__fixtures__/1-cronjobs.json';
|
||||
import fixture4 from '../src/__fixtures__/2-cronjobs.json';
|
||||
import fixture5 from '../src/__fixtures__/1-rollouts.json';
|
||||
import { TestApiProvider } from '@backstage/test-utils';
|
||||
|
||||
const mockEntity: Entity = {
|
||||
@@ -186,5 +187,18 @@ createDevApp()
|
||||
</TestApiProvider>
|
||||
),
|
||||
})
|
||||
.addPage({
|
||||
path: '/fixture-5',
|
||||
title: 'Fixture 5',
|
||||
element: (
|
||||
<TestApiProvider
|
||||
apis={[[kubernetesApiRef, new MockKubernetesClient(fixture5)]]}
|
||||
>
|
||||
<EntityProvider entity={mockEntity}>
|
||||
<EntityKubernetesContent />
|
||||
</EntityProvider>
|
||||
</TestApiProvider>
|
||||
),
|
||||
})
|
||||
.registerPlugin(kubernetesPlugin)
|
||||
.render();
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user