VerificationPolicy [tekton.dev/v1alpha1]
- 描述
- VerificationPolicy defines the rules to verify Tekton resources. VerificationPolicy can config the mapping from resources to a list of public keys, so when verifying the resources we can use the corresponding public keys.
- 类型
object- 必填
spec
规格
.spec
- 描述
- Spec holds the desired state of the VerificationPolicy.
- 类型
object- 必填
authoritiesresources
.spec.authorities
- 描述
- Authorities defines the rules for validating signatures.
- 类型
array
.spec.authorities[]
- 描述
- The Authority block defines the keys for validating signatures.
- 类型
object- 必填
name
.spec.authorities[].key
- 描述
- Key contains the public key to validate the resource.
- 类型
object
.spec.authorities[].key.secretRef
- 描述
- SecretRef sets a reference to a secret with the key.
- 类型
object
.spec.resources
- 描述
- Resources defines the patterns of resources sources that should be subject to this policy. For example, we may want to apply this Policy from a certain GitHub repo. Then the ResourcesPattern should be valid regex. E.g. If using gitresolver, and we want to config keys from a certain git repo. `ResourcesPattern` can be `https://github.com/tektoncd/catalog.git`, we will use regex to filter out those resources.
- 类型
array
.spec.resources[]
- 描述
- ResourcePattern defines the pattern of the resource source
- 类型
object- 必填
pattern
API 端点
可用的 API 端点如下:
/apis/tekton.dev/v1alpha1/namespaces/{namespace}/verificationpoliciesDELETE: delete collection of VerificationPolicyGET: list objects of kind VerificationPolicyPOST: create a new VerificationPolicy
/apis/tekton.dev/v1alpha1/namespaces/{namespace}/verificationpolicies/{name}DELETE: delete the specified VerificationPolicyGET: read the specified VerificationPolicyPATCH: partially update the specified VerificationPolicyPUT: replace the specified VerificationPolicy
/apis/tekton.dev/v1alpha1/namespaces/{namespace}/verificationpolicies
- HTTP 方法
DELETE- 描述
- delete collection of VerificationPolicy
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind VerificationPolicy
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new VerificationPolicy
- 查询参数
- 请求体参数
- HTTP 响应
/apis/tekton.dev/v1alpha1/namespaces/{namespace}/verificationpolicies/{name}
- HTTP 方法
DELETE- 描述
- delete the specified VerificationPolicy
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified VerificationPolicy
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified VerificationPolicy
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified VerificationPolicy
- 查询参数
- 请求体参数
- HTTP 响应