Connector [accesspolicies.alauda.io/v1alpha1]
- 描述
- AccessPolicy defines the access strategy for Connectors in a namespace. It specifies which Connectors are covered and what permissions are granted, either automatically (defaultPermission) or after approval checks pass (checkGrantedPermission).
- 类型
object
规格
.spec
- 描述
- AccessPolicySpec defines the desired state of AccessPolicy.
- 类型
object
.spec.checkGrantedPermission
- 描述
- CheckGrantedPermission defines permissions granted only after approval checks pass.
- 类型
object- 必填
spec
.spec.checkGrantedPermission.spec
- 描述
- Spec contains the check rules and the permissions to grant after all checks pass.
- 类型
object- 必填
checksroleTemplate
.spec.checkGrantedPermission.spec.checks
- 描述
- Checks is the list of approval check rules.
- 类型
array
.spec.checkGrantedPermission.spec.checks[]
- 描述
- CheckRule defines a check rule that must pass for a permission to be granted. it contains either a reference to a CheckRuleSpec stored in a ConfigMap or the CheckRuleSpec itself. you can specify either Ref or Spec, but not both.
- 类型
object- 必填
name
.spec.checkGrantedPermission.spec.checks[].params
- 描述
- Params are passed to the check rule's rego evaluation and are readable as input.check.params. Params are data only: they do not change which evaluator runs. Reuses kmetav1alpha1.Params (the Tekton-style param type already used by ConnectorClass.Spec.Params) — values are string/array/object (a number is carried as the string "1").
- 类型
array
.spec.checkGrantedPermission.spec.checks[].params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.checkGrantedPermission.spec.checks[].ref
- 描述
- Ref is a reference to a CheckRuleSpec stored in a ConfigMap.
- 类型
object- 必填
configMap
.spec.checkGrantedPermission.spec.checks[].ref.configMap
- 描述
- ConfigMap references the ConfigMap containing the CheckRuleSpec.
- 类型
object
.spec.checkGrantedPermission.spec.checks[].spec
- 描述
- Spec contains the check rule specification.
- 类型
object- 必填
selector
.spec.checkGrantedPermission.spec.checks[].spec.selector
- 描述
- Selector specifies how to find the Check Duck Type resource.
- 类型
object- 必填
objectRef
.spec.checkGrantedPermission.spec.checks[].spec.selector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.checkGrantedPermission.spec.checks[].spec.selector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.checkGrantedPermission.spec.checks[].spec.selector.matchExpressions[].values
- 描述
- 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.
- 类型
array
.spec.checkGrantedPermission.spec.checks[].spec.selector.matchExpressions[].values[]
- 类型
string
.spec.checkGrantedPermission.spec.checks[].spec.selector.matchLabels
- 描述
- 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.
- 类型
object
.spec.checkGrantedPermission.spec.checks[].spec.selector.objectRef
- 描述
- ObjectRef specifies the reference to the object to check against. kind and apiVersion are required to distinguish different duck types
- 类型
object
.spec.checkGrantedPermission.spec.checks[].spec.state
- 描述
- State configures how the check result is computed. If empty, the default duck-type field status.state is used.
- 类型
object
.spec.checkGrantedPermission.spec.roleTemplate
- 描述
- RoleTemplate defines the rules for the generated Role.
- 类型
object
.spec.checkGrantedPermission.spec.roleTemplate.ref
- 描述
- Ref specifies a reference to a RoleTemplate
- 类型
object
.spec.checkGrantedPermission.spec.roleTemplate.ref.configMap
- 描述
- ConfigMap specifies a local reference to a ConfigMap whose data["rules"] contains the YAML-encoded list of rbacv1.PolicyRule entries. Only ConfigMaps in the connectors system namespace are supported.
- 类型
object
.spec.connector
- 描述
- Connector specifies which Connectors this policy applies to. If empty, the policy applies to all Connectors in the namespace.
- 类型
object
.spec.connector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.connector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.connector.matchExpressions[].values
- 描述
- 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.
- 类型
array
.spec.connector.matchExpressions[].values[]
- 类型
string
.spec.connector.matchLabels
- 描述
- 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.
- 类型
object
.spec.connector.names
- 描述
- Names is an explicit list of resource names to match.
- 类型
array
.spec.connector.names[]
- 类型
string
.spec.defaultPermission
- 描述
- DefaultPermission defines the Role and RoleBinding automatically granted without any approval check.
- 类型
object- 必填
bindingTemplateroleTemplate
.spec.defaultPermission.bindingTemplate
- 描述
- BindingTemplate defines the subjects for the generated RoleBinding.
- 类型
object
.spec.defaultPermission.bindingTemplate.serviceAccounts
- 描述
- ServiceAccounts is the list of service account templates to bind.
- 类型
array
.spec.defaultPermission.bindingTemplate.serviceAccounts[]
- 描述
- ServiceAccountTemplate defines a template for binding ServiceAccounts. it extends rbacv1.Subject with dynamic label-based selectors.
- 类型
object
.spec.defaultPermission.bindingTemplate.serviceAccounts[].names
- 描述
- Names is the list of service account names to bind.
- 类型
array
.spec.defaultPermission.bindingTemplate.serviceAccounts[].names[]
- 类型
string
.spec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector
- 描述
- NamespaceSelector selects Namespaces by label and/or name.
- 类型
object
.spec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.matchExpressions[].values
- 描述
- 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.
- 类型
array
.spec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.matchExpressions[].values[]
- 类型
string
.spec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.matchLabels
- 描述
- 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.
- 类型
object
.spec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.names
- 描述
- Names is an explicit list of resource names to match.
- 类型
array
.spec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.names[]
- 类型
string
.spec.defaultPermission.roleTemplate
- 描述
- RoleTemplate defines the rules to include in the generated Role.
- 类型
object
.spec.defaultPermission.roleTemplate.ref
- 描述
- Ref specifies a reference to a RoleTemplate
- 类型
object
.spec.defaultPermission.roleTemplate.ref.configMap
- 描述
- ConfigMap specifies a local reference to a ConfigMap whose data["rules"] contains the YAML-encoded list of rbacv1.PolicyRule entries. Only ConfigMaps in the connectors system namespace are supported.
- 类型
object
.status
- 描述
- AccessPolicyStatus defines the observed state of AccessPolicy.
- 类型
object
.status.annotations
- 描述
- Annotations is additional Status fields for the Resource to save some additional State as well as convey more information to the user. This is roughly akin to Annotations on any k8s resource, just the reconciler conveying richer information outwards.
- 类型
object
.status.conditions
- 描述
- Conditions the latest available observations of a resource's current state.
- 类型
array
.status.conditions[]
- 描述
- Condition defines a readiness condition for a Knative resource. See: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
- 类型
object- 必填
statustype
.status.matchedConnectors
- 描述
- MatchedConnectors records the Connector names matched by spec.connector.
- 类型
array
.status.matchedConnectors[]
- 描述
- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
- 类型
object
API 端点
可用的 API 端点如下:
/apis/connectors.alauda.io/v1alpha1/namespaces/{namespace}/accesspoliciesDELETE: delete collection of AccessPolicyGET: list objects of kind AccessPolicyPOST: create a new AccessPolicy
/apis/connectors.alauda.io/v1alpha1/namespaces/{namespace}/accesspolicies/{name}DELETE: delete the specified AccessPolicyGET: read the specified AccessPolicyPATCH: partially update the specified AccessPolicyPUT: replace the specified AccessPolicy
/apis/connectors.alauda.io/v1alpha1/namespaces/{namespace}/accesspolicies/{name}/statusGET: read status of the specified AccessPolicyPATCH: partially update status of the specified AccessPolicyPUT: replace status of the specified AccessPolicy
/apis/connectors.alauda.io/v1alpha1/namespaces/{namespace}/accesspolicies
- HTTP 方法
DELETE- 描述
- delete collection of AccessPolicy
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind AccessPolicy
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new AccessPolicy
- 查询参数
- 请求体参数
- HTTP 响应
/apis/connectors.alauda.io/v1alpha1/namespaces/{namespace}/accesspolicies/{name}
- HTTP 方法
DELETE- 描述
- delete the specified AccessPolicy
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified AccessPolicy
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified AccessPolicy
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified AccessPolicy
- 查询参数
- 请求体参数
- HTTP 响应
/apis/connectors.alauda.io/v1alpha1/namespaces/{namespace}/accesspolicies/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified AccessPolicy
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified AccessPolicy
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified AccessPolicy
- 查询参数
- 请求体参数
- HTTP 响应