Revert kubernetes create and read permissions to singular proxy permission, reword changeset, add permission parameter to install doc

Signed-off-by: Ruben Vallejo <rvallejo@vmware.com>
This commit is contained in:
Ruben Vallejo
2023-02-09 12:12:07 -05:00
parent 804f6d16b0
commit a711ad54da
5 changed files with 10 additions and 27 deletions
+1 -2
View File
@@ -23,7 +23,6 @@
export * from './types';
export * from './catalog-entity-constants';
export {
kubernetesProxyReadPermission,
kubernetesProxyCreatePermission,
kubernetesProxyPermission,
kubernetesClusterPermissions,
} from './permissions';
+5 -16
View File
@@ -16,27 +16,16 @@
import { createPermission } from '@backstage/plugin-permission-common';
/** This permission is used to authorize `read` actions that involve using the kubernetes Proxy Endpoint /proxy
/** This permission is used to check access to the proxy endpoint
* @alpha
*/
export const kubernetesProxyReadPermission = createPermission({
name: 'kubernetes.proxy.read',
attributes: { action: 'read' },
});
/** This permission is used to authorize `create` actions that involve using the kubernetes Proxy Endpoint /proxy
* @alpha
*/
export const kubernetesProxyCreatePermission = createPermission({
name: 'kubernetes.proxy.create',
attributes: { action: 'create' },
export const kubernetesProxyPermission = createPermission({
name: 'kubernetes.proxy',
attributes: {},
});
/**
* List of all cluster permissions.
* @alpha
*/
export const kubernetesClusterPermissions = [
kubernetesProxyReadPermission,
kubernetesProxyCreatePermission,
];
export const kubernetesClusterPermissions = [kubernetesProxyPermission];