From 70d55d99e2a2a6b82438dc291f2fd1792010f451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCttler?= Date: Mon, 8 Aug 2022 17:29:25 +0200 Subject: [PATCH] typo "come" --> "some" --- docs/pages/using-policies/basics.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/using-policies/basics.mdx b/docs/pages/using-policies/basics.mdx index 26b99d68..14f9b792 100644 --- a/docs/pages/using-policies/basics.mdx +++ b/docs/pages/using-policies/basics.mdx @@ -23,7 +23,7 @@ Policies are very powerful and can block/deny `kubectl` requests for example, so ## `JsPolicy` YAML files -If someone shares a standalone `JsPolicy` object as a YAML file with you (or you created the file yourself), then you will likely find the `spec.javascript` field showing come JavaScript code embedded inside the YAML. Optionally, there may also be the `spec.dependencies` field filled with a list of `npm` packages that are used within this policy. +If someone shares a standalone `JsPolicy` object as a YAML file with you (or you created the file yourself), then you will likely find the `spec.javascript` field showing some JavaScript code embedded inside the YAML. Optionally, there may also be the `spec.dependencies` field filled with a list of `npm` packages that are used within this policy. To apply such a policy in your cluster, simply create the `JsPolicy` object in your cluster: ```bash @@ -84,4 +84,4 @@ To instantiate this policy, just apply it to your cluster: ```bash kubectl apply -f policy.yaml ``` -As with any `JsPolicy` object that provides the `spec.javascript` field, jsPolicy will generate a corresponding `JsPolicyBundle`. This bundle will also contain the code for the `disallowNamespaces` function since this function is imported in our policy code and will be directly embedded so that jsPolicy does not need to download any packages later on when executing this policy. This makes the execution of policies extremly fast even if they are using external packages. \ No newline at end of file +As with any `JsPolicy` object that provides the `spec.javascript` field, jsPolicy will generate a corresponding `JsPolicyBundle`. This bundle will also contain the code for the `disallowNamespaces` function since this function is imported in our policy code and will be directly embedded so that jsPolicy does not need to download any packages later on when executing this policy. This makes the execution of policies extremly fast even if they are using external packages.