GlobalContextEntry declares resources to be cached.
Field | Description | ||||
---|---|---|---|---|---|
apiVersion string |
kyverno.io/v2alpha1 |
||||
kind string |
GlobalContextEntry |
||||
metadata
*
meta/v1.ObjectMeta
|
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||||
spec
*
GlobalContextEntrySpec
|
Spec declares policy exception behaviors.
|
||||
status
GlobalContextEntryStatus
|
Status contains globalcontextentry runtime data. |
(Appears in: GlobalContextEntrySpec)
Field | Description |
---|---|
APICall
*
APICall
|
(Members of |
refreshInterval
*
meta/v1.Duration
|
RefreshInterval defines the interval in duration at which to poll the APICall. The duration is a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". |
(Appears in: GlobalContextEntry)
GlobalContextEntrySpec stores policy exception spec
Field | Description |
---|---|
kubernetesResource
*
KubernetesResource
|
Stores a list of Kubernetes resources which will be cached. Mutually exclusive with APICall. |
apiCall
*
ExternalAPICall
|
Stores results from an API call which will be cached. Mutually exclusive with KubernetesResource. This can be used to make calls to external (non-Kubernetes API server) services. It can also be used to make calls to the Kubernetes API server in such cases:
|
(Appears in: GlobalContextEntry)
Field | Description |
---|---|
ready
*
bool
|
Deprecated in favor of Conditions |
conditions
[]meta/v1.Condition
|
|
lastRefreshTime
meta/v1.Time
|
Indicates the time when the globalcontextentry was last refreshed successfully for the API Call |
(Appears in: GlobalContextEntrySpec)
KubernetesResource stores infos about kubernetes resource that should be cached
Field | Description |
---|---|
group
*
string
|
Group defines the group of the resource. |
version
*
string
|
Version defines the version of the resource. |
resource
*
string
|
Resource defines the type of the resource. Requires the pluralized form of the resource kind in lowercase. (Ex., "deployments") |
namespace
string
|
Namespace defines the namespace of the resource. Leave empty for cluster scoped resources. If left empty for namespaced resources, all resources from all namespaces will be cached. |