第 4 章 InstallPlan [operators.coreos.com/v1alpha1]


描述
InstallPlan 定义一组 Operator 的安装。
类型
object
必填
  • metadata
  • spec

4.1. 规格

属性类型描述

apiVersion

字符串

APIVersion 定义对象的这个表示法的版本化的 schema。服务器应该将识别的模式转换为最新的内部值,并可拒绝未识别的值。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

kind

字符串

kind 是一个字符串值,代表此对象所代表的 REST 资源。服务器可以从客户端向其提交请求的端点推断。无法更新。采用驼峰拼写法 (CamelCase)。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadata

ObjectMeta

标准对象元数据。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

spec

对象

InstallPlanSpec 定义一组要安装的应用程序资源

status

对象

InstallPlanStatus 代表有关完成安装所需的步骤状态的信息。状态可能会跟踪系统的实际状态。

4.1.1. .spec

描述
InstallPlanSpec 定义一组要安装的应用程序资源
类型
object
必填
  • 批准
  • 已批准
  • clusterServiceVersionNames
属性类型描述

批准

字符串

Approval 是 InstallPlan 的用户批准策略。它必须是 "Automatic" 或 "Manual"。

已批准

布尔值

 

clusterServiceVersionNames

数组(字符串)

 

generation

整数

 

source

字符串

 

sourceNamespace

字符串

 

4.1.2. .status

描述
InstallPlanStatus 代表有关完成安装所需的步骤状态的信息。状态可能会跟踪系统的实际状态。
类型
object
必填
  • catalogSources
  • phase
属性类型描述

attenuatedServiceAccountRef

对象

attenuatedServiceAccountRef 引用用于进行范围 Operator 安装的服务帐户。

bundleLookups

array

bundleLookups 是集群中拉取和未打包捆绑包内容的一组 in-progress 请求。

bundleLookups[]

对象

BundleLookup 是一个拉取和取消打包到集群的捆绑包内容的请求。

catalogSources

数组(字符串)

 

conditions

array

 

conditions[]

对象

InstallPlanCondition 代表 InstallPlan 的执行整体状态。

message

字符串

Message 是人类可读的消息,包含详细信息,对于了解计划为什么处于当前状态的原因可能很重要。

phase

字符串

InstallPlanPhase 是整个 InstallPlan 的当前状态。

plan

array

 

plan[]

对象

Step 代表 InstallPlan 中单个步骤的状态。

startTime

字符串

startTime 是控制器开始将计划中列出的资源应用到集群的时间。

4.1.3. .status.attenuatedServiceAccountRef

描述
attenuatedServiceAccountRef 引用用于进行范围 Operator 安装的服务帐户。
类型
object
属性类型描述

apiVersion

字符串

引用的 API 版本。

fieldPath

字符串

如果引用的是对象的一部分而非整个对象,则该字符串应包含有效的 JSON/Go 字段访问声明,如 desiredState.manifest.containers[2]。例如,如果对象引用是一个 pod 中的容器,它应该还以下类似: "spec.containers{name}"(其中 "name" 是指触发事件的容器的名称),如果不使用容器名称,则应类似于 "spec.containers[2]"(使用此 pod 中索引值为 2 的容器)。选择这个语法的原因是,为了有一些指向对象部分的正确定义方法。Todo: 这个设计不是最终设计的,且该字段在将来会有所改变。

kind

字符串

引用的类型。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

name

字符串

引用的名称。更多信息: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

namespace

字符串

引用的命名空间。更多信息: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

resourceVersion

字符串

指定构成这个引用的 resourceVersion(如果存在)。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency

uid

字符串

引用的 UID。更多信息: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids

4.1.4. .status.bundleLookups

描述
bundleLookups 是集群中拉取和未打包捆绑包内容的一组 in-progress 请求。
类型
array

4.1.5. .status.bundleLookups[]

描述
BundleLookup 是一个拉取和取消打包到集群的捆绑包内容的请求。
类型
object
必填
  • catalogSourceRef
  • identifier
  • path
  • 替换
属性类型描述

catalogSourceRef

对象

catalogSourceRef 是捆绑包路径解析的 CatalogSource 的引用。

conditions

array

conditions 代表 BundleLookup 的整体状态。

conditions[]

对象

 

identifier

字符串

Identifier 是 Operator 的目录唯一名称(包含 CSV 的捆绑包的 CSV 名称)

path

字符串

path 指的是要拉取的捆绑包的位置。它通常是镜像引用。

属性

字符串

解包捆绑包的有效属性。

替换

字符串

replaces 是要替换的捆绑包的名称,使用路径中找到的捆绑包。

4.1.6. .status.bundleLookups[].catalogSourceRef

描述
catalogSourceRef 是捆绑包路径解析的 CatalogSource 的引用。
类型
object
属性类型描述

apiVersion

字符串

引用的 API 版本。

fieldPath

字符串

如果引用的是对象的一部分而非整个对象,则该字符串应包含有效的 JSON/Go 字段访问声明,如 desiredState.manifest.containers[2]。例如,如果对象引用是一个 pod 中的容器,它应该还以下类似: "spec.containers{name}"(其中 "name" 是指触发事件的容器的名称),如果不使用容器名称,则应类似于 "spec.containers[2]"(使用此 pod 中索引值为 2 的容器)。选择这个语法的原因是,为了有一些指向对象部分的正确定义方法。Todo: 这个设计不是最终设计的,且该字段在将来会有所改变。

kind

字符串

引用的类型。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

name

字符串

引用的名称。更多信息: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

namespace

字符串

引用的命名空间。更多信息: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

resourceVersion

字符串

指定构成这个引用的 resourceVersion(如果存在)。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency

uid

字符串

引用的 UID。更多信息: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids

4.1.7. .status.bundleLookups[].conditions

描述
conditions 代表 BundleLookup 的整体状态。
类型
array

4.1.8. .status.bundleLookups[].conditions[]

描述
类型
object
必填
  • status
  • type
属性类型描述

lastTransitionTime

字符串

条件从一个状态转换到另一个状态最后一次的时间。

lastUpdateTime

字符串

条件被探测到最后一次的时间。

message

字符串

人类可读的消息,指示有关转换的详细信息。

reason

字符串

条件最后一次转换的原因。

status

字符串

条件的状态,True, False, Unknown 之一。

type

字符串

条件类型。

4.1.9. .status.conditions

描述
类型
array

4.1.10. .status.conditions[]

描述
InstallPlanCondition 代表 InstallPlan 的执行整体状态。
类型
object
属性类型描述

lastTransitionTime

字符串

 

lastUpdateTime

字符串

 

message

字符串

 

reason

字符串

ConditionReason 是状态转换的一个 camelcased 原因。

status

字符串

 

type

字符串

InstallPlanConditionType 描述了整个在某个时间点上 InstallPlan 的状态。

4.1.11. .status.plan

描述
类型
array

4.1.12. .status.plan[]

描述
Step 代表 InstallPlan 中单个步骤的状态。
类型
object
必填
  • 解决
  • resource
  • status
属性类型描述

optional

布尔值

 

解决

字符串

 

resource

对象

StepResource 代表 InstallPlan 要跟踪的资源的状态。

status

字符串

StepStatus 是 InstallPlan 中特定资源的当前状态

4.1.13. .status.plan[].resource

描述
StepResource 代表 InstallPlan 要跟踪的资源的状态。
类型
object
必填
  • group
  • kind
  • name
  • sourceName
  • sourceNamespace
  • version
属性类型描述

group

字符串

 

kind

字符串

 

清单(Inventory)

字符串

 

name

字符串

 

sourceName

字符串

 

sourceNamespace

字符串

 

version

字符串

 
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.