1.6. 弃用和删除的功能

之前版本中的一些功能已被弃用或删除。

弃用的功能仍然包含在 OpenShift Container Platform 中,并将继续被支持。但是,这个功能会在以后的发行版本中被删除,且不建议在新的部署中使用。有关 OpenShift Container Platform 4.8 中已弃用并删除的主要功能的最新列表,请参考下表。表后列出了更详细的、已弃用和删除的功能信息。

在下表中,被标记为以下状态的功能:

  • GA: 正式发行
  • TP: 技术预览
  • DEP: 已弃用
  • REM: 删除

表 1.1. 过时和删除的功能

功能OCP 4.6OCP 4.7OCP 4.8

OperatorSource 对象

REM

REM

REM

软件包清单格式(Operator 框架)

DEP

DEP

REM

oc adm catalog build

DEP

DEP

REM

oc adm catalog mirror--filter-by-os 标记

GA

DEP

REM

v1beta1 CRD

DEP

DEP

DEP

Docker Registry v1 API

DEP

DEP

DEP

Metering Operator

DEP

DEP

DEP

调度程序策略

GA

DEP

DEP

Cluster Samples Operator 的 ImageChangesInProgress 条件

GA

DEP

DEP

Cluster Samples Operator 的 MigrationInProgress 条件

GA

DEP

DEP

apiVersion 中将 v1 用于 OpenShift Container Platform 资源

GA

DEP

DEP

在 Red Hat Enterprise Linux CoreOS(RHCOS)中使用 dhclient

DEP

DEP

DEP

Cluster Loader

GA

GA

DEP

使用自己的 RHEL 7 计算机器

DEP

DEP

DEP

AWS EFS 的外部置备程序

REM

REM

REM

Builds 的 BuildConfig spec 中的 lastTriggeredImageID 字段

GA

GA

DEP

Jenkins Operator

TP

TP

DEP

基于 Prometheus 的 HPA 定制 metrics adapter

TP

TP

REM

Red Hat Virtualization(RHV)的 instance_type_id 安装配置参数

GA

DEP

DEP

Microsoft Azure 集群的 Mint 凭证

GA

GA

REM

1.6.1. 已弃用的功能

1.6.1.1. descheduler operator.openshift.io/v1beta1 API 组已弃用

descheduler 的 operator.openshift.io/v1beta1 API 组已弃用,并可能在以后的发行版本中删除。改用 operator.openshift.io/v1 API 组。

1.6.1.2. 在 Red Hat Enterprise Linux CoreOS(RHCOS)中使用 dhclient 已被弃用

从 OpenShift Container Platform 4.6 开始,Red Hat Enterprise Linux CoreOS(RHCOS)切换到使用 initramfs 中的 NetworkManager 在早期引导过程中配置网络。作为这一更改的一部分,对于 DHCP 使用 dhclient 二进制文件已被弃用。改为使用 NetworkManager 内部 DHCP 客户端进行网络配置。dhclient 二进制文件将在以后的版本中从 Red Hat Enterprise Linux CoreOS(RHCOS)中删除。如需更多信息,请参阅 BZ#1908462

1.6.1.3. Cluster Loader 已被弃用

Cluster Loader 现已弃用,并将在以后的发行版本中删除。

1.6.1.4. 构建中的 lastTriggeredImageID 参数已弃用

此发行版本弃用 ImageChangeTrigger 对象中的 lastTriggeredImageID,这是可在 BuildConfig 规格中设置的 BuildTriggerPolicy 类型之一。

OpenShift Container Platform 下一个发行版本将删除对 lastTriggeredImageID 的支持并忽略它。然后,镜像更改触发器不会根据 BuildConfig spec 中 lastTriggeredImageID 字段的更改启动构建。相反,触发构建的镜像 ID 将记录在 BuildConfig 对象的状态中,大多数用户都无法更改。

因此,更新需要检查 buildConfig.spec.triggers[i].imageChange.lastTriggeredImageID 的脚本和作业。(BUILD-213

1.6.1.5. Jenkins Operator(技术预览)已弃用

此发行版本弃用了 Jenkins Operator,它是一个技术预览功能。未来的 OpenShift Container Platform 版本将在 OpenShift Container Platform Web 控制台界面的 OperatorHub 中删除 Jenkins Operator。然后,不再提供 Jenkins Operator 的升级,Operator 不受支持。

客户可以使用 Samples Operator 提供的模板在 OpenShift Container Platform 上继续部署 Jenkins。

1.6.1.6. Red Hat Virtualization(RHV)的 instance_type_id 安装配置参数

instance_type_id 安装配置参数已弃用,并将在以后的发行版本中删除。

1.6.2. 删除的功能

1.6.2.1. 删除了对 Microsoft Azure 的 mint 凭证的支持

从 OpenShift Container Platform 4.8.34 开始,在 Microsoft Azure 集群上以 mint 模式使用 Cloud Credential Operator(CCO)的支持已从 OpenShift Container Platform 4.8 中删除。此更改的原因是 Microsoft 的 Azure AD Graph API 将于 2022 年 6 月 30 日停用,并被向后移植到 z-stream 更新中所有支持的 OpenShift Container Platform 版本。

对于在以前安装的使用 mint 模式的 Azure 集群,CCO 会尝试更新现有的 secret。如果 secret 包含之前 minted 应用程序注册服务主体的凭证,则会使用 kube-system/azure-credentials 中的 secret 的内容更新。这个行为和 passthrough 模式类似。

对于将凭证模式设置为默认值 "" 的集群,更新的 CCO 会自动从 mint 模式运行,以 passthrough 模式运行。如果您的集群将凭证模式明确设置为 mint 模式("Mint"),则必须将值改为 """Passthrough"

注意

除了 mint 模式所需的 Contributor 角色外,修改后的应用程序注册服务主体现在还需要用于 passthrough 模式的 User Access Administrator 角色。

虽然 Azure AD Graph API 仍然可用,但升级版 OpenShift Container Platform 的 CCO 会尝试清理之前 mint 的应用注册服务主体。在 Azure AD Graph API 之前升级集群可能会避免需要手动清理资源。

如果在 Azure AD Graph API 停用后,集群被升级到一个不再支持 mint 模式的 OpenShift Container Platform 版本,CCO 会在关联的 CredentialsRequest 上设置 OrphanedCloudResource 条件,但不会将相关错误视为是致命(fatal)错误。该条件包括与 unable to clean up App Registration / Service Principal: <app_registration_name> 类似的消息。在 Azure AD Graph API 停用后,清理需要使用 Azure CLI 工具或 Azure Web 控制台手动删除剩余的应用程序注册服务主体。

要手动清理资源,您必须找到并删除受影响的资源。

  1. 使用 Azure CLI 工具,通过运行以下命令从 OrphanedCloudResource 条件消息过滤使用 <app_registration_name> 的应用程序注册服务主体:

    $ az ad app list --filter "displayname eq '<app_registration_name>'" --query '[].objectId'

    输出示例

    [
      "038c2538-7c40-49f5-abe5-f59c59c29244"
    ]

  2. 运行以下命令来删除应用程序注册服务主体:

    $ az ad app delete --id 038c2538-7c40-49f5-abe5-f59c59c29244
注意

在手动清理资源后,OrphanedCloudResource 条件会保留,因为 CCO 无法验证资源是否已清理。

已删除 AWS EFS(技术预览)功能的外部置备程序

Amazon Web Services(AWS)Elastic File System(EFS)技术预览功能已被删除,且不再被支持。

1.6.2.2. 从示例镜像流中删除的镜像

以下镜像不再包含在 OpenShift Container Platform 提供的样本镜像流中:

registry.redhat.io/rhscl/nodejs-10-rhel7
registry.redhat.io/ubi7/nodejs-10
registry.redhat.io/rhscl/perl-526-rhel7
registry.redhat.io/rhscl/postgresql-10-rhel7
registry.redhat.io/rhscl/ruby-25-rhel7
registry.redhat.io/ubi7/ruby-25
registry.redhat.io/rhdm-7/rhdm-decisioncentral-rhel8:7.9.0
registry.redhat.io/rhdm-7/rhdm-kieserver-rhel8:7.9.0
registry.redhat.io/rhpam-7/rhpam-businesscentral-monitoring-rhel8:7.9.0
registry.redhat.io/rhpam-7/rhpam-businesscentral-rhel8:7.9.0
registry.redhat.io/rhpam-7/rhpam-smartrouter-rhel8:7.9.0

1.6.2.3. Operator 不再支持软件包清单格式

OpenShift Container Platform 4.8 及更高版本中删除了对 Operator 的传统软件包清单格式的支持。此删除支持包括使用旧格式构建的自定义目录,以及最初使用 Operator SDK 以传统格式创建的 Operator 项目。从 OpenShift Container Platform 4.6 开始,捆绑包格式是 Operator Lifecycle Manager(OLM)的首选 Operator 打包格式。

有关使用捆绑包格式的更多信息,请参阅管理自定义目录迁移软件包清单项目以捆绑格式

另外,以下与格式相关的命令已从 OpenShift CLI(oc)和 Operator SDK CLI 中删除:

  • oc adm catalog build
  • operator-sdk generate packagemanifest
  • operator-sdk run packagemanifest

1.6.2.4. 删除了对基于 Prometheus 的 HPA 自定义 metrics adapter 的支持

此发行版本删除了 Prometheus Adapter,它是一个技术预览功能。

1.6.2.5. 删除了安全令牌存储注解的识别

现在,在选择集群的审计策略时,authenticationopenshift-apiserver Operator 会忽略 oauth-apiserver.openshift.io/secure-token-storage 注解。审计策略现在默认使用 secure-。如需更多信息,请参阅 BZ#1879182