2022-04-25 20:20:40 +08:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
|
|
|
<title>Kyverno API</title>
|
|
|
|
<style>
|
|
|
|
.bg-blue {
|
|
|
|
color: #ffffff;
|
|
|
|
background-color: #1589dd;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
|
|
|
<a class="navbar-brand" href="#"><p><b>Packages : </b></p></a>
|
|
|
|
<ul style="list-style:none">
|
|
|
|
<li>
|
|
|
|
<a href="#kyverno.io%2fv1beta1"><b style="color: white">kyverno.io/v1beta1</b></a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
<h2 id="kyverno.io/v1beta1">kyverno.io/v1beta1</h2>
|
|
|
|
<p>
|
|
|
|
<p>Package v1beta1 contains API Schema definitions for the policy v1alpha1 API group</p>
|
|
|
|
</p>
|
|
|
|
Resource Types:
|
2022-04-28 14:51:44 +02:00
|
|
|
<ul><li>
|
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequest">UpdateRequest</a>
|
|
|
|
</li></ul>
|
2022-04-25 20:20:40 +08:00
|
|
|
<hr />
|
2022-04-28 14:51:44 +02:00
|
|
|
<h3 id="kyverno.io/v1beta1.UpdateRequest">UpdateRequest
|
2022-04-25 20:20:40 +08:00
|
|
|
</h3>
|
|
|
|
<p>
|
2022-04-28 14:51:44 +02:00
|
|
|
<p>UpdateRequestStatus is a request to process mutate and generate rules in background.</p>
|
2022-04-25 20:20:40 +08:00
|
|
|
</p>
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead class="thead-dark">
|
|
|
|
<tr>
|
|
|
|
<th>Field</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<code>apiVersion</code></br>
|
|
|
|
string</td>
|
|
|
|
<td>
|
|
|
|
<code>
|
|
|
|
kyverno.io/v1beta1
|
|
|
|
</code>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<code>kind</code></br>
|
2022-04-25 20:20:40 +08:00
|
|
|
string
|
2022-04-28 14:51:44 +02:00
|
|
|
</td>
|
|
|
|
<td><code>UpdateRequest</code></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<code>metadata</code></br>
|
|
|
|
<em>
|
|
|
|
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#objectmeta-v1-meta">
|
|
|
|
Kubernetes meta/v1.ObjectMeta
|
|
|
|
</a>
|
2022-04-25 20:20:40 +08:00
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
Refer to the Kubernetes API documentation for the fields of the
|
|
|
|
<code>metadata</code> field.
|
2022-04-25 20:20:40 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<code>spec</code></br>
|
2022-04-25 20:20:40 +08:00
|
|
|
<em>
|
2022-04-28 14:51:44 +02:00
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequestSpec">
|
|
|
|
UpdateRequestSpec
|
2022-04-25 20:20:40 +08:00
|
|
|
</a>
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<p>Spec is the information to identify the update request.</p>
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
<table class="table table-striped">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<code>requestType</code></br>
|
|
|
|
<em>
|
|
|
|
<a href="#kyverno.io/v1beta1.RequestType">
|
|
|
|
RequestType
|
|
|
|
</a>
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p>Type represents request type for background processing</p>
|
2022-04-25 20:20:40 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-04-28 14:51:44 +02:00
|
|
|
<td>
|
|
|
|
<code>policy</code></br>
|
|
|
|
<em>
|
|
|
|
string
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p>Specifies the name of the policy.</p>
|
|
|
|
</td>
|
2022-04-25 20:20:40 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<code>resource</code></br>
|
2022-04-25 20:20:40 +08:00
|
|
|
<em>
|
2022-04-28 14:51:44 +02:00
|
|
|
github.com/kyverno/kyverno/api/kyverno/v1.ResourceSpec
|
2022-04-25 20:20:40 +08:00
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<p>ResourceSpec is the information to identify the update request.</p>
|
2022-04-25 20:20:40 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<code>context</code></br>
|
2022-04-25 20:20:40 +08:00
|
|
|
<em>
|
2022-04-28 14:51:44 +02:00
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequestSpecContext">
|
|
|
|
UpdateRequestSpecContext
|
|
|
|
</a>
|
2022-04-25 20:20:40 +08:00
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<p>Context …</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2022-04-25 20:20:40 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<code>status</code></br>
|
2022-04-25 20:20:40 +08:00
|
|
|
<em>
|
2022-04-28 14:51:44 +02:00
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequestStatus">
|
|
|
|
UpdateRequestStatus
|
2022-04-25 20:20:40 +08:00
|
|
|
</a>
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<em>(Optional)</em>
|
2022-04-28 14:51:44 +02:00
|
|
|
<p>Status contains statistics related to update request.</p>
|
2022-04-25 20:20:40 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<hr />
|
2022-04-28 14:51:44 +02:00
|
|
|
<h3 id="kyverno.io/v1beta1.AdmissionRequestInfoObject">AdmissionRequestInfoObject
|
|
|
|
</h3>
|
2022-04-25 20:20:40 +08:00
|
|
|
<p>
|
|
|
|
(<em>Appears on:</em>
|
2022-04-28 14:51:44 +02:00
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequestSpecContext">UpdateRequestSpecContext</a>)
|
2022-04-25 20:20:40 +08:00
|
|
|
</p>
|
|
|
|
<p>
|
2022-04-28 14:51:44 +02:00
|
|
|
<p>AdmissionRequestInfoObject stores the admission request and operation details</p>
|
2022-04-25 20:20:40 +08:00
|
|
|
</p>
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead class="thead-dark">
|
|
|
|
<tr>
|
|
|
|
<th>Field</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<code>admissionRequest</code></br>
|
2022-04-25 20:20:40 +08:00
|
|
|
<em>
|
2022-05-30 11:56:03 +08:00
|
|
|
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#admissionrequest-v1-admission">
|
|
|
|
Kubernetes admission/v1.AdmissionRequest
|
|
|
|
</a>
|
2022-04-25 20:20:40 +08:00
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<em>(Optional)</em>
|
2022-04-25 20:20:40 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<code>operation</code></br>
|
2022-04-25 20:20:40 +08:00
|
|
|
<em>
|
2022-04-28 14:51:44 +02:00
|
|
|
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#operation-v1-admission">
|
|
|
|
Kubernetes admission/v1.Operation
|
2022-04-25 20:20:40 +08:00
|
|
|
</a>
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<em>(Optional)</em>
|
2022-04-25 20:20:40 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2022-04-28 14:51:44 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<hr />
|
|
|
|
<h3 id="kyverno.io/v1beta1.RequestInfo">RequestInfo
|
|
|
|
</h3>
|
|
|
|
<p>
|
|
|
|
(<em>Appears on:</em>
|
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequestSpecContext">UpdateRequestSpecContext</a>)
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<p>RequestInfo contains permission info carried in an admission request.</p>
|
|
|
|
</p>
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead class="thead-dark">
|
2022-04-25 20:20:40 +08:00
|
|
|
<tr>
|
2022-04-28 14:51:44 +02:00
|
|
|
<th>Field</th>
|
|
|
|
<th>Description</th>
|
2022-04-25 20:20:40 +08:00
|
|
|
</tr>
|
2022-04-28 14:51:44 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2022-04-25 20:20:40 +08:00
|
|
|
<tr>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<code>roles</code></br>
|
2022-04-25 20:20:40 +08:00
|
|
|
<em>
|
2022-04-28 14:51:44 +02:00
|
|
|
[]string
|
2022-04-25 20:20:40 +08:00
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<em>(Optional)</em>
|
|
|
|
<p>Roles is a list of possible role send the request.</p>
|
2022-04-25 20:20:40 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<code>clusterRoles</code></br>
|
2022-04-25 20:20:40 +08:00
|
|
|
<em>
|
2022-04-28 14:51:44 +02:00
|
|
|
[]string
|
2022-04-25 20:20:40 +08:00
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<em>(Optional)</em>
|
|
|
|
<p>ClusterRoles is a list of possible clusterRoles send the request.</p>
|
2022-04-25 20:20:40 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-04-28 14:51:44 +02:00
|
|
|
<code>userInfo</code></br>
|
2022-04-25 20:20:40 +08:00
|
|
|
<em>
|
2022-04-28 14:51:44 +02:00
|
|
|
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#userinfo-v1-authentication">
|
|
|
|
Kubernetes authentication/v1.UserInfo
|
2022-04-25 20:20:40 +08:00
|
|
|
</a>
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<em>(Optional)</em>
|
2022-04-28 14:51:44 +02:00
|
|
|
<p>UserInfo is the userInfo carried in the admission request.</p>
|
2022-04-25 20:20:40 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<hr />
|
2022-04-28 14:51:44 +02:00
|
|
|
<h3 id="kyverno.io/v1beta1.RequestType">RequestType
|
|
|
|
(<code>string</code> alias)</p></h3>
|
|
|
|
<p>
|
|
|
|
(<em>Appears on:</em>
|
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequestSpec">UpdateRequestSpec</a>)
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
</p>
|
2022-04-25 20:20:40 +08:00
|
|
|
<h3 id="kyverno.io/v1beta1.UpdateRequestSpec">UpdateRequestSpec
|
|
|
|
</h3>
|
|
|
|
<p>
|
|
|
|
(<em>Appears on:</em>
|
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequest">UpdateRequest</a>)
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<p>UpdateRequestSpec stores the request specification.</p>
|
|
|
|
</p>
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead class="thead-dark">
|
|
|
|
<tr>
|
|
|
|
<th>Field</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<code>requestType</code></br>
|
|
|
|
<em>
|
|
|
|
<a href="#kyverno.io/v1beta1.RequestType">
|
|
|
|
RequestType
|
|
|
|
</a>
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p>Type represents request type for background processing</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<code>policy</code></br>
|
|
|
|
<em>
|
|
|
|
string
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p>Specifies the name of the policy.</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<code>resource</code></br>
|
|
|
|
<em>
|
|
|
|
github.com/kyverno/kyverno/api/kyverno/v1.ResourceSpec
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p>ResourceSpec is the information to identify the update request.</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<code>context</code></br>
|
|
|
|
<em>
|
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequestSpecContext">
|
|
|
|
UpdateRequestSpecContext
|
|
|
|
</a>
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p>Context …</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<hr />
|
|
|
|
<h3 id="kyverno.io/v1beta1.UpdateRequestSpecContext">UpdateRequestSpecContext
|
|
|
|
</h3>
|
|
|
|
<p>
|
|
|
|
(<em>Appears on:</em>
|
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequestSpec">UpdateRequestSpec</a>)
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<p>UpdateRequestSpecContext stores the context to be shared.</p>
|
|
|
|
</p>
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead class="thead-dark">
|
|
|
|
<tr>
|
|
|
|
<th>Field</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<code>userInfo</code></br>
|
|
|
|
<em>
|
|
|
|
<a href="#kyverno.io/v1beta1.RequestInfo">
|
|
|
|
RequestInfo
|
|
|
|
</a>
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<em>(Optional)</em>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<code>admissionRequestInfo</code></br>
|
|
|
|
<em>
|
|
|
|
<a href="#kyverno.io/v1beta1.AdmissionRequestInfoObject">
|
|
|
|
AdmissionRequestInfoObject
|
|
|
|
</a>
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<em>(Optional)</em>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<hr />
|
|
|
|
<h3 id="kyverno.io/v1beta1.UpdateRequestState">UpdateRequestState
|
|
|
|
(<code>string</code> alias)</p></h3>
|
|
|
|
<p>
|
|
|
|
(<em>Appears on:</em>
|
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequestStatus">UpdateRequestStatus</a>)
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<p>UpdateRequestState defines the state of request.</p>
|
|
|
|
</p>
|
|
|
|
<h3 id="kyverno.io/v1beta1.UpdateRequestStatus">UpdateRequestStatus
|
|
|
|
</h3>
|
|
|
|
<p>
|
|
|
|
(<em>Appears on:</em>
|
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequest">UpdateRequest</a>)
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<p>UpdateRequestStatus defines the observed state of UpdateRequest</p>
|
|
|
|
</p>
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead class="thead-dark">
|
|
|
|
<tr>
|
|
|
|
<th>Field</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-05-05 18:56:27 +08:00
|
|
|
<code>handler</code></br>
|
|
|
|
<em>
|
|
|
|
string
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p>Handler represents the instance ID that handles the UR</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-04-25 20:20:40 +08:00
|
|
|
<code>state</code></br>
|
|
|
|
<em>
|
|
|
|
<a href="#kyverno.io/v1beta1.UpdateRequestState">
|
|
|
|
UpdateRequestState
|
|
|
|
</a>
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
2022-04-29 19:05:49 +08:00
|
|
|
<p>State represents state of the update request.</p>
|
2022-04-25 20:20:40 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<code>message</code></br>
|
|
|
|
<em>
|
|
|
|
string
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<em>(Optional)</em>
|
|
|
|
<p>Specifies request status message.</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<code>generatedResources</code></br>
|
|
|
|
<em>
|
|
|
|
[]github.com/kyverno/kyverno/api/kyverno/v1.ResourceSpec
|
|
|
|
</em>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p>This will track the resources that are updated by the generate Policy.
|
|
|
|
Will be used during clean up resources.</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<hr />
|
|
|
|
</div>
|
|
|
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|