-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2319 from mturley/548-deploy-model-403-error
Assert edit permissions on appropriate mutations in namespaceUtils, fix promise logic when deploying a model or adding a model server, show inner error messages from the backend when present
- Loading branch information
Showing
7 changed files
with
328 additions
and
81 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { genUID } from '~/__mocks__/mockUtils'; | ||
import { ServiceAccountKind } from '~/k8sTypes'; | ||
|
||
type MockResourceConfigType = { | ||
name?: string; | ||
namespace?: string; | ||
}; | ||
|
||
export const mockServiceAccountK8sResource = ({ | ||
name = 'test-model-sa', | ||
namespace = 'test-project', | ||
}: MockResourceConfigType): ServiceAccountKind => ({ | ||
kind: 'ServiceAccount', | ||
apiVersion: 'v1', | ||
metadata: { | ||
name, | ||
namespace, | ||
uid: genUID('serviceaccount'), | ||
creationTimestamp: '2023-02-14T21:43:59Z', | ||
}, | ||
}); |
This file contains 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
Oops, something went wrong.