Skip to content

Commit

Permalink
Changes on request checkout component
Browse files Browse the repository at this point in the history
- wrap validation higher
- add a custom row for kube resources
- add kube resource unsupported check
  • Loading branch information
kimlisa committed Oct 9, 2024
1 parent 56699df commit b386cb2
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 134 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,14 @@ export const Success = () => (
);

const baseProps: RequestCheckoutWithSliderProps = {
fetchKubeNamespaces: async () => [
{ value: 'namespace1', label: 'namespace1' },
{ value: 'namespace2', label: 'namespace2' },
{ value: 'namespace3', label: 'namespace3' },
{ value: 'namespace4', label: 'namespace4' },
],
allowedKubeSubresourceKinds: ['*'],
bulkToggleKubeResources: () => null,
createAttempt: { status: '' },
fetchResourceRequestRolesAttempt: { status: '' },
isResourceRequest: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,7 @@ const props: RequestCheckoutWithSliderProps = {
dryRunResponse: null,
startTime: null,
onStartTimeChange: () => null,
fetchKubeNamespaces: () => null,
bulkToggleKubeResources: () => null,
allowedKubeSubresourceKinds: [],
};
Loading

0 comments on commit b386cb2

Please sign in to comment.