2020-06-05 13:51:22 -07:00
apiVersion : v1
kind : Namespace
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : kyverno
---
2020-11-11 15:09:07 -08:00
apiVersion : apiextensions.k8s.io/v1
2020-06-05 13:51:22 -07:00
kind : CustomResourceDefinition
metadata :
2020-11-12 19:48:39 -08:00
annotations :
controller-gen.kubebuilder.io/version : v0.4.0
creationTimestamp : null
2020-06-05 13:51:22 -07:00
name : clusterpolicies.kyverno.io
spec :
group : kyverno.io
names :
kind : ClusterPolicy
2020-11-12 19:48:39 -08:00
listKind : ClusterPolicyList
2020-06-05 13:51:22 -07:00
plural : clusterpolicies
shortNames :
- cpol
singular : clusterpolicy
scope : Cluster
2020-11-12 19:48:39 -08:00
versions :
- additionalPrinterColumns :
- jsonPath : .spec.background
name : Background
type : string
- jsonPath : .spec.validationFailureAction
2020-11-30 11:22:20 -08:00
name : Action
2020-11-12 19:48:39 -08:00
type : string
name : v1
schema :
openAPIV3Schema :
2021-07-29 01:29:53 +05:30
description : ClusterPolicy declares validation, mutation, and generation behaviors
for matching resources.
2020-11-12 19:48:39 -08:00
properties :
apiVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-12 19:48:39 -08:00
type : string
kind :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-12 19:48:39 -08:00
type : string
metadata :
type : object
spec :
2020-11-16 11:47:16 -08:00
description : Spec declares policy behaviors.
2020-11-12 19:48:39 -08:00
properties :
background :
2021-07-29 01:29:53 +05:30
description : Background controls if rules are applied to existing
resources during a background scan. Optional. Default value is "true".
The value must be set to "false" if the policy rule uses variables
that are only available in the admission review request (e.g. user
name).
2020-11-12 19:48:39 -08:00
type : boolean
rules :
2021-07-29 01:29:53 +05:30
description : Rules is a list of Rule instances. A Policy contains
multiple rules and each rule can validate, mutate, or generate resources.
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : Rule defines a validation, mutation, or generation
control for matching resources. Each rules contains a match declaration
to select resources, and an optional exclude declaration to specify
which resources to exclude.
2020-11-12 19:48:39 -08:00
properties :
context :
2021-07-29 01:29:53 +05:30
description : Context defines variables and data sources that
can be used during rule execution.
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : ContextEntry adds variables and data sources
to a rule Context. Either a ConfigMap reference or a APILookup
must be provided.
2020-06-05 13:51:22 -07:00
properties :
2021-02-01 12:59:13 -08:00
apiCall :
2021-07-29 01:29:53 +05:30
description : APICall defines an HTTP request to the Kubernetes
API server. The JSON data retrieved is stored in the
context.
2021-02-01 12:59:13 -08:00
properties :
jmesPath :
2021-07-29 01:29:53 +05:30
description : JMESPath is an optional JSON Match Expression
that can be used to transform the JSON response
returned from the API server. For example a JMESPath
of "items | length(@)" applied to the API server
response to the URLPath "/apis/apps/v1/deployments"
will return the total count of deployments across
all namespaces.
2021-02-01 12:59:13 -08:00
type : string
urlPath :
2021-07-29 01:29:53 +05:30
description : URLPath is the URL path to be used in
the HTTP GET request to the Kubernetes API server
(e.g. "/api/v1/namespaces" or "/apis/apps/v1/deployments").
The format required is the same format used by the
`kubectl get --raw` command.
2021-02-01 12:59:13 -08:00
type : string
required :
- urlPath
type : object
2020-11-12 19:48:39 -08:00
configMap :
2021-02-01 12:59:13 -08:00
description : ConfigMap is the ConfigMap reference.
2020-11-12 19:48:39 -08:00
properties :
name :
2021-02-01 12:59:13 -08:00
description : Name is the ConfigMap name.
2020-11-12 19:48:39 -08:00
type : string
namespace :
2021-02-01 12:59:13 -08:00
description : Namespace is the ConfigMap namespace.
2020-11-12 19:48:39 -08:00
type : string
2021-02-01 12:59:13 -08:00
required :
- name
2020-08-24 12:27:16 -07:00
type : object
2020-06-05 13:51:22 -07:00
name :
2021-02-01 12:59:13 -08:00
description : Name is the variable name.
2020-06-05 13:51:22 -07:00
type : string
type : object
2020-11-12 19:48:39 -08:00
type : array
exclude :
2021-07-29 01:29:53 +05:30
description : ExcludeResources defines when this policy rule
should not be applied. The exclude criteria can include resource
information (e.g. kind, name, namespace, labels) and admission
review request information like the name or role.
2020-11-12 19:48:39 -08:00
properties :
2021-07-29 01:29:53 +05:30
all :
description : All allows specifying resources which will
be ANDed
items :
description : ResourceFilters allow users to "AND" or "OR"
between resources
properties :
clusterRoles :
description : ClusterRoles is the list of cluster-wide
role names for the user.
items :
type : string
type : array
resources :
description : ResourceDescription contains information
about the resource being created or modified.
properties :
annotations :
additionalProperties :
type : string
description : Annotations is a map of annotations
(key-value pairs of type string). Annotation
keys and values support the wildcard characters
"*" (matches zero or many characters) and "?"
(matches at least one character).
type : object
kinds :
description : Kinds is a list of resource kinds.
items :
type : string
type : array
name :
description : Name is the name of the resource.
The name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character).
type : string
names :
description : 'Names are the names of the resources.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character). NOTE : "Name" is being deprecated
in favor of "Names".'
items :
type : string
type : array
namespaceSelector :
description : 'NamespaceSelector is a label selector
for the resource namespace. Label keys and values
in `matchLabels` support the wildcard characters
`*` (matches zero or many characters) and `?`
(matches one character).Wildcards allows writing
label selectors like ["storage.k8s.io/*": "*"].
Note that using ["*" : "*"] matches any key
and value but does not match an empty label
set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
namespaces :
description : Namespaces is a list of namespaces
names. Each name supports wildcard characters
"*" (matches zero or many characters) and "?"
(at least one character).
items :
type : string
type : array
selector :
description : 'Selector is a label selector. Label
keys and values in `matchLabels` support the
wildcard characters `*` (matches zero or many
characters) and `?` (matches one character).
Wildcards allows writing label selectors like
[ "storage.k8s.io/*": "*" ] . Note that using ["*"
: "*" ] matches any key and value but does not
match an empty label set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
type : object
roles :
description : Roles is the list of namespaced role
names for the user.
items :
type : string
type : array
subjects :
description : Subjects is the list of subject names
like users, user groups, and service accounts.
items :
description : Subject contains a reference to the
object or user identities a role binding applies
to. This can either hold a direct API object
reference, or a value for non-objects such as
user and group names.
properties :
apiGroup :
description : APIGroup holds the API group of
the referenced subject. Defaults to "" for
ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io"
for User and Group subjects.
type : string
kind :
description : Kind of object being referenced.
Values defined by this API group are "User",
"Group" , and "ServiceAccount". If the Authorizer
does not recognized the kind value, the Authorizer
should report an error.
type : string
name :
description : Name of the object being referenced.
type : string
namespace :
description : Namespace of the referenced object. If
the object kind is non-namespace, such as
"User" or "Group", and this value is not empty
the Authorizer should report an error.
type : string
required :
- kind
- name
type : object
type : array
type : object
type : array
any :
description : Any allows specifying resources which will
be ORed
items :
description : ResourceFilters allow users to "AND" or "OR"
between resources
properties :
clusterRoles :
description : ClusterRoles is the list of cluster-wide
role names for the user.
items :
type : string
type : array
resources :
description : ResourceDescription contains information
about the resource being created or modified.
properties :
annotations :
additionalProperties :
type : string
description : Annotations is a map of annotations
(key-value pairs of type string). Annotation
keys and values support the wildcard characters
"*" (matches zero or many characters) and "?"
(matches at least one character).
type : object
kinds :
description : Kinds is a list of resource kinds.
items :
type : string
type : array
name :
description : Name is the name of the resource.
The name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character).
type : string
names :
description : 'Names are the names of the resources.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character). NOTE : "Name" is being deprecated
in favor of "Names".'
items :
type : string
type : array
namespaceSelector :
description : 'NamespaceSelector is a label selector
for the resource namespace. Label keys and values
in `matchLabels` support the wildcard characters
`*` (matches zero or many characters) and `?`
(matches one character).Wildcards allows writing
label selectors like ["storage.k8s.io/*": "*"].
Note that using ["*" : "*"] matches any key
and value but does not match an empty label
set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
namespaces :
description : Namespaces is a list of namespaces
names. Each name supports wildcard characters
"*" (matches zero or many characters) and "?"
(at least one character).
items :
type : string
type : array
selector :
description : 'Selector is a label selector. Label
keys and values in `matchLabels` support the
wildcard characters `*` (matches zero or many
characters) and `?` (matches one character).
Wildcards allows writing label selectors like
[ "storage.k8s.io/*": "*" ] . Note that using ["*"
: "*" ] matches any key and value but does not
match an empty label set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
type : object
roles :
description : Roles is the list of namespaced role
names for the user.
items :
type : string
type : array
subjects :
description : Subjects is the list of subject names
like users, user groups, and service accounts.
items :
description : Subject contains a reference to the
object or user identities a role binding applies
to. This can either hold a direct API object
reference, or a value for non-objects such as
user and group names.
properties :
apiGroup :
description : APIGroup holds the API group of
the referenced subject. Defaults to "" for
ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io"
for User and Group subjects.
type : string
kind :
description : Kind of object being referenced.
Values defined by this API group are "User",
"Group" , and "ServiceAccount". If the Authorizer
does not recognized the kind value, the Authorizer
should report an error.
type : string
name :
description : Name of the object being referenced.
type : string
namespace :
description : Namespace of the referenced object. If
the object kind is non-namespace, such as
"User" or "Group", and this value is not empty
the Authorizer should report an error.
type : string
required :
- kind
- name
type : object
type : array
type : object
type : array
2020-11-12 19:48:39 -08:00
clusterRoles :
2021-07-29 01:29:53 +05:30
description : ClusterRoles is the list of cluster-wide role
names for the user.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
resources :
2021-07-29 01:29:53 +05:30
description : ResourceDescription contains information about
the resource being created or modified.
2020-06-05 13:51:22 -07:00
properties :
2020-11-12 19:48:39 -08:00
annotations :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : Annotations is a map of annotations (key-value
pairs of type string). Annotation keys and values
support the wildcard characters "*" (matches zero
or many characters) and "?" (matches at least one
character).
2020-11-12 19:48:39 -08:00
type : object
kinds :
2020-11-15 22:47:55 -08:00
description : Kinds is a list of resource kinds.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
2020-06-05 13:51:22 -07:00
name :
2021-07-29 01:29:53 +05:30
description : Name is the name of the resource. The name
supports wildcard characters "*" (matches zero or
many characters) and "?" (at least one character).
2020-06-05 13:51:22 -07:00
type : string
2021-06-29 11:01:22 +05:30
names :
2021-07-29 01:29:53 +05:30
description : 'Names are the names of the resources.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one character).
NOTE : "Name" is being deprecated in favor of "Names".'
2021-06-29 11:01:22 +05:30
items :
type : string
type : array
2021-02-03 14:19:46 -08:00
namespaceSelector :
2021-07-29 01:29:53 +05:30
description : 'NamespaceSelector is a label selector
for the resource namespace. Label keys and values
in `matchLabels` support the wildcard characters `*`
(matches zero or many characters) and `?` (matches
one character).Wildcards allows writing label selectors
like ["storage.k8s.io/*": "*"]. Note that using ["*"
: "*" ] matches any key and value but does not match
an empty label set.'
2021-02-03 14:19:46 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label
selector requirements. The requirements are ANDed.
2021-02-03 14:19:46 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a
selector that contains values, a key, and an
operator that relates the key and values.
2021-02-03 14:19:46 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the
selector applies to.
2021-02-03 14:19:46 -08:00
type : string
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship
to a set of values. Valid operators are
In, NotIn, Exists and DoesNotExist.
2021-02-03 14:19:46 -08:00
type : string
values :
2021-07-29 01:29:53 +05:30
description : 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.
2021-02-03 14:19:46 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2021-02-03 14:19:46 -08:00
type : object
type : object
2020-11-12 19:48:39 -08:00
namespaces :
2021-07-29 01:29:53 +05:30
description : Namespaces is a list of namespaces names.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one character).
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
selector :
2021-07-29 01:29:53 +05:30
description : 'Selector is a label selector. Label keys
and values in `matchLabels` support the wildcard characters
`*` (matches zero or many characters) and `?` (matches
one character). Wildcards allows writing label selectors
like ["storage.k8s.io/*": "*"]. Note that using ["*"
: "*" ] matches any key and value but does not match
an empty label set.'
2020-11-12 19:48:39 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label
selector requirements. The requirements are ANDed.
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a
selector that contains values, a key, and an
operator that relates the key and values.
2020-11-12 19:48:39 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the
selector applies to.
2020-11-12 19:48:39 -08:00
type : string
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship
to a set of values. Valid operators are
In, NotIn, Exists and DoesNotExist.
2020-11-12 19:48:39 -08:00
type : string
values :
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-12 19:48:39 -08:00
type : object
type : object
2020-06-05 13:51:22 -07:00
type : object
2020-11-12 19:48:39 -08:00
roles :
2021-07-29 01:29:53 +05:30
description : Roles is the list of namespaced role names
for the user.
2020-11-12 19:48:39 -08:00
items :
2020-06-05 13:51:22 -07:00
type : string
2020-11-12 19:48:39 -08:00
type : array
subjects :
2021-07-29 01:29:53 +05:30
description : Subjects is the list of subject names like
users, user groups, and service accounts.
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : Subject contains a reference to the object
or user identities a role binding applies to. This
can either hold a direct API object reference, or a
value for non-objects such as user and group names.
2020-06-05 13:51:22 -07:00
properties :
2020-11-12 19:48:39 -08:00
apiGroup :
2021-07-29 01:29:53 +05:30
description : APIGroup holds the API group of the referenced
subject. Defaults to "" for ServiceAccount subjects.
Defaults to "rbac.authorization.k8s.io" for User
and Group subjects.
2020-11-12 19:48:39 -08:00
type : string
kind :
2021-07-29 01:29:53 +05:30
description : Kind of object being referenced. Values
defined by this API group are "User", "Group", and
"ServiceAccount" . If the Authorizer does not recognized
the kind value, the Authorizer should report an
error.
2020-11-12 19:48:39 -08:00
type : string
name :
description : Name of the object being referenced.
type : string
namespace :
2021-07-29 01:29:53 +05:30
description : Namespace of the referenced object. If
the object kind is non-namespace, such as "User"
or "Group", and this value is not empty the Authorizer
should report an error.
2020-11-12 19:48:39 -08:00
type : string
required :
- kind
- name
type : object
type : array
type : object
generate :
2020-12-01 23:19:08 -08:00
description : Generation is used to create new resources.
2020-11-12 19:48:39 -08:00
properties :
apiVersion :
2020-11-15 22:47:55 -08:00
description : APIVersion specifies resource apiVersion.
2020-06-05 13:51:22 -07:00
type : string
2020-11-12 19:48:39 -08:00
clone :
2021-07-29 01:29:53 +05:30
description : Clone specifies the source resource used to
populate each generated resource. At most one of Data
or Clone can be specified. If neither are provided, the
generated resource will be created with default data only.
2020-06-05 13:51:22 -07:00
properties :
name :
2020-11-15 22:47:55 -08:00
description : Name specifies name of the resource.
2020-06-05 13:51:22 -07:00
type : string
namespace :
2020-11-15 22:47:55 -08:00
description : Namespace specifies source resource namespace.
2020-06-05 13:51:22 -07:00
type : string
type : object
2020-11-12 19:48:39 -08:00
data :
2021-07-29 01:29:53 +05:30
description : Data provides the resource declaration used
to populate each generated resource. At most one of Data
or Clone must be specified. If neither are provided, the
generated resource will be created with default data only.
2020-11-12 19:48:39 -08:00
x-kubernetes-preserve-unknown-fields : true
kind :
2020-11-15 22:47:55 -08:00
description : Kind specifies resource kind.
2020-11-12 19:48:39 -08:00
type : string
name :
2020-11-15 22:47:55 -08:00
description : Name specifies the resource name.
2020-11-12 19:48:39 -08:00
type : string
namespace :
2020-11-15 22:47:55 -08:00
description : Namespace specifies resource namespace.
2020-11-12 19:48:39 -08:00
type : string
synchronize :
2021-07-29 01:29:53 +05:30
description : Synchronize controls if generated resources
should be kept in-sync with their source resource. If
Synchronize is set to "true" changes to generated resources
will be overwritten with resource data from Data or the
resource specified in the Clone declaration. Optional.
Defaults to "false" if not specified.
2020-11-12 19:48:39 -08:00
type : boolean
type : object
match :
2021-07-29 01:29:53 +05:30
description : MatchResources defines when this policy rule should
be applied. The match criteria can include resource information
(e.g. kind, name, namespace, labels) and admission review
request information like the user name or role. At least one
kind is required.
2020-11-12 19:48:39 -08:00
properties :
2021-07-29 01:29:53 +05:30
all :
description : All allows specifying resources which will
be ANDed
items :
description : ResourceFilters allow users to "AND" or "OR"
between resources
properties :
clusterRoles :
description : ClusterRoles is the list of cluster-wide
role names for the user.
items :
type : string
type : array
resources :
description : ResourceDescription contains information
about the resource being created or modified.
properties :
annotations :
additionalProperties :
type : string
description : Annotations is a map of annotations
(key-value pairs of type string). Annotation
keys and values support the wildcard characters
"*" (matches zero or many characters) and "?"
(matches at least one character).
type : object
kinds :
description : Kinds is a list of resource kinds.
items :
type : string
type : array
name :
description : Name is the name of the resource.
The name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character).
type : string
names :
description : 'Names are the names of the resources.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character). NOTE : "Name" is being deprecated
in favor of "Names".'
items :
type : string
type : array
namespaceSelector :
description : 'NamespaceSelector is a label selector
for the resource namespace. Label keys and values
in `matchLabels` support the wildcard characters
`*` (matches zero or many characters) and `?`
(matches one character).Wildcards allows writing
label selectors like ["storage.k8s.io/*": "*"].
Note that using ["*" : "*"] matches any key
and value but does not match an empty label
set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
namespaces :
description : Namespaces is a list of namespaces
names. Each name supports wildcard characters
"*" (matches zero or many characters) and "?"
(at least one character).
items :
type : string
type : array
selector :
description : 'Selector is a label selector. Label
keys and values in `matchLabels` support the
wildcard characters `*` (matches zero or many
characters) and `?` (matches one character).
Wildcards allows writing label selectors like
[ "storage.k8s.io/*": "*" ] . Note that using ["*"
: "*" ] matches any key and value but does not
match an empty label set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
type : object
roles :
description : Roles is the list of namespaced role
names for the user.
items :
type : string
type : array
subjects :
description : Subjects is the list of subject names
like users, user groups, and service accounts.
items :
description : Subject contains a reference to the
object or user identities a role binding applies
to. This can either hold a direct API object
reference, or a value for non-objects such as
user and group names.
properties :
apiGroup :
description : APIGroup holds the API group of
the referenced subject. Defaults to "" for
ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io"
for User and Group subjects.
type : string
kind :
description : Kind of object being referenced.
Values defined by this API group are "User",
"Group" , and "ServiceAccount". If the Authorizer
does not recognized the kind value, the Authorizer
should report an error.
type : string
name :
description : Name of the object being referenced.
type : string
namespace :
description : Namespace of the referenced object. If
the object kind is non-namespace, such as
"User" or "Group", and this value is not empty
the Authorizer should report an error.
type : string
required :
- kind
- name
type : object
type : array
type : object
type : array
any :
description : Any allows specifying resources which will
be ORed
items :
description : ResourceFilters allow users to "AND" or "OR"
between resources
properties :
clusterRoles :
description : ClusterRoles is the list of cluster-wide
role names for the user.
items :
type : string
type : array
resources :
description : ResourceDescription contains information
about the resource being created or modified.
properties :
annotations :
additionalProperties :
type : string
description : Annotations is a map of annotations
(key-value pairs of type string). Annotation
keys and values support the wildcard characters
"*" (matches zero or many characters) and "?"
(matches at least one character).
type : object
kinds :
description : Kinds is a list of resource kinds.
items :
type : string
type : array
name :
description : Name is the name of the resource.
The name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character).
type : string
names :
description : 'Names are the names of the resources.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character). NOTE : "Name" is being deprecated
in favor of "Names".'
items :
type : string
type : array
namespaceSelector :
description : 'NamespaceSelector is a label selector
for the resource namespace. Label keys and values
in `matchLabels` support the wildcard characters
`*` (matches zero or many characters) and `?`
(matches one character).Wildcards allows writing
label selectors like ["storage.k8s.io/*": "*"].
Note that using ["*" : "*"] matches any key
and value but does not match an empty label
set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
namespaces :
description : Namespaces is a list of namespaces
names. Each name supports wildcard characters
"*" (matches zero or many characters) and "?"
(at least one character).
items :
type : string
type : array
selector :
description : 'Selector is a label selector. Label
keys and values in `matchLabels` support the
wildcard characters `*` (matches zero or many
characters) and `?` (matches one character).
Wildcards allows writing label selectors like
[ "storage.k8s.io/*": "*" ] . Note that using ["*"
: "*" ] matches any key and value but does not
match an empty label set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
type : object
roles :
description : Roles is the list of namespaced role
names for the user.
items :
type : string
type : array
subjects :
description : Subjects is the list of subject names
like users, user groups, and service accounts.
items :
description : Subject contains a reference to the
object or user identities a role binding applies
to. This can either hold a direct API object
reference, or a value for non-objects such as
user and group names.
properties :
apiGroup :
description : APIGroup holds the API group of
the referenced subject. Defaults to "" for
ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io"
for User and Group subjects.
type : string
kind :
description : Kind of object being referenced.
Values defined by this API group are "User",
"Group" , and "ServiceAccount". If the Authorizer
does not recognized the kind value, the Authorizer
should report an error.
type : string
name :
description : Name of the object being referenced.
type : string
namespace :
description : Namespace of the referenced object. If
the object kind is non-namespace, such as
"User" or "Group", and this value is not empty
the Authorizer should report an error.
type : string
required :
- kind
- name
type : object
type : array
type : object
type : array
2020-11-12 19:48:39 -08:00
clusterRoles :
2021-07-29 01:29:53 +05:30
description : ClusterRoles is the list of cluster-wide role
names for the user.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
resources :
2021-07-29 01:29:53 +05:30
description : ResourceDescription contains information about
the resource being created or modified. Requires at least
one tag to be specified when under MatchResources.
2020-06-05 13:51:22 -07:00
properties :
2020-11-12 19:48:39 -08:00
annotations :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : Annotations is a map of annotations (key-value
pairs of type string). Annotation keys and values
support the wildcard characters "*" (matches zero
or many characters) and "?" (matches at least one
character).
2020-11-12 19:48:39 -08:00
type : object
kinds :
2020-11-15 22:47:55 -08:00
description : Kinds is a list of resource kinds.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
name :
2021-07-29 01:29:53 +05:30
description : Name is the name of the resource. The name
supports wildcard characters "*" (matches zero or
many characters) and "?" (at least one character).
2020-06-05 13:51:22 -07:00
type : string
2021-06-29 11:01:22 +05:30
names :
2021-07-29 01:29:53 +05:30
description : 'Names are the names of the resources.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one character).
NOTE : "Name" is being deprecated in favor of "Names".'
2021-06-29 11:01:22 +05:30
items :
type : string
type : array
2021-02-03 14:19:46 -08:00
namespaceSelector :
2021-07-29 01:29:53 +05:30
description : 'NamespaceSelector is a label selector
for the resource namespace. Label keys and values
in `matchLabels` support the wildcard characters `*`
(matches zero or many characters) and `?` (matches
one character).Wildcards allows writing label selectors
like ["storage.k8s.io/*": "*"]. Note that using ["*"
: "*" ] matches any key and value but does not match
an empty label set.'
2021-02-03 14:19:46 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label
selector requirements. The requirements are ANDed.
2021-02-03 14:19:46 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a
selector that contains values, a key, and an
operator that relates the key and values.
2021-02-03 14:19:46 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the
selector applies to.
2021-02-03 14:19:46 -08:00
type : string
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship
to a set of values. Valid operators are
In, NotIn, Exists and DoesNotExist.
2021-02-03 14:19:46 -08:00
type : string
values :
2021-07-29 01:29:53 +05:30
description : 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.
2021-02-03 14:19:46 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2021-02-03 14:19:46 -08:00
type : object
type : object
2020-11-12 19:48:39 -08:00
namespaces :
2021-07-29 01:29:53 +05:30
description : Namespaces is a list of namespaces names.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one character).
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
selector :
2021-07-29 01:29:53 +05:30
description : 'Selector is a label selector. Label keys
and values in `matchLabels` support the wildcard characters
`*` (matches zero or many characters) and `?` (matches
one character). Wildcards allows writing label selectors
like ["storage.k8s.io/*": "*"]. Note that using ["*"
: "*" ] matches any key and value but does not match
an empty label set.'
2020-11-12 19:48:39 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label
selector requirements. The requirements are ANDed.
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a
selector that contains values, a key, and an
operator that relates the key and values.
2020-11-12 19:48:39 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the
selector applies to.
2020-11-12 19:48:39 -08:00
type : string
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship
to a set of values. Valid operators are
In, NotIn, Exists and DoesNotExist.
2020-11-12 19:48:39 -08:00
type : string
values :
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-12 19:48:39 -08:00
type : object
type : object
2020-06-05 13:51:22 -07:00
type : object
2020-11-12 19:48:39 -08:00
roles :
2021-07-29 01:29:53 +05:30
description : Roles is the list of namespaced role names
for the user.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
subjects :
2021-07-29 01:29:53 +05:30
description : Subjects is the list of subject names like
users, user groups, and service accounts.
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : Subject contains a reference to the object
or user identities a role binding applies to. This
can either hold a direct API object reference, or a
value for non-objects such as user and group names.
2020-11-12 19:48:39 -08:00
properties :
apiGroup :
2021-07-29 01:29:53 +05:30
description : APIGroup holds the API group of the referenced
subject. Defaults to "" for ServiceAccount subjects.
Defaults to "rbac.authorization.k8s.io" for User
and Group subjects.
2020-11-12 19:48:39 -08:00
type : string
kind :
2021-07-29 01:29:53 +05:30
description : Kind of object being referenced. Values
defined by this API group are "User", "Group", and
"ServiceAccount" . If the Authorizer does not recognized
the kind value, the Authorizer should report an
error.
2020-11-12 19:48:39 -08:00
type : string
name :
description : Name of the object being referenced.
type : string
namespace :
2021-07-29 01:29:53 +05:30
description : Namespace of the referenced object. If
the object kind is non-namespace, such as "User"
or "Group", and this value is not empty the Authorizer
should report an error.
2020-11-12 19:48:39 -08:00
type : string
required :
- kind
- name
type : object
type : array
2020-06-05 13:51:22 -07:00
type : object
2020-11-12 19:48:39 -08:00
mutate :
2020-12-01 23:19:08 -08:00
description : Mutation is used to modify matching resources.
2020-11-12 19:48:39 -08:00
properties :
overlay :
2021-07-29 01:29:53 +05:30
description : Overlay specifies an overlay pattern to modify
resources. DEPRECATED. Use PatchStrategicMerge instead.
Scheduled for removal in release 1.5+.
2020-11-18 17:36:06 -08:00
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
patchStrategicMerge :
2021-07-29 01:29:53 +05:30
description : PatchStrategicMerge is a strategic merge patch
used to modify resources. See https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/
and https://kubectl.docs.kubernetes.io/references/kustomize/patchesstrategicmerge/.
2020-11-18 17:36:06 -08:00
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
patches :
2021-07-29 01:29:53 +05:30
description : Patches specifies a RFC 6902 JSON Patch to
modify resources. DEPRECATED. Use PatchesJSON6902 instead.
Scheduled for removal in release 1.5+.
2020-11-12 19:48:39 -08:00
items :
2020-11-15 22:47:55 -08:00
description: 'Patch is a RFC 6902 JSON Patch. See : https://tools.ietf.org/html/rfc6902'
2020-11-12 19:48:39 -08:00
properties :
op :
2021-07-29 01:29:53 +05:30
description : Operation specifies operations supported
by JSON Patch. i.e:- add, replace and delete.
2020-11-12 19:48:39 -08:00
type : string
path :
2020-11-15 22:47:55 -08:00
description : Path specifies path of the resource.
2020-11-12 19:48:39 -08:00
type : string
value :
2020-11-15 22:47:55 -08:00
description : Value specifies the value to be applied.
2020-11-18 17:36:06 -08:00
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
type : object
2020-11-16 11:47:16 -08:00
nullable : true
2020-11-12 19:48:39 -08:00
type : array
2020-11-18 17:36:06 -08:00
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
patchesJson6902 :
2021-07-29 01:29:53 +05:30
description : PatchesJSON6902 is a list of RFC 6902 JSON
Patch declarations used to modify resources. See https://tools.ietf.org/html/rfc6902
and https://kubectl.docs.kubernetes.io/references/kustomize/patchesjson6902/.
2020-11-12 19:48:39 -08:00
type : string
type : object
name :
2021-07-29 01:29:53 +05:30
description : Name is a label to identify the rule, It must be
unique within the policy.
2021-02-26 03:13:35 +00:00
maxLength : 63
2020-11-12 19:48:39 -08:00
type : string
preconditions :
2021-07-29 01:29:53 +05:30
description : 'Preconditions are used to determine if a policy
rule should be applied by evaluating a set of conditions.
The declaration can contain nested `any` or `all` statements.
A direct list of conditions (without `any` or `all` statements
is supported for backwards compatibility but will be deprecated
in the next major release. See : https://kyverno.io/docs/writing-policies/preconditions/'
2021-03-02 10:01:06 +05:30
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
validate :
2020-12-01 23:19:08 -08:00
description : Validation is used to validate matching resources.
2020-11-12 19:48:39 -08:00
properties :
anyPattern :
2021-07-29 01:29:53 +05:30
description : AnyPattern specifies list of validation patterns.
At least one of the patterns must be satisfied for the
validation rule to succeed.
2020-11-18 17:36:06 -08:00
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
deny :
2021-07-29 01:29:53 +05:30
description : Deny defines conditions used to pass or fail
a validation rule.
2020-11-12 19:48:39 -08:00
properties :
conditions :
2021-07-29 01:29:53 +05:30
description : 'Multiple conditions can be declared under
an `any` or `all` statement. A direct list of conditions
(without `any` or `all` statements) is also supported
for backwards compatibility but will be deprecated
in the next major release. See : https://kyverno.io/docs/writing-policies/validate/#deny-rules'
2021-03-02 10:01:06 +05:30
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
type : object
message :
2021-07-29 01:29:53 +05:30
description : Message specifies a custom message to be displayed
on failure.
2020-11-12 19:48:39 -08:00
type : string
pattern :
2021-07-29 01:29:53 +05:30
description : Pattern specifies an overlay-style pattern
used to check resources.
2020-11-18 17:36:06 -08:00
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
type : object
2021-07-14 09:57:16 -07:00
verifyImages :
2021-07-29 01:29:53 +05:30
description : VerifyImages is used to verify image signatures
and mutate them to add a digest
2021-07-14 09:57:16 -07:00
items :
2021-07-29 01:29:53 +05:30
description : ImageVerification validates that images that
match the specified pattern are signed with the supplied
public key. Once the image is verified it is mutated to
include the SHA digest retrieved during the registration.
2021-07-14 09:57:16 -07:00
properties :
image :
2021-07-29 01:29:53 +05:30
description : 'Image is the image name consisting of the
registry address, repository, image, and tag. Wildcards
(''*'' and ''?'') are allowed. See : https://kubernetes.io/docs/concepts/containers/images.'
2021-07-14 09:57:16 -07:00
type : string
key :
2021-07-29 01:29:53 +05:30
description : Key is the PEM encoded public key that the
image is signed with.
2021-07-14 09:57:16 -07:00
type : string
type : object
type : array
2020-11-12 19:48:39 -08:00
type : object
type : array
validationFailureAction :
2021-07-29 01:29:53 +05:30
description : ValidationFailureAction controls if a validation policy
rule failure should disallow the admission review request (enforce),
or allow (audit) the admission review request and report an error
in a policy report. Optional. The default value is "audit".
2020-11-12 19:48:39 -08:00
type : string
type : object
status :
2020-11-16 11:47:16 -08:00
description : Status contains policy runtime data.
2020-11-12 19:48:39 -08:00
properties :
averageExecutionTime :
2021-07-29 01:29:53 +05:30
description : AvgExecutionTime is the average time taken to process
the policy rules on a resource.
2020-11-12 19:48:39 -08:00
type : string
resourcesBlockedCount :
2021-07-29 01:29:53 +05:30
description : ResourcesBlockedCount is the total count of admission
review requests that were blocked by this policy.
2020-11-12 19:48:39 -08:00
type : integer
resourcesGeneratedCount :
2021-07-29 01:29:53 +05:30
description : ResourcesGeneratedCount is the total count of resources
that were generated by this policy.
2020-11-12 19:48:39 -08:00
type : integer
resourcesMutatedCount :
2021-07-29 01:29:53 +05:30
description : ResourcesMutatedCount is the total count of resources
that were mutated by this policy.
2020-11-12 19:48:39 -08:00
type : integer
ruleStatus :
2020-11-15 22:47:55 -08:00
description : Rules provides per rule statistics
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : 'RuleStats provides statistics for an individual rule
within a policy. Deprecated. Policy metrics are now available
via the "/metrics" endpoint. See: https://kyverno.io/docs/monitoring-kyverno-with-prometheus-metrics/'
2020-11-12 19:48:39 -08:00
properties :
appliedCount :
2021-07-29 01:29:53 +05:30
description : AppliedCount is the total number of times this
rule was applied.
2020-11-12 19:48:39 -08:00
type : integer
averageExecutionTime :
2021-07-29 01:29:53 +05:30
description : ExecutionTime is the average time taken to execute
this rule.
2020-11-12 19:48:39 -08:00
type : string
failedCount :
2021-07-29 01:29:53 +05:30
description : FailedCount is the total count of policy error
results for this rule.
2020-11-12 19:48:39 -08:00
type : integer
resourcesBlockedCount :
2021-07-29 01:29:53 +05:30
description : ResourcesBlockedCount is the total count of admission
review requests that were blocked by this rule.
2020-11-12 19:48:39 -08:00
type : integer
resourcesGeneratedCount :
2021-07-29 01:29:53 +05:30
description : ResourcesGeneratedCount is the total count of resources
that were generated by this rule.
2020-11-12 19:48:39 -08:00
type : integer
resourcesMutatedCount :
2021-07-29 01:29:53 +05:30
description : ResourcesMutatedCount is the total count of resources
that were mutated by this rule.
2020-11-12 19:48:39 -08:00
type : integer
ruleName :
2020-11-15 22:47:55 -08:00
description : Name is the rule name.
2020-11-12 19:48:39 -08:00
type : string
violationCount :
2021-07-29 01:29:53 +05:30
description : ViolationCount is the total count of policy failure
results for this rule.
2020-11-12 19:48:39 -08:00
type : integer
required :
- ruleName
type : object
type : array
rulesAppliedCount :
2021-07-29 01:29:53 +05:30
description : RulesAppliedCount is the total number of times this policy
was applied.
2020-11-12 19:48:39 -08:00
type : integer
rulesFailedCount :
2021-07-29 01:29:53 +05:30
description : RulesFailedCount is the total count of policy execution
errors for this policy.
2020-11-12 19:48:39 -08:00
type : integer
violationCount :
2021-07-29 01:29:53 +05:30
description : ViolationCount is the total count of policy failure results
for this policy.
2020-11-12 19:48:39 -08:00
type : integer
type : object
required :
- spec
type : object
2020-06-05 13:51:22 -07:00
served : true
storage : true
2020-11-12 19:48:39 -08:00
subresources :
status : {}
status :
acceptedNames :
kind : ""
plural : ""
conditions : [ ]
storedVersions : [ ]
2020-06-05 13:51:22 -07:00
---
2020-11-12 19:48:39 -08:00
apiVersion : apiextensions.k8s.io/v1
2020-06-05 13:51:22 -07:00
kind : CustomResourceDefinition
2020-08-26 18:50:38 +05:30
metadata :
annotations :
2020-11-11 15:09:07 -08:00
controller-gen.kubebuilder.io/version : v0.4.0
2020-10-22 16:15:43 -07:00
creationTimestamp : null
2020-11-11 15:09:07 -08:00
name : clusterpolicyreports.wgpolicyk8s.io
2020-08-26 18:50:38 +05:30
spec :
2020-11-11 15:09:07 -08:00
group : wgpolicyk8s.io
2020-08-26 18:50:38 +05:30
names :
kind : ClusterPolicyReport
listKind : ClusterPolicyReportList
plural : clusterpolicyreports
2020-10-14 19:23:08 -07:00
shortNames :
- cpolr
2020-08-26 18:50:38 +05:30
singular : clusterpolicyreport
2020-11-12 19:48:39 -08:00
scope : Cluster
2020-11-11 15:09:07 -08:00
versions :
- additionalPrinterColumns :
- jsonPath : .scope.kind
name : Kind
priority : 1
type : string
- jsonPath : .scope.name
name : Name
priority : 1
type : string
- jsonPath : .summary.pass
name : Pass
type : integer
- jsonPath : .summary.fail
name : Fail
type : integer
- jsonPath : .summary.warn
name : Warn
type : integer
- jsonPath : .summary.error
name : Error
type : integer
- jsonPath : .summary.skip
name : Skip
type : integer
- jsonPath : .metadata.creationTimestamp
name : Age
type : date
name : v1alpha1
schema :
openAPIV3Schema :
2021-07-29 01:29:53 +05:30
description : ClusterPolicyReport is the Schema for the clusterpolicyreports
API
2020-11-11 15:09:07 -08:00
properties :
apiVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
kind :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
metadata :
type : object
results :
description : PolicyReportResult provides result details
items :
2021-07-29 01:29:53 +05:30
description : PolicyReportResult provides the result for an individual
policy
2020-11-11 15:09:07 -08:00
properties :
category :
description : Category indicates policy category
2020-08-26 18:50:38 +05:30
type : string
2020-11-11 15:09:07 -08:00
data :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : Data provides additional information for the policy
rule
2020-11-11 15:09:07 -08:00
type : object
message :
2021-07-29 01:29:53 +05:30
description : Message is a short user friendly description of the
policy rule
2020-11-11 15:09:07 -08:00
type : string
policy :
description : Policy is the name of the policy
type : string
resourceSelector :
2021-07-29 01:29:53 +05:30
description : ResourceSelector is an optional selector for policy
results that apply to multiple resources. For example, a policy
result may apply to all pods that match a label. Either a Resource
or a ResourceSelector can be specified. If neither are provided,
the result is assumed to be for the policy report scope.
2020-11-11 15:09:07 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label selector requirements.
The requirements are ANDed.
2020-11-11 15:09:07 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a selector that
contains values, a key, and an operator that relates the
key and values.
2020-11-11 15:09:07 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the selector applies
to.
2020-09-03 22:35:34 +05:30
type : string
2020-11-11 15:09:07 -08:00
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship
to a set of values. Valid operators are In, NotIn, Exists
and DoesNotExist.
2020-11-11 15:09:07 -08:00
type : string
values :
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-11 15:09:07 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2020-09-03 22:35:34 +05:30
type : object
2020-11-11 15:09:07 -08:00
type : object
resources :
2021-07-29 01:29:53 +05:30
description : Resources is an optional reference to the resource
checked by the policy and rule
2020-11-11 15:09:07 -08:00
items :
2021-07-29 01:29:53 +05:30
description : 'ObjectReference contains enough information to let
you inspect or modify the referred object. --- New uses of this
type are discouraged because of difficulty describing its usage
when embedded in APIs. 1. Ignored fields. It includes many
fields which are not generally honored. For instance, ResourceVersion
and FieldPath are both very rarely valid in actual usage. 2.
Invalid usage help. It is impossible to add specific help for
individual usage. In most embedded usages, there are particular restrictions
like, "must refer only to types A and B" or "UID not honored"
or "name must be restricted". Those cannot be well described
when embedded. 3. Inconsistent validation. Because the usages
are different, the validation rules are different by usage,
which makes it hard for users to predict what will happen. 4.
The fields are both imprecise and overly precise. Kind is not
a precise mapping to a URL. This can produce ambiguity during
interpretation and require a REST mapping. In most cases, the
dependency is on the group,resource tuple and the version
of the actual struct is irrelevant. 5. We cannot easily change
it. Because this type is embedded in many locations, updates
to this type will affect numerous schemas. Don''t make
new APIs embed an underspecified API type they do not control.
Instead of using this type, create a locally provided and used
type that is well-focused on your reference. For example, ServiceReferences
for admission registration : https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533
.'
2020-11-11 15:09:07 -08:00
properties :
apiVersion :
description : API version of the referent.
type : string
fieldPath :
2021-07-29 01:29:53 +05:30
description : '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. TODO : this design is not final and this field
is subject to change in the future.'
2020-11-11 15:09:07 -08:00
type : string
kind :
description: 'Kind of the referent. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type : string
name :
description: 'Name of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type : string
namespace :
description: 'Namespace of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type : string
resourceVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
uid :
description: 'UID of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type : string
2020-09-03 22:35:34 +05:30
type : object
2020-11-11 15:09:07 -08:00
type : array
rule :
description : Rule is the name of the policy rule
type : string
scored :
description : Scored indicates if this policy rule is scored
type : boolean
severity :
description : Severity indicates policy severity
enum :
- high
- low
- medium
type : string
status :
description : Status indicates the result of the policy rule check
enum :
- pass
- fail
- warn
- error
- skip
type : string
required :
- policy
type : object
type : array
scope :
2021-07-29 01:29:53 +05:30
description : Scope is an optional reference to the report scope (e.g.
a Deployment, Namespace, or Node)
2020-11-11 15:09:07 -08:00
properties :
apiVersion :
description : API version of the referent.
type : string
fieldPath :
2021-07-29 01:29:53 +05:30
description : '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. TODO : this design is not
final and this field is subject to change in the future.'
2020-11-11 15:09:07 -08:00
type : string
kind :
description: 'Kind of the referent. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type : string
name :
description: 'Name of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type : string
namespace :
description: 'Namespace of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type : string
resourceVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
uid :
description: 'UID of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type : string
type : object
scopeSelector :
2021-07-29 01:29:53 +05:30
description : ScopeSelector is an optional selector for multiple scopes
(e.g. Pods). Either one of, or none of, but not both of, Scope or ScopeSelector
should be specified.
2020-11-11 15:09:07 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label selector requirements.
The requirements are ANDed.
2020-09-16 06:56:38 -07:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a selector that contains
values, a key, and an operator that relates the key and values.
2020-09-16 06:56:38 -07:00
properties :
2020-11-11 15:09:07 -08:00
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the selector applies
to.
2020-09-16 06:56:38 -07:00
type : string
2020-11-11 15:09:07 -08:00
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship to a set
of values. Valid operators are In, NotIn, Exists and DoesNotExist.
2020-09-16 06:56:38 -07:00
type : string
2020-11-11 15:09:07 -08:00
values :
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-11 15:09:07 -08:00
items :
type : string
type : array
required :
- key
- operator
2020-09-16 06:56:38 -07:00
type : object
type : array
2020-11-11 15:09:07 -08:00
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-11 15:09:07 -08:00
type : object
type : object
summary :
description : PolicyReportSummary provides a summary of results
properties :
error :
2021-07-29 01:29:53 +05:30
description : Error provides the count of policies that could not be
evaluated
2020-11-11 15:09:07 -08:00
type : integer
fail :
2021-07-29 01:29:53 +05:30
description : Fail provides the count of policies whose requirements
were not met
2020-11-11 15:09:07 -08:00
type : integer
pass :
2021-07-29 01:29:53 +05:30
description : Pass provides the count of policies whose requirements
were met
2020-11-11 15:09:07 -08:00
type : integer
skip :
2021-07-29 01:29:53 +05:30
description : Skip indicates the count of policies that were not selected
for evaluation
2020-11-11 15:09:07 -08:00
type : integer
warn :
2021-07-29 01:29:53 +05:30
description : Warn provides the count of unscored policies whose requirements
were not met
2020-11-11 15:09:07 -08:00
type : integer
type : object
type : object
served : true
storage : true
subresources : {}
status :
acceptedNames :
kind : ""
plural : ""
conditions : [ ]
storedVersions : [ ]
---
apiVersion : apiextensions.k8s.io/v1
kind : CustomResourceDefinition
metadata :
annotations :
controller-gen.kubebuilder.io/version : v0.4.0
creationTimestamp : null
name : clusterreportchangerequests.kyverno.io
spec :
group : kyverno.io
names :
kind : ClusterReportChangeRequest
listKind : ClusterReportChangeRequestList
plural : clusterreportchangerequests
2020-12-21 11:04:19 -08:00
shortNames :
- crcr
2020-11-11 15:09:07 -08:00
singular : clusterreportchangerequest
2020-11-12 19:48:39 -08:00
scope : Cluster
2020-11-11 15:09:07 -08:00
versions :
- additionalPrinterColumns :
- jsonPath : .scope.kind
name : Kind
priority : 1
type : string
- jsonPath : .scope.name
name : Name
priority : 1
type : string
- jsonPath : .summary.pass
name : Pass
type : integer
- jsonPath : .summary.fail
name : Fail
type : integer
- jsonPath : .summary.warn
name : Warn
type : integer
- jsonPath : .summary.error
name : Error
type : integer
- jsonPath : .summary.skip
name : Skip
type : integer
- jsonPath : .metadata.creationTimestamp
name : Age
type : date
name : v1alpha1
schema :
openAPIV3Schema :
2021-07-29 01:29:53 +05:30
description : ClusterReportChangeRequest is the Schema for the ClusterReportChangeRequests
API
2020-11-11 15:09:07 -08:00
properties :
apiVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
kind :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
metadata :
type : object
results :
description : PolicyReportResult provides result details
items :
2021-07-29 01:29:53 +05:30
description : PolicyReportResult provides the result for an individual
policy
2020-11-11 15:09:07 -08:00
properties :
category :
description : Category indicates policy category
type : string
data :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : Data provides additional information for the policy
rule
2020-11-11 15:09:07 -08:00
type : object
message :
2021-07-29 01:29:53 +05:30
description : Message is a short user friendly description of the
policy rule
2020-11-11 15:09:07 -08:00
type : string
policy :
description : Policy is the name of the policy
type : string
resourceSelector :
2021-07-29 01:29:53 +05:30
description : ResourceSelector is an optional selector for policy
results that apply to multiple resources. For example, a policy
result may apply to all pods that match a label. Either a Resource
or a ResourceSelector can be specified. If neither are provided,
the result is assumed to be for the policy report scope.
2020-11-11 15:09:07 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label selector requirements.
The requirements are ANDed.
2020-11-11 15:09:07 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a selector that
contains values, a key, and an operator that relates the
key and values.
2020-11-11 15:09:07 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the selector applies
to.
2020-11-11 15:09:07 -08:00
type : string
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship
to a set of values. Valid operators are In, NotIn, Exists
and DoesNotExist.
2020-11-11 15:09:07 -08:00
type : string
values :
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-11 15:09:07 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-11 15:09:07 -08:00
type : object
type : object
resources :
2021-07-29 01:29:53 +05:30
description : Resources is an optional reference to the resource
checked by the policy and rule
2020-11-11 15:09:07 -08:00
items :
2021-07-29 01:29:53 +05:30
description : 'ObjectReference contains enough information to let
you inspect or modify the referred object. --- New uses of this
type are discouraged because of difficulty describing its usage
when embedded in APIs. 1. Ignored fields. It includes many
fields which are not generally honored. For instance, ResourceVersion
and FieldPath are both very rarely valid in actual usage. 2.
Invalid usage help. It is impossible to add specific help for
individual usage. In most embedded usages, there are particular restrictions
like, "must refer only to types A and B" or "UID not honored"
or "name must be restricted". Those cannot be well described
when embedded. 3. Inconsistent validation. Because the usages
are different, the validation rules are different by usage,
which makes it hard for users to predict what will happen. 4.
The fields are both imprecise and overly precise. Kind is not
a precise mapping to a URL. This can produce ambiguity during
interpretation and require a REST mapping. In most cases, the
dependency is on the group,resource tuple and the version
of the actual struct is irrelevant. 5. We cannot easily change
it. Because this type is embedded in many locations, updates
to this type will affect numerous schemas. Don''t make
new APIs embed an underspecified API type they do not control.
Instead of using this type, create a locally provided and used
type that is well-focused on your reference. For example, ServiceReferences
for admission registration : https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533
.'
2020-11-11 15:09:07 -08:00
properties :
apiVersion :
description : API version of the referent.
type : string
fieldPath :
2021-07-29 01:29:53 +05:30
description : '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. TODO : this design is not final and this field
is subject to change in the future.'
2020-11-11 15:09:07 -08:00
type : string
kind :
description: 'Kind of the referent. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type : string
name :
description: 'Name of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type : string
namespace :
description: 'Namespace of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type : string
resourceVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
uid :
description: 'UID of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type : string
type : object
type : array
rule :
description : Rule is the name of the policy rule
type : string
scored :
description : Scored indicates if this policy rule is scored
type : boolean
severity :
description : Severity indicates policy severity
enum :
- high
- low
- medium
type : string
status :
description : Status indicates the result of the policy rule check
enum :
- pass
- fail
- warn
- error
- skip
type : string
required :
- policy
type : object
type : array
scope :
2021-07-29 01:29:53 +05:30
description : Scope is an optional reference to the report scope (e.g.
a Deployment, Namespace, or Node)
2020-11-11 15:09:07 -08:00
properties :
apiVersion :
description : API version of the referent.
2020-08-26 18:50:38 +05:30
type : string
2020-11-11 15:09:07 -08:00
fieldPath :
2021-07-29 01:29:53 +05:30
description : '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. TODO : this design is not
final and this field is subject to change in the future.'
2020-10-22 16:15:43 -07:00
type : string
2020-11-11 15:09:07 -08:00
kind :
description: 'Kind of the referent. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type : string
name :
description: 'Name of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type : string
namespace :
description: 'Namespace of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type : string
resourceVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
uid :
description: 'UID of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
2020-08-26 18:50:38 +05:30
type : string
type : object
2020-11-11 15:09:07 -08:00
scopeSelector :
2021-07-29 01:29:53 +05:30
description : ScopeSelector is an optional selector for multiple scopes
(e.g. Pods). Either one of, or none of, but not both of, Scope or ScopeSelector
should be specified.
2020-11-11 15:09:07 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label selector requirements.
The requirements are ANDed.
2020-11-11 15:09:07 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a selector that contains
values, a key, and an operator that relates the key and values.
2020-11-11 15:09:07 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the selector applies
to.
2020-11-11 15:09:07 -08:00
type : string
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship to a set
of values. Valid operators are In, NotIn, Exists and DoesNotExist.
2020-09-03 22:35:34 +05:30
type : string
2020-11-11 15:09:07 -08:00
values :
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-11 15:09:07 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2020-09-03 22:35:34 +05:30
type : object
2020-11-11 15:09:07 -08:00
type : object
summary :
description : PolicyReportSummary provides a summary of results
properties :
error :
2021-07-29 01:29:53 +05:30
description : Error provides the count of policies that could not be
evaluated
2020-11-11 15:09:07 -08:00
type : integer
fail :
2021-07-29 01:29:53 +05:30
description : Fail provides the count of policies whose requirements
were not met
2020-11-11 15:09:07 -08:00
type : integer
pass :
2021-07-29 01:29:53 +05:30
description : Pass provides the count of policies whose requirements
were met
2020-11-11 15:09:07 -08:00
type : integer
skip :
2021-07-29 01:29:53 +05:30
description : Skip indicates the count of policies that were not selected
for evaluation
2020-11-11 15:09:07 -08:00
type : integer
warn :
2021-07-29 01:29:53 +05:30
description : Warn provides the count of unscored policies whose requirements
were not met
2020-11-11 15:09:07 -08:00
type : integer
type : object
type : object
2020-08-26 18:50:38 +05:30
served : true
storage : true
2020-11-11 15:09:07 -08:00
subresources : {}
2020-08-26 18:50:38 +05:30
status :
acceptedNames :
kind : ""
plural : ""
conditions : [ ]
storedVersions : [ ]
---
2020-11-11 15:09:07 -08:00
apiVersion : apiextensions.k8s.io/v1
2020-08-26 18:50:38 +05:30
kind : CustomResourceDefinition
2020-06-05 13:51:22 -07:00
metadata :
2020-10-22 16:15:43 -07:00
annotations :
2020-11-12 19:48:39 -08:00
controller-gen.kubebuilder.io/version : v0.4.0
2020-10-22 16:15:43 -07:00
creationTimestamp : null
2020-11-12 19:48:39 -08:00
name : generaterequests.kyverno.io
2020-06-05 13:51:22 -07:00
spec :
2020-10-30 19:26:53 -07:00
group : kyverno.io
2020-06-05 13:51:22 -07:00
names :
2020-11-12 19:48:39 -08:00
kind : GenerateRequest
listKind : GenerateRequestList
plural : generaterequests
2020-11-18 12:07:25 -08:00
shortNames :
- gr
2020-11-12 19:48:39 -08:00
singular : generaterequest
2020-06-05 13:51:22 -07:00
scope : Namespaced
2020-11-12 19:48:39 -08:00
versions :
2020-11-18 12:07:25 -08:00
- additionalPrinterColumns :
- jsonPath : .spec.policy
name : Policy
type : string
- jsonPath : .spec.resource.kind
name : ResourceKind
type : string
- jsonPath : .spec.resource.name
name : ResourceName
type : string
- jsonPath : .spec.resource.namespace
name : ResourceNamespace
type : string
- jsonPath : .status.state
name : status
type : string
- jsonPath : .metadata.creationTimestamp
name : Age
2020-11-18 14:31:43 -08:00
type : date
2020-11-18 12:07:25 -08:00
name : v1
2020-11-12 19:48:39 -08:00
schema :
openAPIV3Schema :
2020-11-18 12:07:25 -08:00
description : GenerateRequest is a request to process generate rule.
2020-11-12 19:48:39 -08:00
properties :
apiVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-12 19:48:39 -08:00
type : string
kind :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-12 19:48:39 -08:00
type : string
metadata :
type : object
spec :
2020-11-18 12:07:25 -08:00
description : Spec is the information to identify the generate request.
2020-10-22 16:15:43 -07:00
properties :
2020-11-12 19:48:39 -08:00
context :
description : Context ...
2020-08-19 21:37:23 +05:30
properties :
2020-11-12 19:48:39 -08:00
userInfo :
2021-07-29 01:29:53 +05:30
description : RequestInfo contains permission info carried in an
admission request.
2020-11-12 19:48:39 -08:00
properties :
clusterRoles :
2021-07-29 01:29:53 +05:30
description : ClusterRoles is a list of possible clusterRoles
send the request.
2020-11-12 19:48:39 -08:00
items :
2020-08-19 21:37:23 +05:30
type : string
2020-11-15 22:47:55 -08:00
nullable : true
2020-11-12 19:48:39 -08:00
type : array
roles :
2020-11-18 12:07:25 -08:00
description : Roles is a list of possible role send the request.
2020-11-12 19:48:39 -08:00
items :
2020-08-19 21:37:23 +05:30
type : string
2020-11-15 22:47:55 -08:00
nullable : true
2020-11-12 19:48:39 -08:00
type : array
userInfo :
2021-07-29 01:29:53 +05:30
description : UserInfo is the userInfo carried in the admission
request.
2020-11-12 19:48:39 -08:00
properties :
extra :
additionalProperties :
2021-07-29 01:29:53 +05:30
description : ExtraValue masks the value so protobuf
can generate
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
2021-07-29 01:29:53 +05:30
description : Any additional information provided by the
authenticator.
2020-11-12 19:48:39 -08:00
type : object
groups :
description : The names of groups this user is a part of.
items :
type : string
type : array
uid :
2021-07-29 01:29:53 +05:30
description : A unique value that identifies this user
across time. If this user is deleted and another user
by the same name is added, they will have different
UIDs.
2020-08-19 21:37:23 +05:30
type : string
2020-11-12 19:48:39 -08:00
username :
2021-07-29 01:29:53 +05:30
description : The name that uniquely identifies this user
among all active users.
2020-11-12 19:48:39 -08:00
type : string
type : object
2020-10-22 16:15:43 -07:00
type : object
type : object
2020-11-12 19:48:39 -08:00
policy :
2020-11-18 12:07:25 -08:00
description : Specifies the name of the policy.
2020-11-12 19:48:39 -08:00
type : string
resource :
2021-07-29 01:29:53 +05:30
description : ResourceSpec is the information to identify the generate
request.
2020-11-12 19:48:39 -08:00
properties :
apiVersion :
2020-11-15 22:47:55 -08:00
description : APIVersion specifies resource apiVersion.
2020-11-12 19:48:39 -08:00
type : string
kind :
2020-11-15 22:47:55 -08:00
description : Kind specifies resource kind.
2020-11-12 19:48:39 -08:00
type : string
name :
2020-11-15 22:47:55 -08:00
description : Name specifies the resource name.
2020-11-12 19:48:39 -08:00
type : string
namespace :
2020-11-15 22:47:55 -08:00
description : Namespace specifies resource namespace.
2020-11-12 19:48:39 -08:00
type : string
type : object
required :
- context
- policy
- resource
type : object
status :
2020-11-18 12:07:25 -08:00
description : Status contains statistics related to generate request.
2020-11-12 19:48:39 -08:00
properties :
generatedResources :
2021-07-29 01:29:53 +05:30
description : This will track the resources that are generated by the
generate Policy. Will be used during clean up resources.
2020-10-22 16:15:43 -07:00
items :
2020-11-15 22:47:55 -08:00
description : ResourceSpec contains information to identify a resource.
2020-10-22 16:15:43 -07:00
properties :
apiVersion :
2020-11-15 22:47:55 -08:00
description : APIVersion specifies resource apiVersion.
2020-10-22 16:15:43 -07:00
type : string
kind :
2020-11-15 22:47:55 -08:00
description : Kind specifies resource kind.
2020-10-22 16:15:43 -07:00
type : string
name :
2020-11-15 22:47:55 -08:00
description : Name specifies the resource name.
2020-10-22 16:15:43 -07:00
type : string
namespace :
2020-11-15 22:47:55 -08:00
description : Namespace specifies resource namespace.
2020-10-22 16:15:43 -07:00
type : string
type : object
type : array
2020-11-12 19:48:39 -08:00
message :
2020-11-18 12:07:25 -08:00
description : Specifies request status message.
2020-10-22 16:15:43 -07:00
type : string
2020-11-12 19:48:39 -08:00
state :
2020-11-18 12:07:25 -08:00
description : State represents state of the generate request.
2020-10-22 16:15:43 -07:00
type : string
required :
2020-11-12 19:48:39 -08:00
- state
2020-10-22 16:15:43 -07:00
type : object
2020-11-12 19:48:39 -08:00
required :
- spec
type : object
2020-10-22 16:15:43 -07:00
served : true
storage : true
2020-11-18 12:07:25 -08:00
subresources :
status : {}
2020-10-22 16:15:43 -07:00
status :
acceptedNames :
kind : ""
plural : ""
conditions : [ ]
storedVersions : [ ]
---
2020-11-12 19:48:39 -08:00
apiVersion : apiextensions.k8s.io/v1
2020-10-22 16:15:43 -07:00
kind : CustomResourceDefinition
metadata :
2020-11-12 19:48:39 -08:00
annotations :
controller-gen.kubebuilder.io/version : v0.4.0
creationTimestamp : null
2020-10-22 16:15:43 -07:00
name : policies.kyverno.io
spec :
group : kyverno.io
names :
kind : Policy
2020-11-12 19:48:39 -08:00
listKind : PolicyList
2020-10-22 16:15:43 -07:00
plural : policies
shortNames :
- pol
singular : policy
scope : Namespaced
2020-11-12 19:48:39 -08:00
versions :
- additionalPrinterColumns :
- jsonPath : .spec.background
name : Background
type : string
- jsonPath : .spec.validationFailureAction
2021-04-08 12:10:30 -07:00
name : Action
2020-11-12 19:48:39 -08:00
type : string
name : v1
schema :
openAPIV3Schema :
2021-07-29 01:29:53 +05:30
description : 'Policy declares validation, mutation, and generation behaviors
for matching resources. See : https://kyverno.io/docs/writing-policies/ for
more information.'
2020-11-12 19:48:39 -08:00
properties :
apiVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-12 19:48:39 -08:00
type : string
kind :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-12 19:48:39 -08:00
type : string
metadata :
type : object
spec :
2021-06-24 15:13:15 -07:00
description : Spec defines policy behaviors and contains one or more rules.
2020-11-12 19:48:39 -08:00
properties :
background :
2021-07-29 01:29:53 +05:30
description : Background controls if rules are applied to existing
resources during a background scan. Optional. Default value is "true".
The value must be set to "false" if the policy rule uses variables
that are only available in the admission review request (e.g. user
name).
2020-11-12 19:48:39 -08:00
type : boolean
rules :
2021-07-29 01:29:53 +05:30
description : Rules is a list of Rule instances. A Policy contains
multiple rules and each rule can validate, mutate, or generate resources.
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : Rule defines a validation, mutation, or generation
control for matching resources. Each rules contains a match declaration
to select resources, and an optional exclude declaration to specify
which resources to exclude.
2020-11-12 19:48:39 -08:00
properties :
context :
2021-07-29 01:29:53 +05:30
description : Context defines variables and data sources that
can be used during rule execution.
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : ContextEntry adds variables and data sources
to a rule Context. Either a ConfigMap reference or a APILookup
must be provided.
2020-10-22 16:15:43 -07:00
properties :
2021-02-01 12:59:13 -08:00
apiCall :
2021-07-29 01:29:53 +05:30
description : APICall defines an HTTP request to the Kubernetes
API server. The JSON data retrieved is stored in the
context.
2021-02-01 12:59:13 -08:00
properties :
jmesPath :
2021-07-29 01:29:53 +05:30
description : JMESPath is an optional JSON Match Expression
that can be used to transform the JSON response
returned from the API server. For example a JMESPath
of "items | length(@)" applied to the API server
response to the URLPath "/apis/apps/v1/deployments"
will return the total count of deployments across
all namespaces.
2021-02-01 12:59:13 -08:00
type : string
urlPath :
2021-07-29 01:29:53 +05:30
description : URLPath is the URL path to be used in
the HTTP GET request to the Kubernetes API server
(e.g. "/api/v1/namespaces" or "/apis/apps/v1/deployments").
The format required is the same format used by the
`kubectl get --raw` command.
2021-02-01 12:59:13 -08:00
type : string
required :
- urlPath
type : object
2020-11-12 19:48:39 -08:00
configMap :
2021-02-01 12:59:13 -08:00
description : ConfigMap is the ConfigMap reference.
2020-11-12 19:48:39 -08:00
properties :
name :
2021-02-01 12:59:13 -08:00
description : Name is the ConfigMap name.
2020-11-12 19:48:39 -08:00
type : string
namespace :
2021-02-01 12:59:13 -08:00
description : Namespace is the ConfigMap namespace.
2020-11-12 19:48:39 -08:00
type : string
2021-02-01 12:59:13 -08:00
required :
- name
2020-11-12 19:48:39 -08:00
type : object
2020-10-22 16:15:43 -07:00
name :
2021-02-01 12:59:13 -08:00
description : Name is the variable name.
2020-10-22 16:15:43 -07:00
type : string
type : object
2020-11-12 19:48:39 -08:00
type : array
exclude :
2021-07-29 01:29:53 +05:30
description : ExcludeResources defines when this policy rule
should not be applied. The exclude criteria can include resource
information (e.g. kind, name, namespace, labels) and admission
review request information like the name or role.
2020-11-12 19:48:39 -08:00
properties :
2021-07-29 01:29:53 +05:30
all :
description : All allows specifying resources which will
be ANDed
items :
description : ResourceFilters allow users to "AND" or "OR"
between resources
properties :
clusterRoles :
description : ClusterRoles is the list of cluster-wide
role names for the user.
items :
type : string
type : array
resources :
description : ResourceDescription contains information
about the resource being created or modified.
properties :
annotations :
additionalProperties :
type : string
description : Annotations is a map of annotations
(key-value pairs of type string). Annotation
keys and values support the wildcard characters
"*" (matches zero or many characters) and "?"
(matches at least one character).
type : object
kinds :
description : Kinds is a list of resource kinds.
items :
type : string
type : array
name :
description : Name is the name of the resource.
The name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character).
type : string
names :
description : 'Names are the names of the resources.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character). NOTE : "Name" is being deprecated
in favor of "Names".'
items :
type : string
type : array
namespaceSelector :
description : 'NamespaceSelector is a label selector
for the resource namespace. Label keys and values
in `matchLabels` support the wildcard characters
`*` (matches zero or many characters) and `?`
(matches one character).Wildcards allows writing
label selectors like ["storage.k8s.io/*": "*"].
Note that using ["*" : "*"] matches any key
and value but does not match an empty label
set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
namespaces :
description : Namespaces is a list of namespaces
names. Each name supports wildcard characters
"*" (matches zero or many characters) and "?"
(at least one character).
items :
type : string
type : array
selector :
description : 'Selector is a label selector. Label
keys and values in `matchLabels` support the
wildcard characters `*` (matches zero or many
characters) and `?` (matches one character).
Wildcards allows writing label selectors like
[ "storage.k8s.io/*": "*" ] . Note that using ["*"
: "*" ] matches any key and value but does not
match an empty label set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
type : object
roles :
description : Roles is the list of namespaced role
names for the user.
items :
type : string
type : array
subjects :
description : Subjects is the list of subject names
like users, user groups, and service accounts.
items :
description : Subject contains a reference to the
object or user identities a role binding applies
to. This can either hold a direct API object
reference, or a value for non-objects such as
user and group names.
properties :
apiGroup :
description : APIGroup holds the API group of
the referenced subject. Defaults to "" for
ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io"
for User and Group subjects.
type : string
kind :
description : Kind of object being referenced.
Values defined by this API group are "User",
"Group" , and "ServiceAccount". If the Authorizer
does not recognized the kind value, the Authorizer
should report an error.
type : string
name :
description : Name of the object being referenced.
type : string
namespace :
description : Namespace of the referenced object. If
the object kind is non-namespace, such as
"User" or "Group", and this value is not empty
the Authorizer should report an error.
type : string
required :
- kind
- name
type : object
type : array
type : object
type : array
any :
description : Any allows specifying resources which will
be ORed
items :
description : ResourceFilters allow users to "AND" or "OR"
between resources
properties :
clusterRoles :
description : ClusterRoles is the list of cluster-wide
role names for the user.
items :
type : string
type : array
resources :
description : ResourceDescription contains information
about the resource being created or modified.
properties :
annotations :
additionalProperties :
type : string
description : Annotations is a map of annotations
(key-value pairs of type string). Annotation
keys and values support the wildcard characters
"*" (matches zero or many characters) and "?"
(matches at least one character).
type : object
kinds :
description : Kinds is a list of resource kinds.
items :
type : string
type : array
name :
description : Name is the name of the resource.
The name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character).
type : string
names :
description : 'Names are the names of the resources.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character). NOTE : "Name" is being deprecated
in favor of "Names".'
items :
type : string
type : array
namespaceSelector :
description : 'NamespaceSelector is a label selector
for the resource namespace. Label keys and values
in `matchLabels` support the wildcard characters
`*` (matches zero or many characters) and `?`
(matches one character).Wildcards allows writing
label selectors like ["storage.k8s.io/*": "*"].
Note that using ["*" : "*"] matches any key
and value but does not match an empty label
set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
namespaces :
description : Namespaces is a list of namespaces
names. Each name supports wildcard characters
"*" (matches zero or many characters) and "?"
(at least one character).
items :
type : string
type : array
selector :
description : 'Selector is a label selector. Label
keys and values in `matchLabels` support the
wildcard characters `*` (matches zero or many
characters) and `?` (matches one character).
Wildcards allows writing label selectors like
[ "storage.k8s.io/*": "*" ] . Note that using ["*"
: "*" ] matches any key and value but does not
match an empty label set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
type : object
roles :
description : Roles is the list of namespaced role
names for the user.
items :
type : string
type : array
subjects :
description : Subjects is the list of subject names
like users, user groups, and service accounts.
items :
description : Subject contains a reference to the
object or user identities a role binding applies
to. This can either hold a direct API object
reference, or a value for non-objects such as
user and group names.
properties :
apiGroup :
description : APIGroup holds the API group of
the referenced subject. Defaults to "" for
ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io"
for User and Group subjects.
type : string
kind :
description : Kind of object being referenced.
Values defined by this API group are "User",
"Group" , and "ServiceAccount". If the Authorizer
does not recognized the kind value, the Authorizer
should report an error.
type : string
name :
description : Name of the object being referenced.
type : string
namespace :
description : Namespace of the referenced object. If
the object kind is non-namespace, such as
"User" or "Group", and this value is not empty
the Authorizer should report an error.
type : string
required :
- kind
- name
type : object
type : array
type : object
type : array
2020-11-12 19:48:39 -08:00
clusterRoles :
2021-07-29 01:29:53 +05:30
description : ClusterRoles is the list of cluster-wide role
names for the user.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
resources :
2021-07-29 01:29:53 +05:30
description : ResourceDescription contains information about
the resource being created or modified.
2020-10-22 16:15:43 -07:00
properties :
2020-11-12 19:48:39 -08:00
annotations :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : Annotations is a map of annotations (key-value
pairs of type string). Annotation keys and values
support the wildcard characters "*" (matches zero
or many characters) and "?" (matches at least one
character).
2020-11-12 19:48:39 -08:00
type : object
kinds :
2020-11-15 22:47:55 -08:00
description : Kinds is a list of resource kinds.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
2020-10-22 16:15:43 -07:00
name :
2021-07-29 01:29:53 +05:30
description : Name is the name of the resource. The name
supports wildcard characters "*" (matches zero or
many characters) and "?" (at least one character).
2020-10-22 16:15:43 -07:00
type : string
2021-06-29 11:01:22 +05:30
names :
2021-07-29 01:29:53 +05:30
description : 'Names are the names of the resources.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one character).
NOTE : "Name" is being deprecated in favor of "Names".'
2021-06-29 11:01:22 +05:30
items :
type : string
type : array
2021-02-03 14:19:46 -08:00
namespaceSelector :
2021-07-29 01:29:53 +05:30
description : 'NamespaceSelector is a label selector
for the resource namespace. Label keys and values
in `matchLabels` support the wildcard characters `*`
(matches zero or many characters) and `?` (matches
one character).Wildcards allows writing label selectors
like ["storage.k8s.io/*": "*"]. Note that using ["*"
: "*" ] matches any key and value but does not match
an empty label set.'
2021-02-03 14:19:46 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label
selector requirements. The requirements are ANDed.
2021-02-03 14:19:46 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a
selector that contains values, a key, and an
operator that relates the key and values.
2021-02-03 14:19:46 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the
selector applies to.
2021-02-03 14:19:46 -08:00
type : string
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship
to a set of values. Valid operators are
In, NotIn, Exists and DoesNotExist.
2021-02-03 14:19:46 -08:00
type : string
values :
2021-07-29 01:29:53 +05:30
description : 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.
2021-02-03 14:19:46 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2021-02-03 14:19:46 -08:00
type : object
type : object
2020-11-12 19:48:39 -08:00
namespaces :
2021-07-29 01:29:53 +05:30
description : Namespaces is a list of namespaces names.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one character).
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
selector :
2021-07-29 01:29:53 +05:30
description : 'Selector is a label selector. Label keys
and values in `matchLabels` support the wildcard characters
`*` (matches zero or many characters) and `?` (matches
one character). Wildcards allows writing label selectors
like ["storage.k8s.io/*": "*"]. Note that using ["*"
: "*" ] matches any key and value but does not match
an empty label set.'
2020-11-12 19:48:39 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label
selector requirements. The requirements are ANDed.
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a
selector that contains values, a key, and an
operator that relates the key and values.
2020-11-12 19:48:39 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the
selector applies to.
2020-11-12 19:48:39 -08:00
type : string
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship
to a set of values. Valid operators are
In, NotIn, Exists and DoesNotExist.
2020-11-12 19:48:39 -08:00
type : string
values :
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-12 19:48:39 -08:00
type : object
type : object
2020-10-22 16:15:43 -07:00
type : object
2020-11-12 19:48:39 -08:00
roles :
2021-07-29 01:29:53 +05:30
description : Roles is the list of namespaced role names
for the user.
2020-11-12 19:48:39 -08:00
items :
2020-10-22 16:15:43 -07:00
type : string
2020-11-12 19:48:39 -08:00
type : array
subjects :
2021-07-29 01:29:53 +05:30
description : Subjects is the list of subject names like
users, user groups, and service accounts.
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : Subject contains a reference to the object
or user identities a role binding applies to. This
can either hold a direct API object reference, or a
value for non-objects such as user and group names.
2020-10-22 16:15:43 -07:00
properties :
2020-11-12 19:48:39 -08:00
apiGroup :
2021-07-29 01:29:53 +05:30
description : APIGroup holds the API group of the referenced
subject. Defaults to "" for ServiceAccount subjects.
Defaults to "rbac.authorization.k8s.io" for User
and Group subjects.
2020-11-12 19:48:39 -08:00
type : string
kind :
2021-07-29 01:29:53 +05:30
description : Kind of object being referenced. Values
defined by this API group are "User", "Group", and
"ServiceAccount" . If the Authorizer does not recognized
the kind value, the Authorizer should report an
error.
2020-11-12 19:48:39 -08:00
type : string
name :
description : Name of the object being referenced.
type : string
namespace :
2021-07-29 01:29:53 +05:30
description : Namespace of the referenced object. If
the object kind is non-namespace, such as "User"
or "Group", and this value is not empty the Authorizer
should report an error.
2020-11-12 19:48:39 -08:00
type : string
required :
- kind
- name
type : object
type : array
type : object
generate :
2020-12-01 23:19:08 -08:00
description : Generation is used to create new resources.
2020-11-12 19:48:39 -08:00
properties :
apiVersion :
2020-11-15 22:47:55 -08:00
description : APIVersion specifies resource apiVersion.
2020-10-22 16:15:43 -07:00
type : string
2020-11-12 19:48:39 -08:00
clone :
2021-07-29 01:29:53 +05:30
description : Clone specifies the source resource used to
populate each generated resource. At most one of Data
or Clone can be specified. If neither are provided, the
generated resource will be created with default data only.
2020-10-22 16:15:43 -07:00
properties :
name :
2020-11-15 22:47:55 -08:00
description : Name specifies name of the resource.
2020-10-22 16:15:43 -07:00
type : string
namespace :
2020-11-15 22:47:55 -08:00
description : Namespace specifies source resource namespace.
2020-10-22 16:15:43 -07:00
type : string
type : object
2020-11-12 19:48:39 -08:00
data :
2021-07-29 01:29:53 +05:30
description : Data provides the resource declaration used
to populate each generated resource. At most one of Data
or Clone must be specified. If neither are provided, the
generated resource will be created with default data only.
2020-11-12 19:48:39 -08:00
x-kubernetes-preserve-unknown-fields : true
kind :
2020-11-15 22:47:55 -08:00
description : Kind specifies resource kind.
2020-11-12 19:48:39 -08:00
type : string
name :
2020-11-15 22:47:55 -08:00
description : Name specifies the resource name.
2020-11-12 19:48:39 -08:00
type : string
namespace :
2020-11-15 22:47:55 -08:00
description : Namespace specifies resource namespace.
2020-11-12 19:48:39 -08:00
type : string
synchronize :
2021-07-29 01:29:53 +05:30
description : Synchronize controls if generated resources
should be kept in-sync with their source resource. If
Synchronize is set to "true" changes to generated resources
will be overwritten with resource data from Data or the
resource specified in the Clone declaration. Optional.
Defaults to "false" if not specified.
2020-11-12 19:48:39 -08:00
type : boolean
type : object
match :
2021-07-29 01:29:53 +05:30
description : MatchResources defines when this policy rule should
be applied. The match criteria can include resource information
(e.g. kind, name, namespace, labels) and admission review
request information like the user name or role. At least one
kind is required.
2020-11-12 19:48:39 -08:00
properties :
2021-07-29 01:29:53 +05:30
all :
description : All allows specifying resources which will
be ANDed
items :
description : ResourceFilters allow users to "AND" or "OR"
between resources
properties :
clusterRoles :
description : ClusterRoles is the list of cluster-wide
role names for the user.
items :
type : string
type : array
resources :
description : ResourceDescription contains information
about the resource being created or modified.
properties :
annotations :
additionalProperties :
type : string
description : Annotations is a map of annotations
(key-value pairs of type string). Annotation
keys and values support the wildcard characters
"*" (matches zero or many characters) and "?"
(matches at least one character).
type : object
kinds :
description : Kinds is a list of resource kinds.
items :
type : string
type : array
name :
description : Name is the name of the resource.
The name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character).
type : string
names :
description : 'Names are the names of the resources.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character). NOTE : "Name" is being deprecated
in favor of "Names".'
items :
type : string
type : array
namespaceSelector :
description : 'NamespaceSelector is a label selector
for the resource namespace. Label keys and values
in `matchLabels` support the wildcard characters
`*` (matches zero or many characters) and `?`
(matches one character).Wildcards allows writing
label selectors like ["storage.k8s.io/*": "*"].
Note that using ["*" : "*"] matches any key
and value but does not match an empty label
set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
namespaces :
description : Namespaces is a list of namespaces
names. Each name supports wildcard characters
"*" (matches zero or many characters) and "?"
(at least one character).
items :
type : string
type : array
selector :
description : 'Selector is a label selector. Label
keys and values in `matchLabels` support the
wildcard characters `*` (matches zero or many
characters) and `?` (matches one character).
Wildcards allows writing label selectors like
[ "storage.k8s.io/*": "*" ] . Note that using ["*"
: "*" ] matches any key and value but does not
match an empty label set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
type : object
roles :
description : Roles is the list of namespaced role
names for the user.
items :
type : string
type : array
subjects :
description : Subjects is the list of subject names
like users, user groups, and service accounts.
items :
description : Subject contains a reference to the
object or user identities a role binding applies
to. This can either hold a direct API object
reference, or a value for non-objects such as
user and group names.
properties :
apiGroup :
description : APIGroup holds the API group of
the referenced subject. Defaults to "" for
ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io"
for User and Group subjects.
type : string
kind :
description : Kind of object being referenced.
Values defined by this API group are "User",
"Group" , and "ServiceAccount". If the Authorizer
does not recognized the kind value, the Authorizer
should report an error.
type : string
name :
description : Name of the object being referenced.
type : string
namespace :
description : Namespace of the referenced object. If
the object kind is non-namespace, such as
"User" or "Group", and this value is not empty
the Authorizer should report an error.
type : string
required :
- kind
- name
type : object
type : array
type : object
type : array
any :
description : Any allows specifying resources which will
be ORed
items :
description : ResourceFilters allow users to "AND" or "OR"
between resources
properties :
clusterRoles :
description : ClusterRoles is the list of cluster-wide
role names for the user.
items :
type : string
type : array
resources :
description : ResourceDescription contains information
about the resource being created or modified.
properties :
annotations :
additionalProperties :
type : string
description : Annotations is a map of annotations
(key-value pairs of type string). Annotation
keys and values support the wildcard characters
"*" (matches zero or many characters) and "?"
(matches at least one character).
type : object
kinds :
description : Kinds is a list of resource kinds.
items :
type : string
type : array
name :
description : Name is the name of the resource.
The name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character).
type : string
names :
description : 'Names are the names of the resources.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one
character). NOTE : "Name" is being deprecated
in favor of "Names".'
items :
type : string
type : array
namespaceSelector :
description : 'NamespaceSelector is a label selector
for the resource namespace. Label keys and values
in `matchLabels` support the wildcard characters
`*` (matches zero or many characters) and `?`
(matches one character).Wildcards allows writing
label selectors like ["storage.k8s.io/*": "*"].
Note that using ["*" : "*"] matches any key
and value but does not match an empty label
set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
namespaces :
description : Namespaces is a list of namespaces
names. Each name supports wildcard characters
"*" (matches zero or many characters) and "?"
(at least one character).
items :
type : string
type : array
selector :
description : 'Selector is a label selector. Label
keys and values in `matchLabels` support the
wildcard characters `*` (matches zero or many
characters) and `?` (matches one character).
Wildcards allows writing label selectors like
[ "storage.k8s.io/*": "*" ] . Note that using ["*"
: "*" ] matches any key and value but does not
match an empty label set.'
properties :
matchExpressions :
description : matchExpressions is a list of
label selector requirements. The requirements
are ANDed.
items :
description : A label selector requirement
is a selector that contains values, a
key, and an operator that relates the
key and values.
properties :
key :
description : key is the label key that
the selector applies to.
type : string
operator :
description : operator represents a key's
relationship to a set of values. Valid
operators are In, NotIn, Exists and
DoesNotExist.
type : string
values :
description : 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.
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
description : 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.
type : object
type : object
type : object
roles :
description : Roles is the list of namespaced role
names for the user.
items :
type : string
type : array
subjects :
description : Subjects is the list of subject names
like users, user groups, and service accounts.
items :
description : Subject contains a reference to the
object or user identities a role binding applies
to. This can either hold a direct API object
reference, or a value for non-objects such as
user and group names.
properties :
apiGroup :
description : APIGroup holds the API group of
the referenced subject. Defaults to "" for
ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io"
for User and Group subjects.
type : string
kind :
description : Kind of object being referenced.
Values defined by this API group are "User",
"Group" , and "ServiceAccount". If the Authorizer
does not recognized the kind value, the Authorizer
should report an error.
type : string
name :
description : Name of the object being referenced.
type : string
namespace :
description : Namespace of the referenced object. If
the object kind is non-namespace, such as
"User" or "Group", and this value is not empty
the Authorizer should report an error.
type : string
required :
- kind
- name
type : object
type : array
type : object
type : array
2020-11-12 19:48:39 -08:00
clusterRoles :
2021-07-29 01:29:53 +05:30
description : ClusterRoles is the list of cluster-wide role
names for the user.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
resources :
2021-07-29 01:29:53 +05:30
description : ResourceDescription contains information about
the resource being created or modified. Requires at least
one tag to be specified when under MatchResources.
2020-10-22 16:15:43 -07:00
properties :
2020-11-12 19:48:39 -08:00
annotations :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : Annotations is a map of annotations (key-value
pairs of type string). Annotation keys and values
support the wildcard characters "*" (matches zero
or many characters) and "?" (matches at least one
character).
2020-11-12 19:48:39 -08:00
type : object
kinds :
2020-11-15 22:47:55 -08:00
description : Kinds is a list of resource kinds.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
name :
2021-07-29 01:29:53 +05:30
description : Name is the name of the resource. The name
supports wildcard characters "*" (matches zero or
many characters) and "?" (at least one character).
2020-10-22 16:15:43 -07:00
type : string
2021-06-29 11:01:22 +05:30
names :
2021-07-29 01:29:53 +05:30
description : 'Names are the names of the resources.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one character).
NOTE : "Name" is being deprecated in favor of "Names".'
2021-06-29 11:01:22 +05:30
items :
type : string
type : array
2021-02-03 14:19:46 -08:00
namespaceSelector :
2021-07-29 01:29:53 +05:30
description : 'NamespaceSelector is a label selector
for the resource namespace. Label keys and values
in `matchLabels` support the wildcard characters `*`
(matches zero or many characters) and `?` (matches
one character).Wildcards allows writing label selectors
like ["storage.k8s.io/*": "*"]. Note that using ["*"
: "*" ] matches any key and value but does not match
an empty label set.'
2021-02-03 14:19:46 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label
selector requirements. The requirements are ANDed.
2021-02-03 14:19:46 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a
selector that contains values, a key, and an
operator that relates the key and values.
2021-02-03 14:19:46 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the
selector applies to.
2021-02-03 14:19:46 -08:00
type : string
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship
to a set of values. Valid operators are
In, NotIn, Exists and DoesNotExist.
2021-02-03 14:19:46 -08:00
type : string
values :
2021-07-29 01:29:53 +05:30
description : 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.
2021-02-03 14:19:46 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2021-02-03 14:19:46 -08:00
type : object
type : object
2020-11-12 19:48:39 -08:00
namespaces :
2021-07-29 01:29:53 +05:30
description : Namespaces is a list of namespaces names.
Each name supports wildcard characters "*" (matches
zero or many characters) and "?" (at least one character).
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
selector :
2021-07-29 01:29:53 +05:30
description : 'Selector is a label selector. Label keys
and values in `matchLabels` support the wildcard characters
`*` (matches zero or many characters) and `?` (matches
one character). Wildcards allows writing label selectors
like ["storage.k8s.io/*": "*"]. Note that using ["*"
: "*" ] matches any key and value but does not match
an empty label set.'
2020-11-12 19:48:39 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label
selector requirements. The requirements are ANDed.
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a
selector that contains values, a key, and an
operator that relates the key and values.
2020-11-12 19:48:39 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the
selector applies to.
2020-11-12 19:48:39 -08:00
type : string
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship
to a set of values. Valid operators are
In, NotIn, Exists and DoesNotExist.
2020-11-12 19:48:39 -08:00
type : string
values :
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-12 19:48:39 -08:00
type : object
type : object
2020-10-22 16:15:43 -07:00
type : object
2020-11-12 19:48:39 -08:00
roles :
2021-07-29 01:29:53 +05:30
description : Roles is the list of namespaced role names
for the user.
2020-11-12 19:48:39 -08:00
items :
type : string
type : array
subjects :
2021-07-29 01:29:53 +05:30
description : Subjects is the list of subject names like
users, user groups, and service accounts.
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : Subject contains a reference to the object
or user identities a role binding applies to. This
can either hold a direct API object reference, or a
value for non-objects such as user and group names.
2020-11-12 19:48:39 -08:00
properties :
apiGroup :
2021-07-29 01:29:53 +05:30
description : APIGroup holds the API group of the referenced
subject. Defaults to "" for ServiceAccount subjects.
Defaults to "rbac.authorization.k8s.io" for User
and Group subjects.
2020-11-12 19:48:39 -08:00
type : string
kind :
2021-07-29 01:29:53 +05:30
description : Kind of object being referenced. Values
defined by this API group are "User", "Group", and
"ServiceAccount" . If the Authorizer does not recognized
the kind value, the Authorizer should report an
error.
2020-11-12 19:48:39 -08:00
type : string
name :
description : Name of the object being referenced.
type : string
namespace :
2021-07-29 01:29:53 +05:30
description : Namespace of the referenced object. If
the object kind is non-namespace, such as "User"
or "Group", and this value is not empty the Authorizer
should report an error.
2020-11-12 19:48:39 -08:00
type : string
required :
- kind
- name
type : object
type : array
2020-10-22 16:15:43 -07:00
type : object
2020-11-12 19:48:39 -08:00
mutate :
2020-12-01 23:19:08 -08:00
description : Mutation is used to modify matching resources.
2020-11-12 19:48:39 -08:00
properties :
overlay :
2021-07-29 01:29:53 +05:30
description : Overlay specifies an overlay pattern to modify
resources. DEPRECATED. Use PatchStrategicMerge instead.
Scheduled for removal in release 1.5+.
2020-11-18 17:36:06 -08:00
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
patchStrategicMerge :
2021-07-29 01:29:53 +05:30
description : PatchStrategicMerge is a strategic merge patch
used to modify resources. See https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/
and https://kubectl.docs.kubernetes.io/references/kustomize/patchesstrategicmerge/.
2020-11-18 17:36:06 -08:00
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
patches :
2021-07-29 01:29:53 +05:30
description : Patches specifies a RFC 6902 JSON Patch to
modify resources. DEPRECATED. Use PatchesJSON6902 instead.
Scheduled for removal in release 1.5+.
2020-11-12 19:48:39 -08:00
items :
2020-11-15 22:47:55 -08:00
description: 'Patch is a RFC 6902 JSON Patch. See : https://tools.ietf.org/html/rfc6902'
2020-11-12 19:48:39 -08:00
properties :
op :
2021-07-29 01:29:53 +05:30
description : Operation specifies operations supported
by JSON Patch. i.e:- add, replace and delete.
2020-11-12 19:48:39 -08:00
type : string
path :
2020-11-15 22:47:55 -08:00
description : Path specifies path of the resource.
2020-11-12 19:48:39 -08:00
type : string
value :
2020-11-15 22:47:55 -08:00
description : Value specifies the value to be applied.
2020-11-18 17:36:06 -08:00
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
type : object
2020-11-16 11:47:16 -08:00
nullable : true
2020-11-12 19:48:39 -08:00
type : array
2020-11-18 17:36:06 -08:00
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
patchesJson6902 :
2021-07-29 01:29:53 +05:30
description : PatchesJSON6902 is a list of RFC 6902 JSON
Patch declarations used to modify resources. See https://tools.ietf.org/html/rfc6902
and https://kubectl.docs.kubernetes.io/references/kustomize/patchesjson6902/.
2020-11-12 19:48:39 -08:00
type : string
type : object
name :
2021-07-29 01:29:53 +05:30
description : Name is a label to identify the rule, It must be
unique within the policy.
2021-02-26 03:13:35 +00:00
maxLength : 63
2020-11-12 19:48:39 -08:00
type : string
preconditions :
2021-07-29 01:29:53 +05:30
description : 'Preconditions are used to determine if a policy
rule should be applied by evaluating a set of conditions.
The declaration can contain nested `any` or `all` statements.
A direct list of conditions (without `any` or `all` statements
is supported for backwards compatibility but will be deprecated
in the next major release. See : https://kyverno.io/docs/writing-policies/preconditions/'
2021-03-02 10:01:06 +05:30
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
validate :
2020-12-01 23:19:08 -08:00
description : Validation is used to validate matching resources.
2020-11-12 19:48:39 -08:00
properties :
anyPattern :
2021-07-29 01:29:53 +05:30
description : AnyPattern specifies list of validation patterns.
At least one of the patterns must be satisfied for the
validation rule to succeed.
2020-11-18 17:36:06 -08:00
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
deny :
2021-07-29 01:29:53 +05:30
description : Deny defines conditions used to pass or fail
a validation rule.
2020-11-12 19:48:39 -08:00
properties :
conditions :
2021-07-29 01:29:53 +05:30
description : 'Multiple conditions can be declared under
an `any` or `all` statement. A direct list of conditions
(without `any` or `all` statements) is also supported
for backwards compatibility but will be deprecated
in the next major release. See : https://kyverno.io/docs/writing-policies/validate/#deny-rules'
2021-03-02 10:01:06 +05:30
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
type : object
message :
2021-07-29 01:29:53 +05:30
description : Message specifies a custom message to be displayed
on failure.
2020-11-12 19:48:39 -08:00
type : string
pattern :
2021-07-29 01:29:53 +05:30
description : Pattern specifies an overlay-style pattern
used to check resources.
2020-11-18 17:36:06 -08:00
x-kubernetes-preserve-unknown-fields : true
2020-11-12 19:48:39 -08:00
type : object
2021-07-14 09:57:16 -07:00
verifyImages :
2021-07-29 01:29:53 +05:30
description : VerifyImages is used to verify image signatures
and mutate them to add a digest
2021-07-14 09:57:16 -07:00
items :
2021-07-29 01:29:53 +05:30
description : ImageVerification validates that images that
match the specified pattern are signed with the supplied
public key. Once the image is verified it is mutated to
include the SHA digest retrieved during the registration.
2021-07-14 09:57:16 -07:00
properties :
image :
2021-07-29 01:29:53 +05:30
description : 'Image is the image name consisting of the
registry address, repository, image, and tag. Wildcards
(''*'' and ''?'') are allowed. See : https://kubernetes.io/docs/concepts/containers/images.'
2021-07-14 09:57:16 -07:00
type : string
key :
2021-07-29 01:29:53 +05:30
description : Key is the PEM encoded public key that the
image is signed with.
2021-07-14 09:57:16 -07:00
type : string
type : object
type : array
2020-11-12 19:48:39 -08:00
type : object
type : array
validationFailureAction :
2021-07-29 01:29:53 +05:30
description : ValidationFailureAction controls if a validation policy
rule failure should disallow the admission review request (enforce),
or allow (audit) the admission review request and report an error
in a policy report. Optional. The default value is "audit".
2020-11-12 19:48:39 -08:00
type : string
type : object
status :
2021-07-29 01:29:53 +05:30
description : Status contains policy runtime information. Deprecated. Policy
metrics are available via the metrics endpoint
2020-11-12 19:48:39 -08:00
properties :
averageExecutionTime :
2021-07-29 01:29:53 +05:30
description : AvgExecutionTime is the average time taken to process
the policy rules on a resource.
2020-11-12 19:48:39 -08:00
type : string
resourcesBlockedCount :
2021-07-29 01:29:53 +05:30
description : ResourcesBlockedCount is the total count of admission
review requests that were blocked by this policy.
2020-11-12 19:48:39 -08:00
type : integer
resourcesGeneratedCount :
2021-07-29 01:29:53 +05:30
description : ResourcesGeneratedCount is the total count of resources
that were generated by this policy.
2020-11-12 19:48:39 -08:00
type : integer
resourcesMutatedCount :
2021-07-29 01:29:53 +05:30
description : ResourcesMutatedCount is the total count of resources
that were mutated by this policy.
2020-11-12 19:48:39 -08:00
type : integer
ruleStatus :
2020-11-15 22:47:55 -08:00
description : Rules provides per rule statistics
2020-11-12 19:48:39 -08:00
items :
2021-07-29 01:29:53 +05:30
description : 'RuleStats provides statistics for an individual rule
within a policy. Deprecated. Policy metrics are now available
via the "/metrics" endpoint. See: https://kyverno.io/docs/monitoring-kyverno-with-prometheus-metrics/'
2020-11-12 19:48:39 -08:00
properties :
appliedCount :
2021-07-29 01:29:53 +05:30
description : AppliedCount is the total number of times this
rule was applied.
2020-11-12 19:48:39 -08:00
type : integer
averageExecutionTime :
2021-07-29 01:29:53 +05:30
description : ExecutionTime is the average time taken to execute
this rule.
2020-11-12 19:48:39 -08:00
type : string
failedCount :
2021-07-29 01:29:53 +05:30
description : FailedCount is the total count of policy error
results for this rule.
2020-11-12 19:48:39 -08:00
type : integer
resourcesBlockedCount :
2021-07-29 01:29:53 +05:30
description : ResourcesBlockedCount is the total count of admission
review requests that were blocked by this rule.
2020-11-12 19:48:39 -08:00
type : integer
resourcesGeneratedCount :
2021-07-29 01:29:53 +05:30
description : ResourcesGeneratedCount is the total count of resources
that were generated by this rule.
2020-11-12 19:48:39 -08:00
type : integer
resourcesMutatedCount :
2021-07-29 01:29:53 +05:30
description : ResourcesMutatedCount is the total count of resources
that were mutated by this rule.
2020-11-12 19:48:39 -08:00
type : integer
ruleName :
2020-11-15 22:47:55 -08:00
description : Name is the rule name.
2020-11-12 19:48:39 -08:00
type : string
violationCount :
2021-07-29 01:29:53 +05:30
description : ViolationCount is the total count of policy failure
results for this rule.
2020-11-12 19:48:39 -08:00
type : integer
required :
- ruleName
type : object
type : array
rulesAppliedCount :
2021-07-29 01:29:53 +05:30
description : RulesAppliedCount is the total number of times this policy
was applied.
2020-11-12 19:48:39 -08:00
type : integer
rulesFailedCount :
2021-07-29 01:29:53 +05:30
description : RulesFailedCount is the total count of policy execution
errors for this policy.
2020-11-12 19:48:39 -08:00
type : integer
violationCount :
2021-07-29 01:29:53 +05:30
description : ViolationCount is the total count of policy failure results
for this policy.
2020-11-12 19:48:39 -08:00
type : integer
type : object
required :
- spec
type : object
2020-10-22 16:15:43 -07:00
served : true
storage : true
2020-11-12 19:48:39 -08:00
subresources :
status : {}
status :
acceptedNames :
kind : ""
plural : ""
conditions : [ ]
storedVersions : [ ]
2020-10-22 16:15:43 -07:00
---
2020-11-12 19:48:39 -08:00
apiVersion : apiextensions.k8s.io/v1
2020-10-22 16:15:43 -07:00
kind : CustomResourceDefinition
metadata :
annotations :
2020-11-11 15:09:07 -08:00
controller-gen.kubebuilder.io/version : v0.4.0
2020-10-22 16:15:43 -07:00
creationTimestamp : null
2020-11-11 15:09:07 -08:00
name : policyreports.wgpolicyk8s.io
2020-10-22 16:15:43 -07:00
spec :
2020-11-11 15:09:07 -08:00
group : wgpolicyk8s.io
2020-10-22 16:15:43 -07:00
names :
kind : PolicyReport
listKind : PolicyReportList
plural : policyreports
shortNames :
- polr
singular : policyreport
scope : Namespaced
2020-11-11 15:09:07 -08:00
versions :
- additionalPrinterColumns :
- jsonPath : .scope.kind
name : Kind
priority : 1
type : string
- jsonPath : .scope.name
name : Name
priority : 1
type : string
- jsonPath : .summary.pass
name : Pass
type : integer
- jsonPath : .summary.fail
name : Fail
type : integer
- jsonPath : .summary.warn
name : Warn
type : integer
- jsonPath : .summary.error
name : Error
type : integer
- jsonPath : .summary.skip
name : Skip
type : integer
- jsonPath : .metadata.creationTimestamp
name : Age
type : date
name : v1alpha1
schema :
openAPIV3Schema :
description : PolicyReport is the Schema for the policyreports API
properties :
apiVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
kind :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
metadata :
type : object
results :
description : PolicyReportResult provides result details
items :
2021-07-29 01:29:53 +05:30
description : PolicyReportResult provides the result for an individual
policy
2020-11-11 15:09:07 -08:00
properties :
category :
description : Category indicates policy category
2020-10-22 16:15:43 -07:00
type : string
2020-11-11 15:09:07 -08:00
data :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : Data provides additional information for the policy
rule
2020-11-11 15:09:07 -08:00
type : object
message :
2021-07-29 01:29:53 +05:30
description : Message is a short user friendly description of the
policy rule
2020-11-11 15:09:07 -08:00
type : string
policy :
description : Policy is the name of the policy
type : string
resourceSelector :
2021-07-29 01:29:53 +05:30
description : ResourceSelector is an optional selector for policy
results that apply to multiple resources. For example, a policy
result may apply to all pods that match a label. Either a Resource
or a ResourceSelector can be specified. If neither are provided,
the result is assumed to be for the policy report scope.
2020-11-11 15:09:07 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label selector requirements.
The requirements are ANDed.
2020-11-11 15:09:07 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a selector that
contains values, a key, and an operator that relates the
key and values.
2020-11-11 15:09:07 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the selector applies
to.
2020-10-22 16:15:43 -07:00
type : string
2020-11-11 15:09:07 -08:00
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship
to a set of values. Valid operators are In, NotIn, Exists
and DoesNotExist.
2020-11-11 15:09:07 -08:00
type : string
values :
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-11 15:09:07 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2020-10-22 16:15:43 -07:00
type : object
2020-11-11 15:09:07 -08:00
type : object
resources :
2021-07-29 01:29:53 +05:30
description : Resources is an optional reference to the resource
checked by the policy and rule
2020-11-11 15:09:07 -08:00
items :
2021-07-29 01:29:53 +05:30
description : 'ObjectReference contains enough information to let
you inspect or modify the referred object. --- New uses of this
type are discouraged because of difficulty describing its usage
when embedded in APIs. 1. Ignored fields. It includes many
fields which are not generally honored. For instance, ResourceVersion
and FieldPath are both very rarely valid in actual usage. 2.
Invalid usage help. It is impossible to add specific help for
individual usage. In most embedded usages, there are particular restrictions
like, "must refer only to types A and B" or "UID not honored"
or "name must be restricted". Those cannot be well described
when embedded. 3. Inconsistent validation. Because the usages
are different, the validation rules are different by usage,
which makes it hard for users to predict what will happen. 4.
The fields are both imprecise and overly precise. Kind is not
a precise mapping to a URL. This can produce ambiguity during
interpretation and require a REST mapping. In most cases, the
dependency is on the group,resource tuple and the version
of the actual struct is irrelevant. 5. We cannot easily change
it. Because this type is embedded in many locations, updates
to this type will affect numerous schemas. Don''t make
new APIs embed an underspecified API type they do not control.
Instead of using this type, create a locally provided and used
type that is well-focused on your reference. For example, ServiceReferences
for admission registration : https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533
.'
2020-11-11 15:09:07 -08:00
properties :
apiVersion :
description : API version of the referent.
type : string
fieldPath :
2021-07-29 01:29:53 +05:30
description : '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. TODO : this design is not final and this field
is subject to change in the future.'
2020-11-11 15:09:07 -08:00
type : string
kind :
description: 'Kind of the referent. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type : string
name :
description: 'Name of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type : string
namespace :
description: 'Namespace of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type : string
resourceVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
uid :
description: 'UID of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type : string
2020-08-19 21:37:23 +05:30
type : object
2020-11-11 15:09:07 -08:00
type : array
rule :
description : Rule is the name of the policy rule
type : string
scored :
description : Scored indicates if this policy rule is scored
type : boolean
severity :
description : Severity indicates policy severity
enum :
- high
- low
- medium
type : string
status :
description : Status indicates the result of the policy rule check
enum :
- pass
- fail
- warn
- error
- skip
type : string
required :
- policy
type : object
type : array
scope :
2021-07-29 01:29:53 +05:30
description : Scope is an optional reference to the report scope (e.g.
a Deployment, Namespace, or Node)
2020-11-11 15:09:07 -08:00
properties :
apiVersion :
description : API version of the referent.
type : string
fieldPath :
2021-07-29 01:29:53 +05:30
description : '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. TODO : this design is not
final and this field is subject to change in the future.'
2020-11-11 15:09:07 -08:00
type : string
kind :
description: 'Kind of the referent. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type : string
name :
description: 'Name of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type : string
namespace :
description: 'Namespace of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type : string
resourceVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
uid :
description: 'UID of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type : string
type : object
scopeSelector :
2021-07-29 01:29:53 +05:30
description : ScopeSelector is an optional selector for multiple scopes
(e.g. Pods). Either one of, or none of, but not both of, Scope or ScopeSelector
should be specified.
2020-11-11 15:09:07 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label selector requirements.
The requirements are ANDed.
2020-10-22 16:15:43 -07:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a selector that contains
values, a key, and an operator that relates the key and values.
2020-10-22 16:15:43 -07:00
properties :
2020-11-11 15:09:07 -08:00
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the selector applies
to.
2020-10-22 16:15:43 -07:00
type : string
2020-11-11 15:09:07 -08:00
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship to a set
of values. Valid operators are In, NotIn, Exists and DoesNotExist.
2020-10-22 16:15:43 -07:00
type : string
2020-11-11 15:09:07 -08:00
values :
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-11 15:09:07 -08:00
items :
type : string
type : array
required :
- key
- operator
2020-10-22 16:15:43 -07:00
type : object
type : array
2020-11-11 15:09:07 -08:00
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2020-08-19 21:37:23 +05:30
type : object
2020-11-11 15:09:07 -08:00
type : object
summary :
description : PolicyReportSummary provides a summary of results
properties :
error :
2021-07-29 01:29:53 +05:30
description : Error provides the count of policies that could not be
evaluated
2020-11-11 15:09:07 -08:00
type : integer
fail :
2021-07-29 01:29:53 +05:30
description : Fail provides the count of policies whose requirements
were not met
2020-11-11 15:09:07 -08:00
type : integer
pass :
2021-07-29 01:29:53 +05:30
description : Pass provides the count of policies whose requirements
were met
2020-11-11 15:09:07 -08:00
type : integer
skip :
2021-07-29 01:29:53 +05:30
description : Skip indicates the count of policies that were not selected
for evaluation
2020-11-11 15:09:07 -08:00
type : integer
warn :
2021-07-29 01:29:53 +05:30
description : Warn provides the count of unscored policies whose requirements
were not met
2020-11-11 15:09:07 -08:00
type : integer
type : object
type : object
2020-10-22 16:15:43 -07:00
served : true
storage : true
2020-11-11 15:09:07 -08:00
subresources : {}
2020-10-22 16:15:43 -07:00
status :
acceptedNames :
kind : ""
plural : ""
conditions : [ ]
storedVersions : [ ]
---
2020-11-11 15:09:07 -08:00
apiVersion : apiextensions.k8s.io/v1
2020-10-22 16:15:43 -07:00
kind : CustomResourceDefinition
2020-08-26 18:50:38 +05:30
metadata :
annotations :
2020-11-11 15:09:07 -08:00
controller-gen.kubebuilder.io/version : v0.4.0
2020-10-22 16:15:43 -07:00
creationTimestamp : null
2020-10-30 19:26:53 -07:00
name : reportchangerequests.kyverno.io
2020-08-26 18:50:38 +05:30
spec :
2020-10-30 19:26:53 -07:00
group : kyverno.io
2020-08-26 18:50:38 +05:30
names :
2020-10-28 15:36:50 -07:00
kind : ReportChangeRequest
listKind : ReportChangeRequestList
plural : reportchangerequests
2020-12-01 12:52:46 -08:00
shortNames :
- rcr
2020-10-28 15:36:50 -07:00
singular : reportchangerequest
2020-08-26 18:50:38 +05:30
scope : Namespaced
2020-11-11 15:09:07 -08:00
versions :
- additionalPrinterColumns :
- jsonPath : .scope.kind
name : Kind
priority : 1
type : string
- jsonPath : .scope.name
name : Name
priority : 1
type : string
- jsonPath : .summary.pass
name : Pass
type : integer
- jsonPath : .summary.fail
name : Fail
type : integer
- jsonPath : .summary.warn
name : Warn
type : integer
- jsonPath : .summary.error
name : Error
type : integer
- jsonPath : .summary.skip
name : Skip
type : integer
- jsonPath : .metadata.creationTimestamp
name : Age
type : date
name : v1alpha1
schema :
openAPIV3Schema :
2021-07-29 01:29:53 +05:30
description : ReportChangeRequest is the Schema for the ReportChangeRequests
API
2020-11-11 15:09:07 -08:00
properties :
apiVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
kind :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
metadata :
type : object
results :
description : PolicyReportResult provides result details
items :
2021-07-29 01:29:53 +05:30
description : PolicyReportResult provides the result for an individual
policy
2020-11-11 15:09:07 -08:00
properties :
category :
description : Category indicates policy category
2020-08-26 18:50:38 +05:30
type : string
2020-11-11 15:09:07 -08:00
data :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : Data provides additional information for the policy
rule
2020-11-11 15:09:07 -08:00
type : object
message :
2021-07-29 01:29:53 +05:30
description : Message is a short user friendly description of the
policy rule
2020-11-11 15:09:07 -08:00
type : string
policy :
description : Policy is the name of the policy
type : string
resourceSelector :
2021-07-29 01:29:53 +05:30
description : ResourceSelector is an optional selector for policy
results that apply to multiple resources. For example, a policy
result may apply to all pods that match a label. Either a Resource
or a ResourceSelector can be specified. If neither are provided,
the result is assumed to be for the policy report scope.
2020-11-11 15:09:07 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label selector requirements.
The requirements are ANDed.
2020-11-11 15:09:07 -08:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a selector that
contains values, a key, and an operator that relates the
key and values.
2020-11-11 15:09:07 -08:00
properties :
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the selector applies
to.
2020-09-03 22:35:34 +05:30
type : string
2020-11-11 15:09:07 -08:00
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship
to a set of values. Valid operators are In, NotIn, Exists
and DoesNotExist.
2020-11-11 15:09:07 -08:00
type : string
values :
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-11 15:09:07 -08:00
items :
type : string
type : array
required :
- key
- operator
type : object
type : array
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2020-09-03 22:35:34 +05:30
type : object
2020-11-11 15:09:07 -08:00
type : object
resources :
2021-07-29 01:29:53 +05:30
description : Resources is an optional reference to the resource
checked by the policy and rule
2020-11-11 15:09:07 -08:00
items :
2021-07-29 01:29:53 +05:30
description : 'ObjectReference contains enough information to let
you inspect or modify the referred object. --- New uses of this
type are discouraged because of difficulty describing its usage
when embedded in APIs. 1. Ignored fields. It includes many
fields which are not generally honored. For instance, ResourceVersion
and FieldPath are both very rarely valid in actual usage. 2.
Invalid usage help. It is impossible to add specific help for
individual usage. In most embedded usages, there are particular restrictions
like, "must refer only to types A and B" or "UID not honored"
or "name must be restricted". Those cannot be well described
when embedded. 3. Inconsistent validation. Because the usages
are different, the validation rules are different by usage,
which makes it hard for users to predict what will happen. 4.
The fields are both imprecise and overly precise. Kind is not
a precise mapping to a URL. This can produce ambiguity during
interpretation and require a REST mapping. In most cases, the
dependency is on the group,resource tuple and the version
of the actual struct is irrelevant. 5. We cannot easily change
it. Because this type is embedded in many locations, updates
to this type will affect numerous schemas. Don''t make
new APIs embed an underspecified API type they do not control.
Instead of using this type, create a locally provided and used
type that is well-focused on your reference. For example, ServiceReferences
for admission registration : https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533
.'
2020-11-11 15:09:07 -08:00
properties :
apiVersion :
description : API version of the referent.
type : string
fieldPath :
2021-07-29 01:29:53 +05:30
description : '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. TODO : this design is not final and this field
is subject to change in the future.'
2020-11-11 15:09:07 -08:00
type : string
kind :
description: 'Kind of the referent. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type : string
name :
description: 'Name of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type : string
namespace :
description: 'Namespace of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type : string
resourceVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
uid :
description: 'UID of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type : string
2020-09-03 22:35:34 +05:30
type : object
2020-11-11 15:09:07 -08:00
type : array
rule :
description : Rule is the name of the policy rule
type : string
scored :
description : Scored indicates if this policy rule is scored
type : boolean
severity :
description : Severity indicates policy severity
enum :
- high
- low
- medium
type : string
status :
description : Status indicates the result of the policy rule check
enum :
- pass
- fail
- warn
- error
- skip
type : string
required :
- policy
type : object
type : array
scope :
2021-07-29 01:29:53 +05:30
description : Scope is an optional reference to the report scope (e.g.
a Deployment, Namespace, or Node)
2020-11-11 15:09:07 -08:00
properties :
apiVersion :
description : API version of the referent.
type : string
fieldPath :
2021-07-29 01:29:53 +05:30
description : '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. TODO : this design is not
final and this field is subject to change in the future.'
2020-11-11 15:09:07 -08:00
type : string
kind :
description: 'Kind of the referent. More info : https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type : string
name :
description: 'Name of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
type : string
namespace :
description: 'Namespace of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
type : string
resourceVersion :
2021-07-29 01:29:53 +05:30
description : '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'
2020-11-11 15:09:07 -08:00
type : string
uid :
description: 'UID of the referent. More info : https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
type : string
type : object
scopeSelector :
2021-07-29 01:29:53 +05:30
description : ScopeSelector is an optional selector for multiple scopes
(e.g. Pods). Either one of, or none of, but not both of, Scope or ScopeSelector
should be specified.
2020-11-11 15:09:07 -08:00
properties :
matchExpressions :
2021-07-29 01:29:53 +05:30
description : matchExpressions is a list of label selector requirements.
The requirements are ANDed.
2020-09-16 06:56:38 -07:00
items :
2021-07-29 01:29:53 +05:30
description : A label selector requirement is a selector that contains
values, a key, and an operator that relates the key and values.
2020-09-16 06:56:38 -07:00
properties :
2020-11-11 15:09:07 -08:00
key :
2021-07-29 01:29:53 +05:30
description : key is the label key that the selector applies
to.
2020-09-16 06:56:38 -07:00
type : string
2020-11-11 15:09:07 -08:00
operator :
2021-07-29 01:29:53 +05:30
description : operator represents a key's relationship to a set
of values. Valid operators are In, NotIn, Exists and DoesNotExist.
2020-09-16 06:56:38 -07:00
type : string
2020-11-11 15:09:07 -08:00
values :
2021-07-29 01:29:53 +05:30
description : 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.
2020-11-11 15:09:07 -08:00
items :
type : string
type : array
required :
- key
- operator
2020-09-16 06:56:38 -07:00
type : object
type : array
2020-11-11 15:09:07 -08:00
matchLabels :
additionalProperties :
type : string
2021-07-29 01:29:53 +05:30
description : 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.
2020-09-15 11:20:08 -07:00
type : object
2020-11-11 15:09:07 -08:00
type : object
summary :
description : PolicyReportSummary provides a summary of results
properties :
error :
2021-07-29 01:29:53 +05:30
description : Error provides the count of policies that could not be
evaluated
2020-11-11 15:09:07 -08:00
type : integer
fail :
2021-07-29 01:29:53 +05:30
description : Fail provides the count of policies whose requirements
were not met
2020-11-11 15:09:07 -08:00
type : integer
pass :
2021-07-29 01:29:53 +05:30
description : Pass provides the count of policies whose requirements
were met
2020-11-11 15:09:07 -08:00
type : integer
skip :
2021-07-29 01:29:53 +05:30
description : Skip indicates the count of policies that were not selected
for evaluation
2020-11-11 15:09:07 -08:00
type : integer
warn :
2021-07-29 01:29:53 +05:30
description : Warn provides the count of unscored policies whose requirements
were not met
2020-11-11 15:09:07 -08:00
type : integer
type : object
type : object
2020-08-26 18:50:38 +05:30
served : true
storage : true
2020-11-11 15:09:07 -08:00
subresources : {}
2020-08-26 18:50:38 +05:30
status :
acceptedNames :
kind : ""
plural : ""
conditions : [ ]
storedVersions : [ ]
---
2020-06-05 13:51:22 -07:00
apiVersion : v1
kind : ServiceAccount
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : kyverno-service-account
namespace : kyverno
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRole
2020-11-19 14:22:54 -08:00
metadata :
labels :
2021-06-01 21:58:37 -07:00
app : kyverno
2020-11-19 14:22:54 -08:00
rbac.authorization.k8s.io/aggregate-to-admin : "true"
name : kyverno:admin-policies
rules :
- apiGroups :
- kyverno.io
resources :
- policies
- clusterpolicies
verbs :
- '*'
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRole
metadata :
labels :
2021-06-01 21:58:37 -07:00
app : kyverno
2020-11-19 14:22:54 -08:00
rbac.authorization.k8s.io/aggregate-to-admin : "true"
name : kyverno:admin-policyreport
rules :
- apiGroups :
- wgpolicyk8s.io/v1alpha1
resources :
- policyreports
- clusterpolicyreports
verbs :
- '*'
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRole
metadata :
labels :
2021-06-01 21:58:37 -07:00
app : kyverno
2020-11-19 14:22:54 -08:00
rbac.authorization.k8s.io/aggregate-to-admin : "true"
name : kyverno:admin-reportchangerequest
rules :
- apiGroups :
- kyverno.io
resources :
- reportchangerequests
- clusterreportchangerequests
verbs :
- '*'
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRole
2020-06-05 13:51:22 -07:00
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : kyverno:customresources
rules :
- apiGroups :
- '*'
resources :
2020-08-24 12:27:16 -07:00
- policies
- policies/status
2020-06-05 13:51:22 -07:00
- clusterpolicies
- clusterpolicies/status
2020-08-29 04:31:40 +05:30
- policyreports
- policyreports/status
- clusterpolicyreports
- clusterpolicyreports/status
2020-06-05 13:51:22 -07:00
- generaterequests
- generaterequests/status
2020-10-28 15:36:50 -07:00
- reportchangerequests
- reportchangerequests/status
- clusterreportchangerequests
- clusterreportchangerequests/status
2020-06-05 13:51:22 -07:00
verbs :
- create
- delete
- get
- list
- patch
- update
- watch
2021-07-14 09:57:16 -07:00
- deletecollection
2020-11-02 16:59:16 -08:00
- apiGroups :
- apiextensions.k8s.io
resources :
- customresourcedefinitions
verbs :
- delete
2020-06-05 13:51:22 -07:00
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRole
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : kyverno:generatecontroller
rules :
- apiGroups :
- '*'
resources :
- namespaces
- networkpolicies
- secrets
- configmaps
- resourcequotas
- limitranges
verbs :
- create
- update
- delete
2020-11-19 14:22:54 -08:00
- list
2020-06-05 13:51:22 -07:00
- get
- apiGroups :
- '*'
resources :
- namespaces
verbs :
- watch
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRole
2021-06-08 12:37:19 -07:00
metadata :
labels :
app : kyverno
name : kyverno:leaderelection
rules :
- apiGroups :
- coordination.k8s.io
resources :
- leases
verbs :
- create
- delete
- get
- patch
- update
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRole
2020-06-05 13:51:22 -07:00
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : kyverno:policycontroller
rules :
- apiGroups :
- '*'
resources :
- '*'
verbs :
- get
- list
- update
2021-02-08 17:35:35 -08:00
- watch
2020-06-05 13:51:22 -07:00
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRole
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : kyverno:userinfo
rules :
- apiGroups :
- '*'
resources :
2020-07-10 20:04:52 -07:00
- roles
- clusterroles
2020-06-05 13:51:22 -07:00
- rolebindings
- clusterrolebindings
- configmaps
2020-09-04 03:04:23 +05:30
- namespaces
2020-06-05 13:51:22 -07:00
verbs :
- watch
2020-09-04 03:04:23 +05:30
- list
2020-06-05 13:51:22 -07:00
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRole
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : kyverno:webhook
rules :
- apiGroups :
- '*'
resources :
- events
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
- certificatesigningrequests
- certificatesigningrequests/approval
verbs :
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups :
- certificates.k8s.io
resourceNames :
- kubernetes.io/legacy-unknown
resources :
- certificatesigningrequests
- certificatesigningrequests/approval
- certificatesigningrequests/status
verbs :
- create
- delete
- get
- update
- watch
- apiGroups :
- certificates.k8s.io
resourceNames :
- kubernetes.io/legacy-unknown
resources :
- signers
verbs :
- approve
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRoleBinding
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : kyverno:customresources
roleRef :
apiGroup : rbac.authorization.k8s.io
kind : ClusterRole
name : kyverno:customresources
subjects :
- kind : ServiceAccount
name : kyverno-service-account
namespace : kyverno
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRoleBinding
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : kyverno:generatecontroller
roleRef :
apiGroup : rbac.authorization.k8s.io
kind : ClusterRole
name : kyverno:generatecontroller
subjects :
- kind : ServiceAccount
name : kyverno-service-account
namespace : kyverno
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRoleBinding
2021-06-08 12:37:19 -07:00
metadata :
labels :
app : kyverno
name : kyverno:leaderelection
roleRef :
apiGroup : rbac.authorization.k8s.io
kind : ClusterRole
name : kyverno:leaderelection
subjects :
- kind : ServiceAccount
name : kyverno-service-account
namespace : kyverno
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRoleBinding
2020-06-05 13:51:22 -07:00
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : kyverno:policycontroller
roleRef :
apiGroup : rbac.authorization.k8s.io
kind : ClusterRole
name : kyverno:policycontroller
subjects :
- kind : ServiceAccount
name : kyverno-service-account
namespace : kyverno
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRoleBinding
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : kyverno:userinfo
roleRef :
apiGroup : rbac.authorization.k8s.io
kind : ClusterRole
name : kyverno:userinfo
subjects :
- kind : ServiceAccount
name : kyverno-service-account
namespace : kyverno
---
apiVersion : rbac.authorization.k8s.io/v1
kind : ClusterRoleBinding
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : kyverno:webhook
roleRef :
apiGroup : rbac.authorization.k8s.io
kind : ClusterRole
name : kyverno:webhook
subjects :
- kind : ServiceAccount
name : kyverno-service-account
namespace : kyverno
---
apiVersion : v1
data :
2020-08-07 17:09:24 -07:00
excludeGroupRole : system:serviceaccounts:kube-system,system:nodes,system:kube-scheduler
2021-06-30 00:43:11 +03:00
generateSuccessEvents : "false"
2021-04-12 20:29:51 -07:00
resourceFilters : '[Event,*,*][*,kube-system,*][*,kube-public,*][*,kube-node-lease,*][Node,*,*][APIService,*,*][TokenReview,*,*][SubjectAccessReview,*,*][SelfSubjectAccessReview,*,*][*,kyverno,*][Binding,*,*][ReplicaSet,*,*][ReportChangeRequest,*,*][ClusterReportChangeRequest,*,*][PolicyReport,*,*][ClusterPolicyReport,*,*]'
2020-06-05 13:51:22 -07:00
kind : ConfigMap
metadata :
2021-06-01 21:58:37 -07:00
labels :
app : kyverno
2020-06-05 13:51:22 -07:00
name : init-config
namespace : kyverno
---
apiVersion : v1
kind : Service
metadata :
labels :
app : kyverno
name : kyverno-svc
namespace : kyverno
spec :
ports :
2021-06-01 21:58:37 -07:00
- name : https
port : 443
2020-10-22 11:26:22 -07:00
targetPort : https
2021-06-10 16:53:29 -04:00
selector :
app : kyverno
app.kubernetes.io/name : kyverno
---
apiVersion : v1
kind : Service
metadata :
labels :
app : kyverno
name : kyverno-svc-metrics
namespace : kyverno
spec :
ports :
2021-06-01 21:58:37 -07:00
- name : metrics-port
port : 8000
targetPort : metrics-port
2020-06-05 13:51:22 -07:00
selector :
2020-11-18 12:07:25 -08:00
app : kyverno
2021-04-12 20:29:51 -07:00
app.kubernetes.io/name : kyverno