You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/kubernetes/views/security-constraint/constraintController.js

26 lines
737 B

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();
},
]);