v1.0 升级到 v1.1
遵循常规升级流程。
升级后显著变化
Cluster
对象的校验过程现在已从 karmada-webhook
转移到 karmada-aggregated-apiserver
,参见 PR 1152。
你必须从 ValidatingWebhookConfiguration
移除 Cluster
webhook 配置,例如:
diff --git a/artifacts/deploy/webhook-configuration.yaml b/artifacts/deploy/webhook-configuration.yaml
index 0a89ad36..f7a9f512 100644
--- a/artifacts/deploy/webhook-configuration.yaml
+++ b/artifacts/deploy/webhook-configuration.yaml
@@ -69,20 +69,6 @@ metadata:
labels:
app: validating-config
webhooks:
- - name: cluster.karmada.io
- rules:
- - operations: ["CREATE", "UPDATE"]
- apiGroups: ["cluster.karmada.io"]
- apiVersions: ["*"]
- resources: ["clusters"]
- scope: "Cluster"
- clientConfig:
- url: https://karmada-webhook.karmada-system.svc:443/validate-cluster
- caBundle: {{caBundle}}
- failurePolicy: Fail
- sideEffects: None
- admissionReviewVersions: ["v1"]
- timeoutSeconds: 3
- name: propagationpolicy.karmada.io
rules:
- operations: ["CREATE", "UPDATE"]
否则接入集群时(或更新 Cluster 对象时),该请求将因以下错误被拒绝:
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 发布说明。