v1.0 升级到 v1.1

遵循常规升级流程

升级后显著变化

Cluster 对象的校验过程现在已从 karmada-webhook 转移到 karmada-aggregated-apiserver,参见 PR 1152。 你必须从 ValidatingWebhookConfiguration 移除 Cluster webhook 配置,例如:

  1. diff --git a/artifacts/deploy/webhook-configuration.yaml b/artifacts/deploy/webhook-configuration.yaml
  2. index 0a89ad36..f7a9f512 100644
  3. --- a/artifacts/deploy/webhook-configuration.yaml
  4. +++ b/artifacts/deploy/webhook-configuration.yaml
  5. @@ -69,20 +69,6 @@ metadata:
  6. labels:
  7. app: validating-config
  8. webhooks:
  9. - - name: cluster.karmada.io
  10. - rules:
  11. - - operations: ["CREATE", "UPDATE"]
  12. - apiGroups: ["cluster.karmada.io"]
  13. - apiVersions: ["*"]
  14. - resources: ["clusters"]
  15. - scope: "Cluster"
  16. - clientConfig:
  17. - url: https://karmada-webhook.karmada-system.svc:443/validate-cluster
  18. - caBundle: {{caBundle}}
  19. - failurePolicy: Fail
  20. - sideEffects: None
  21. - admissionReviewVersions: ["v1"]
  22. - timeoutSeconds: 3
  23. - name: propagationpolicy.karmada.io
  24. rules:
  25. - operations: ["CREATE", "UPDATE"]

否则接入集群时(或更新 Cluster 对象时),该请求将因以下错误被拒绝:

  1. Error: failed to create cluster(host) object. error: Internal error occurred: failed calling webhook "cluster.karmada.io": the server could not find the requested resource

更多细节请参阅 v1.1.0 发布说明