IP Library › Granted Patent US 11,550,615
Granted Patent B2
US 11,550,615 · App. 17/068,949 · Granted Jan 10, 2023

Kubernetes resource policy enforcement

Inventors: Lior Okman (Tzoran-Kadima, IL); Ido Itzkovich (Herzliya, IL)
Assignee: SAP SE
G06F9/45558G06F9/50
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,550,615
App. No.
17/068,949
Granted
Jan 10, 2023
Kind
B2
Abstract

Methods, systems, and computer-readable storage media for executing, by a policy controller, a policy custom resource that defines a policy to be applied to target resources within a cluster of a cloud computing platform, the policy custom resource including a policy target defining parameters for identifying a resource as a target resource, a policy condition defining conditions of a target resource that are to be evaluated, and a policy action defining actions that are to be executed in response to the conditions evaluating to true, receiving, by the policy controller, a set of target resources based on the policy target of the policy custom resource, evaluating, by the policy controller and for each target resource in the set of target resources, the policy condition, and in response to the policy condition returning as true for a target resource, executing the policy action for the target resource.

Claims (34)

1. A computer-implemented method for managing a plurality of resources in a container orchestration system, the method being executed by one or more processors and comprising:

executing, by a policy controller, a policy custom resource, the policy custom resource defining a policy that is to be applied to one or more target resources within a cluster of a cloud computing platform, the policy custom resource comprising a policy target defining one or more parameters for identifying a resource as a target resource, a policy condition defining one or more conditions of a target resource that are to be evaluated, and a policy action defining one or more actions that are to be executed in response to the one or more conditions evaluating to true;

receiving, by the policy controller, a set of target resources based on the policy target of the policy custom resource;

evaluating, by the policy controller and for each target resource in the set of target resources, the policy condition; and

in response to the policy condition returning as true for a target resource, executing the policy action for the target resource and executing a patch action to add a label to the target resource representing a state of the target resource after execution of the policy action.

2. The method of claim 1 , wherein the policy custom resource and the set of target resources are each received through an application programming interface (API) of the container orchestration system.

3. The method of claim 1 , wherein the policy action of the policy custom resource comprises one or more of a modify action, a notification action, and a delete action.

4. The method of claim 1 , wherein a resource of the cluster is included in the set of target resources in response to at least a type associated with the resource being defined in the policy target.

5. The method of claim 1 , wherein the policy condition of the policy custom resource comprises a call to one or more functions executed by the policy controller and a binary expression tree.

6. The method of claim 1 , further comprising executing at least a portion of the policy custom resource for testing in response to the policy custom resource comprising an annotation representative of test execution.

7. The method of claim 1 , wherein the set of target resources comprises a set of identifiers, each identifier uniquely identifying a respective resource within the cluster.

8. A non-transitory computer-readable storage medium coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations for managing a plurality of resources in a container orchestration system, the operations comprising:

executing, by a policy controller, a policy custom resource, the policy custom resource defining a policy that is to be applied to one or more target resources within a cluster of a cloud computing platform, the policy custom resource comprising a policy target defining one or more parameters for identifying a resource as a target resource, a policy condition defining one or more conditions of a target resource that are to be evaluated, and a policy action defining one or more actions that are to be executed in response to the one or more conditions evaluating to true;

receiving, by the policy controller, a set of target resources based on the policy target of the policy custom resource;

evaluating, by the policy controller and for each target resource in the set of target resources, the policy condition; and

in response to the policy condition returning as true for a target resource, executing the policy action for the target resource and executing a patch action to add a label to the target resource representing a state of the target resource after execution of the policy action.

9. The computer-readable storage medium of claim 8 , wherein the policy custom resource and the set of target resources are each received through an application programming interface (API) of the container orchestration system.

10. The computer-readable storage medium of claim 8 , wherein the policy action of the policy custom resource comprises one or more of a modify action, a notification action, and a delete action.

11. The computer-readable storage medium of claim 8 , wherein a resource of the cluster is included in the set of target resources in response to at least a type associated with the resource being defined in the policy target.

12. The computer-readable storage medium of claim 8 , wherein the policy condition of the policy custom resource comprises a call to one or more functions executed by the policy controller and a binary expression tree.

13. The computer-readable storage medium of claim 8 , wherein operations further comprise executing at least a portion of the policy custom resource for testing in response to the policy custom resource comprising an annotation representative of test execution.

14. The computer-readable storage medium of claim 8 , wherein the set of target resources comprises a set of identifiers, each identifier uniquely identifying a respective resource within the cluster.

15. A system, comprising:

a computing device; and

a computer-readable storage device coupled to the computing device and having instructions stored thereon which, when executed by the computing device, cause the computing device to perform operations for managing a plurality of resources in a container orchestration system, the operations comprising:

executing, by a policy controller, a policy custom resource, the policy custom resource defining a policy that is to be applied to one or more target resources within a cluster of a cloud computing platform, the policy custom resource comprising a policy target defining one or more parameters for identifying a resource as a target resource, a policy condition defining one or more conditions of a target resource that are to be evaluated, and a policy action defining one or more actions that are to be executed in response to the one or more conditions evaluating to true;

receiving, by the policy controller, a set of target resources based on the policy target of the policy custom resource;

evaluating, by the policy controller and for each target resource in the set of target resources, the policy condition; and

in response to the policy condition returning as true for a target resource, executing the policy action for the target resource and executing a patch action to add a label to the target resource representing a state of the target resource after execution of the policy action.

16. The system of claim 15 , wherein the policy custom resource and the set of target resources are each received through an application programming interface (API) of the container orchestration system.

17. The system of claim 15 , wherein the policy action of the policy custom resource comprises one or more of a modify action, a notification action, and a delete action.

18. The system of claim 15 , wherein a resource of the cluster is included in the set of target resources in response to at least a type associated with the resource being defined in the policy target.

19. The system of claim 15 , wherein the policy condition of the policy custom resource comprises a call to one or more functions executed by the policy controller and a binary expression tree.

20. The system of claim 15 , wherein operations further comprise executing at least a portion of the policy custom resource for testing in response to the policy custom resource comprising an annotation representative of test execution.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 13, 2020
From: OKMAN, LIOR; ITZKOVICH, IDO
To: SAP SE
Reel/Frame 054035/0388 →
Continuity (1)
Related Publication 20220114003A1 · Apr 14, 2022
Cited By (1)
US 12,693,841