Kind
ClusterEphemeralReport
Group
reports.kyverno.io
Version
v1
apiVersion: reports.kyverno.io/v1 kind: ClusterEphemeralReport metadata: name: example
View raw schema
apiVersion string
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind string
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata object
spec object required
owner object required
Owner is a reference to the report owner (e.g. a Deployment, Namespace, or Node)
apiVersion string required
API version of the referent.
blockOwnerDeletion boolean
If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
controller boolean
If true, this reference points to the managing controller.
kind string required
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
name string required
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
uid string required
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
results []object
PolicyReportResult provides result details
category string
Category indicates policy category
message string
Description is a short user friendly message for the policy rule
policy string required
Policy is the name or identifier of the policy
properties object
Properties provides additional information for the policy rule
resourceSelector object
ResourceSelector is an optional label selector for checked Kubernetes resources. For example, a policy result may apply to all pods that match a label. Either a Subject or a ResourceSelector can be specified. If neither are provided, the result is assumed to be for the policy report scope.
matchExpressions []object
matchExpressions is a list of label selector requirements. The requirements are ANDed.
key string required
key is the label key that the selector applies to.
operator string required
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values []string
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
matchLabels object
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
resources []object
Subjects is an optional reference to the checked Kubernetes resources
apiVersion string
API version of the referent.
fieldPath string
If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.
kind string
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
name string
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
namespace string
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
resourceVersion string
Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
uid string
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
result string
Result indicates the outcome of the policy rule execution
enum: pass, fail, warn, error, skip
rule string
Rule is the name or identifier of the rule within the policy
scored boolean
Scored indicates if this result is scored
severity string
Severity indicates policy check result criticality
enum: critical, high, low, medium, info
source string
Source is an identifier for the policy engine that manages this report If the Source is specified at this level, it will override the Source field set at the Report level
timestamp object
Timestamp indicates the time the result was found
nanos integer required
Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.
format: int32
seconds integer required
Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
format: int64
summary object
PolicyReportSummary provides a summary of results
error integer
Error provides the count of policies that could not be evaluated
fail integer
Fail provides the count of policies whose requirements were not met
pass integer
Pass provides the count of policies whose requirements were met
skip integer
Skip indicates the count of policies that were not selected for evaluation
warn integer
Warn provides the count of non-scored policies whose requirements were not met
Copied!