You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/en/docs/monitoring/opentelemetry.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ spec:
97
97
name: collector-config
98
98
```
99
99
100
-
This references the collector defined in the `configmap.yaml` above. Here we are using a Deployemtn with just a single replica. Ideally, a DaemonSet is preferred. Check the [OpenTelemetry documentation](https://opentelemetry.io/docs/instrumentation/go/getting-started) for more deployment strategies.
100
+
This references the collector defined in the `configmap.yaml` above. Here we are using a Deployement with just a single replica. Ideally, a DaemonSet is preferred. Check the [OpenTelemetry documentation](https://opentelemetry.io/docs/instrumentation/go/getting-started) for more deployment strategies.
Copy file name to clipboardexpand all lines: content/en/docs/writing-policies/jmespath.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -2053,7 +2053,7 @@ spec:
2053
2053
<details><summary>Expand</summary>
2054
2054
<p>
2055
2055
2056
-
The `sum()` filter takes an array of numbers, durations, or quantities and sums them together. This is a customized version of `sum()` found in the [upstream JMESPath specification](https://jmespath.org/specification.html#sum) but augmented to support inputs common to Kubernetes workloads, specifically durations and quantities. `sum()` is similar to `add()` with the difference that `sum()` accepts an array as an input while `add()` does not. Inputs must be of a homogenous type. For example, the query `echo '{"input":['2Ki','5Gi','8Mi']}' | kyverno jp query "sum(input)"` results in the value `"5251074Ki"`. The query `echo '{"input":['2h','50s','90s']}' | kyverno jp query "sum(input)"` results in the value `"2h2m20s"`. And the query `echo '{"input":[6,3,8]}' | kyverno jp query "sum(input)"` results in the value of `17`.
2056
+
The `sum()` filter takes an array of numbers, durations, or quantities and sums them together. This is a customized version of `sum()` found in the [upstream JMESPath specification](https://jmespath.org/specification.html#sum) but augmented to support inputs common to Kubernetes workloads, specifically durations and quantities. `sum()` is similar to `add()` with the difference that `sum()` accepts an array as an input while `add()` does not. This `sum()` function requires at least one element in the array. Inputs must be of a homogenous type. For example, the query `echo '{"input":['2Ki','5Gi','8Mi']}' | kyverno jp query "sum(input)"` results in the value `"5251074Ki"`. The query `echo '{"input":['2h','50s','90s']}' | kyverno jp query "sum(input)"` results in the value `"2h2m20s"`. And the query `echo '{"input":[6,3,8]}' | kyverno jp query "sum(input)"` results in the value of `17`.
2057
2057
2058
2058
Arithmetic filters like `sum()` currently accept inputs in the following formats.
Copy file name to clipboardexpand all lines: content/en/docs/writing-policies/tips.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ These are some tips and tricks you can use when putting together your Kyverno po
40
40
Pattern specifies an overlay-style pattern used to check resources.
41
41
```
42
42
43
-
* Use `kubectl get kyverno -A` to show all the Kyverno Custom Resources present in your cluster. This will return resources such as policies of various types, policy reports, and intermediary resources used internally by Kyverno.
43
+
* Use `kubectl get kyverno -A`or `kubectl get crd | grep kyverno`to show all the Kyverno Custom Resources present in your cluster. This will return resources such as policies of various types, policy reports, and intermediary resources used internally by Kyverno.
44
44
* When using VS Code, because of the OpenAPIV3 schema Kyverno supports, you can make use of this integration to assist in writing policy by getting field hints and describing elements.
45
45
* Make use of the [Kyverno CLI](../kyverno-cli/) to test policies out in advance.
46
46
* Organize your policies in a way which is meaningful to you, your organization, and your Kubernetes cluster design keeping in mind how they are processed. Each policy is processed in an idempotent manner while rules within policies are executed serially. When needing to control processing order, put highly-related rules in the same policy and use the `applyRules` field.
Copy file name to clipboardexpand all lines: content/en/policies/_index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title = "Policies"
4
4
5
5
# Sample Policies
6
6
7
-
The policies here are maintained by the community and are as samples that demontrate the power and flexibility of Kyverno. To use in your environment, make sure you test with the right versions of Kyverno and Kubernetes, and optimize for your use case.
7
+
The policies here are maintained by the community and are as samples that demonstrate the power and flexibility of Kyverno. To use in your environment, make sure you test with the right versions of Kyverno and Kubernetes, and optimize for your use case.
8
8
9
9
Select the **Policy Type** and **Policy Category** on the left navigation, or use the search, to find the policy you need.
Copy file name to clipboardexpand all lines: content/en/policies/kasten/kasten-minimum-retention/kasten-minimum-retention.md
-1
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,6 @@ metadata:
26
26
policies.kyverno.io/description: >-
27
27
Example Kyverno policy to enforce common compliance retention standards by modifying Kasten Policy backup retention settings. Based on regulation/compliance standard requirements, uncomment (1) of the desired GFS retention schedules to mutate existing and future Kasten Policies. Alternatively, this policy can be used to reduce retention lengths to enforce cost optimization. NOTE: This example only applies to Kasten Policies with an '@hourly' frequency. Refer to Kasten documentation for Policy API specification if modifications are necessary: https://docs.kasten.io/latest/api/policies.html#policy-api-type
0 commit comments