1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 13:59:40 +02:00
portainer/app/kubernetes/views/security-constraint/constraintController.js
Hao Zhang 912250732a
feat(psp): kubernetes pod security policy EE-1577 (#6553)
* docs(github): fix slack link [EE-2438] (#6541)

Co-authored-by: Chaim Lev-Ari <chiptus@users.noreply.github.com>
Co-authored-by: cheloRydel <marcelorydel26@gmail.com>
Co-authored-by: Chao Geng <93526589+chaogeng77977@users.noreply.github.com>
Co-authored-by: chaogeng77977 <chao.geng@portainer.io>
2022-06-20 15:48:41 +08:00

25 lines
737 B
JavaScript

import angular from 'angular';
import { FeatureId } from 'Portainer/feature-flags/enums';
angular.module('portainer.kubernetes').controller('KubernetesSecurityConstraintController', [
'$scope',
'EndpointProvider',
'EndpointService',
function ($scope, EndpointProvider, EndpointService) {
$scope.limitedFeaturePodSecurityPolicy = FeatureId.POD_SECURITY_POLICY_CONSTRAINT;
$scope.state = {
viewReady: false,
actionInProgress: false,
};
async function initView() {
const endpointID = EndpointProvider.endpointID();
EndpointService.endpoint(endpointID).then((endpoint) => {
$scope.endpoint = endpoint;
$scope.state.viewReady = true;
});
}
initView();
},
]);