kubernetes 资源配额错误信息拼写错误

kmbjn2e3  于 8个月前  发布在  Kubernetes
关注(0)|答案(4)|浏览(89)

发生了什么?

在文档中,操作员应该是 'Exists'

但在错误信息中,它变成了 'Exist'

  1. Invalid value: "Exist": must be 'Exist' when scope is any of ResourceQuotaScopeTerminating, ResourceQuotaScopeNotTerminating, ResourceQuotaScopeBestEffort, ResourceQuotaScopeNotBestEffort or ResourceQuotaScopeCrossNamespacePodAffinity

你期望会发生什么?

错误信息应该是

  1. Invalid value: "Exist": must be 'Exists' when scope is any of ResourceQuotaScopeTerminating, ResourceQuotaScopeNotTerminating, ResourceQuotaScopeBestEffort, ResourceQuotaScopeNotBestEffort or ResourceQuotaScopeCrossNamespacePodAffinity

我们如何尽可能精确地重现它?

创建一个yaml并应用它

  1. apiVersion: v1
  2. kind: ResourceQuota
  3. metadata:
  4. name: user-quota
  5. spec:
  6. hard:
  7. pods: "200"
  8. requests.cpu: "4"
  9. requests.memory: 4Gi
  10. limits.cpu: "1200"
  11. limits.memory: 8Gi
  12. scopeSelector:
  13. matchExpressions:
  14. - scopeName: CrossNamespacePodAffinity
  15. operator: Exist

我们需要了解其他信息吗?

这是我第一次,我不确定我们是否应该把 ResourceQuotaScopeTerminating 改为 Terminating ?

Kubernetes版本

  1. $ kubectl version
  2. WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
  3. Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.11+k3s1", GitCommit:"c14436a9ecfffb3be553a06bb0a4fac6122579ce", GitTreeState:"clean", BuildDate:"2023-03-10T22:03:01Z", GoVersion:"go1.19.6", Compiler:"gc", Platform:"linux/amd64"}
  4. Kustomize Version: v4.5.4
  5. Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.11+k3s1", GitCommit:"c14436a9ecfffb3be553a06bb0a4fac6122579ce", GitTreeState:"clean", BuildDate:"2023-03-10T22:03:01Z", GoVersion:"go1.19.6", Compiler:"gc", Platform:"linux/amd64"}

云提供商

K3S

OS版本

  1. # On Linux:
  2. $ cat /etc/os-release
  3. PRETTY_NAME="Ubuntu 22.04.3 LTS"
  4. NAME="Ubuntu"
  5. VERSION_ID="22.04"
  6. VERSION="22.04.3 LTS (Jammy Jellyfish)"
  7. VERSION_CODENAME=jammy
  8. ID=ubuntu
  9. ID_LIKE=debian
  10. HOME_URL="https://www.ubuntu.com/"
  11. SUPPORT_URL="https://help.ubuntu.com/"
  12. BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
  13. PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
  14. UBUNTU_CODENAME=jammy
  15. $ uname -a
  16. Linux mbvm230702 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

安装工具

容器运行时(CRI)和版本(如果适用)

相关插件(CNI,CSI,...)和版本(如果适用)

jtoj6r0c

jtoj6r0c1#

这个问题目前正在等待分类。
如果SIG或子项目确定这是一个相关的问题,他们将通过应用triage/accepted标签并提供进一步的指导来接受它。
组织成员可以通过在评论中写入/triage accepted来添加triage/accepted标签。
有关使用PR评论与我互动的说明,请查看here。如果您对我的行为有任何问题或建议,请针对kubernetes/test-infra仓库提出一个问题。

yx2lnoni

yx2lnoni2#

/sig apps

kqlmhetl

kqlmhetl3#

/assign

bqujaahr

bqujaahr4#

/assign

相关问题