-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove all pending endpoints from Kubeops #5249
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d0fd648
Migrate namespaces retrieval from Kubeops to Kubeapps APIs
ad13c98
Added missing copyright headers
df390ae
Merge branch 'main' into 4785-remove-kubeops
castelblanque f35c0df
Removed all calls to Kubeops
b56b1ac
Fixes and improvements
17f5bc8
Added tests for CanI
24da58a
Added test for frontend CanI
432e8fa
Run prettier
54cca89
Fixed linter issue
2e3294a
Merge branch 'main' into 4785-remove-kubeops-2
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -3565,6 +3565,69 @@ | |
] | ||
} | ||
}, | ||
"/plugins/resources/v1alpha1/c/{context.cluster}/can-i": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This API docs should also be (manually) copied to the |
||
"post": { | ||
"operationId": "ResourcesService_CanI", | ||
"responses": { | ||
"200": { | ||
"description": "A successful response.", | ||
"schema": { | ||
"$ref": "#/definitions/v1alpha1CanIResponse" | ||
} | ||
}, | ||
"401": { | ||
"description": "Returned when the user does not have permission to access the resource.", | ||
"schema": {} | ||
}, | ||
"default": { | ||
"description": "An unexpected error response.", | ||
"schema": { | ||
"$ref": "#/definitions/rpcStatus" | ||
} | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "context.cluster", | ||
"description": "Cluster\n\nA cluster name can be provided to target a specific cluster if multiple\nclusters are configured, otherwise all clusters will be assumed.", | ||
"in": "path", | ||
"required": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "context.namespace", | ||
"description": "Namespace. A namespace must be provided if the context of the operation is for a resource\nor resources in a particular namespace.\nFor requests to list items, not including a namespace here implies that the context\nfor the request is everything the requesting user can read, though the result can\nbe filtered by any filtering options of the request. Plugins may choose to return\nUnimplemented for some queries for which we do not yet have a need.", | ||
"in": "query", | ||
"required": false, | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "group", | ||
"description": "Group API Group of the Resource. \"*\" means all.\n+optional.", | ||
"in": "query", | ||
"required": false, | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "resource", | ||
"description": "Resource is one of the existing resource types. \"*\" means all.\n+optional.", | ||
"in": "query", | ||
"required": false, | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "verb", | ||
"description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.\n+optional.", | ||
"in": "query", | ||
"required": false, | ||
"type": "string" | ||
} | ||
], | ||
"tags": [ | ||
"ResourcesService" | ||
] | ||
} | ||
}, | ||
"/plugins/resources/v1alpha1/c/{context.cluster}/ns": { | ||
"post": { | ||
"operationId": "ResourcesService_CreateNamespace", | ||
|
@@ -4160,6 +4223,18 @@ | |
"description": "An AvailablePackageSummary provides a summary of a package available for installation\nuseful when aggregating many available packages.", | ||
"title": "AvailablePackageSummary" | ||
}, | ||
"v1alpha1CanIResponse": { | ||
"type": "object", | ||
"properties": { | ||
"allowed": { | ||
"type": "boolean", | ||
"description": "True if operation is allowed", | ||
"title": "allowed" | ||
} | ||
}, | ||
"description": "Response for CanI operation", | ||
"title": "CanIResponse" | ||
}, | ||
"v1alpha1CheckNamespaceExistsResponse": { | ||
"type": "object", | ||
"properties": { | ||
|
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed for retrieving operators logos