第 29 章 ImageIntegrationService
29.1. UpdateImageIntegration
PATCH /v1/imageintegrations/{config.id}
UpdateImageIntegration 修改给定镜像集成,带有可选存储的凭证协调。
29.1.1. 描述
29.1.2. 参数
29.1.2.1. 路径参数
Name | 描述 | 必填 | default | pattern |
---|---|---|---|---|
config.id | X | null |
29.1.2.2. 正文参数
Name | 描述 | 必填 | default | pattern |
---|---|---|---|---|
正文(body) | X |
29.1.3. 返回类型
对象
29.1.4. 内容类型
- application/json
29.1.5. 响应
代码 | 消息 | datatype |
---|---|---|
200 | 成功响应。 |
|
0 | 意外错误响应。 |
29.1.6. Samples
29.1.7. 常规对象参考
29.1.7.1. ECRConfigAuthorizationData
授权数据代表 IAM 身份验证凭据,可用于访问 IAM 主体可访问的任何 Amazon ECR registry。
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
username | 字符串 | ||||
password | 字符串 | ||||
expiresAt | Date | date-time |
29.1.7.2. ProtobufAny
any
包含任意序列化协议缓冲区消息,以及一个描述序列化消息的类型的 URL。
protobuf 库以实用程序函数形式提供对 pack/unpack Any 值的支持,或者对 Any 类型的其他生成的方法提供其他生成的方法。
示例 1: Pack 并在 C++ 中解包信息。
Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... }
Foo foo = ...;
Any any;
any.PackFrom(foo);
...
if (any.UnpackTo(&foo)) {
...
}
示例 2:打包并解压缩 Java 消息。
Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } // or ... if (any.isSameTypeAs(Foo.getDefaultInstance())) { foo = any.unpack(Foo.getDefaultInstance()); }
Foo foo = ...;
Any any = Any.pack(foo);
...
if (any.is(Foo.class)) {
foo = any.unpack(Foo.class);
}
// or ...
if (any.isSameTypeAs(Foo.getDefaultInstance())) {
foo = any.unpack(Foo.getDefaultInstance());
}
Example 3: Pack and unpack a message in Python.
Example 3: Pack and unpack a message in Python.
foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any.Unpack(foo) ...
foo = Foo(...)
any = Any()
any.Pack(foo)
...
if any.Is(Foo.DESCRIPTOR):
any.Unpack(foo)
...
Example 4: Pack and unpack a message in Go
Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...} any, err := anypb.New(foo) if err != nil { ... } ... foo := &pb.Foo{} if err := any.UnmarshalTo(foo); err != nil { ... }
foo := &pb.Foo{...}
any, err := anypb.New(foo)
if err != nil {
...
}
...
foo := &pb.Foo{}
if err := any.UnmarshalTo(foo); err != nil {
...
}
默认情况下,protobuf 库提供的软件包方法将使用 'type.googleapis.com/full.type.name' 作为类型 URL,解包方法只使用类型 URL 中的完全限定类型名称,如 "foo.bar.com/x/x/y.z"。
29.1.7.2.1. JSON 表示
any 值的 JSON 表示使用反序列化的、嵌入式消息的常规表示,以及包含类型 URL 的附加字段 @type
。Example:
package google.profile; message Person { string first_name = 1; string last_name = 2; }
package google.profile;
message Person {
string first_name = 1;
string last_name = 2;
}
{ "@type": "type.googleapis.com/google.profile.Person", "firstName": <string>, "lastName": <string> }
{
"@type": "type.googleapis.com/google.profile.Person",
"firstName": <string>,
"lastName": <string>
}
如果嵌入式消息类型是知名且具有自定义 JSON 表示法,则该表示将被嵌入一个字段值,该值
除 @type
字段外还包含自定义 JSON。示例(用于消息 [google.protobuf.Duration][]):
{ "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" }
{
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
typeUrl | 字符串 |
唯一标识序列化协议缓冲消息的 URL/资源名称。此字符串必须至少包含一个 \"/\" 字符。URL 路径的最后一部分必须代表类型的完全限定名称(如 | |||
value | byte[] | 必须是上述指定类型的有效序列化协议缓冲。 | BYTE |
29.1.7.3. QuayConfigRobotAccount
Robot account is Quay's named tokens that can be granted permissions on multiple repositories under an organization. It's Quay's recommended authentication model when possible (i.e. registry integration)
Robot account is Quay's named tokens that can be granted permissions on multiple repositories under an organization. It's Quay's recommended authentication model when possible (i.e. registry integration)
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
username | 字符串 | ||||
password | 字符串 | 服务器将在响应和日志中屏蔽此密码的值。 |
29.1.7.4. RuntimeError
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
错误 | 字符串 | ||||
code | 整数 | int32 | |||
message | 字符串 | ||||
详情 |
29.1.7.5. StorageAzureConfig
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
端点 | 字符串 | ||||
username | 字符串 | ||||
password | 字符串 | 集成的密码。服务器将在响应和日志中屏蔽此凭据的值。 | |||
wifEnabled | 布尔值 |
29.1.7.6. StorageClairConfig
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
端点 | 字符串 | ||||
insecure | 布尔值 |
29.1.7.7. StorageClairV4Config
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
端点 | 字符串 | ||||
insecure | 布尔值 |
29.1.7.8. StorageClairifyConfig
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
端点 | 字符串 | ||||
grpcEndpoint | 字符串 | ||||
numConcurrentScans | 整数 | int32 |
29.1.7.9. StorageDockerConfig
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
端点 | 字符串 | ||||
username | 字符串 | ||||
password | 字符串 | 集成的密码。服务器将在响应和日志中屏蔽此凭据的值。 | |||
insecure | 布尔值 |
29.1.7.10. StorageECRConfig
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
registryId | 字符串 | ||||
accessKeyId | 字符串 | 集成的访问密钥 ID。服务器将在响应和日志中屏蔽此凭据的值。 | |||
secretAccessKey | 字符串 | 集成的机密访问密钥。服务器将在响应和日志中屏蔽此凭据的值。 | |||
region | 字符串 | ||||
useIam | 布尔值 | ||||
端点 | 字符串 | ||||
useAssumeRole | 布尔值 | ||||
assumeRoleId | 字符串 | ||||
assumeRoleExternalId | 字符串 | ||||
authorizationData |
29.1.7.11. StorageGoogleConfig
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
端点 | 字符串 | ||||
serviceAccount | 字符串 | 集成的服务帐户。服务器将在响应和日志中屏蔽此凭据的值。 | |||
project | 字符串 | ||||
wifEnabled | 布尔值 |
29.1.7.12. StorageIBMRegistryConfig
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
端点 | 字符串 | ||||
apiKey | 字符串 | 集成的 API 密钥。服务器将在响应和日志中屏蔽此凭据的值。 |
29.1.7.13. StorageImageIntegration
Next Tag: 25
Next Tag: 25
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
id | 字符串 | ||||
名称 | 字符串 | ||||
type | 字符串 | ||||
类别 | |||||
clairify | |||||
scannerV4 | |||||
docker | |||||
Quay | |||||
ecr | |||||
| |||||
Clair | |||||
clairV4 | |||||
ibm | |||||
azure | |||||
autogenerated | 布尔值 | ||||
clusterId | 字符串 | ||||
skipTestIntegration | 布尔值 | ||||
source |
29.1.7.14. StorageImageIntegrationCategory
- NODE_SCANNER:镜像和节点集成目前在 UI 中以相同的形式完成,因此镜像集成当前还用于节点集成。做出这个决定的原因是,我们目前只支持一个节点扫描程序(我们的扫描程序)。
Enum 值 |
---|
REGISTRY |
SCANNER |
NODE_SCANNER |
29.1.7.15. StorageImageIntegrationSource
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
clusterId | 字符串 | ||||
namespace | 字符串 | ||||
imagePullSecretName | 字符串 |
29.1.7.16. StorageQuayConfig
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
端点 | 字符串 | ||||
oauthToken | 字符串 | 用于集成的 OAuth 令牌。如果这是扫描程序集成,则需要此项。服务器将在响应和日志中屏蔽此凭据的值。 | |||
insecure | 布尔值 | ||||
registryRobotCredentials |
29.1.7.17. StorageScannerV4Config
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
numConcurrentScans | 整数 | int32 | |||
indexerEndpoint | 字符串 | ||||
matcherEndpoint | 字符串 |
29.1.7.18. V1UpdateImageIntegrationRequest
字段名称 | 必填 | nullable | 类型 | 描述 | 格式 |
---|---|---|---|---|---|
config | |||||
updatePassword | 布尔值 | 为 false 时,使用现有镜像集成的存储凭证及其 ID。 |