forked from antrea-io/antrea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow member and leader deployed in one cluster (antrea-io#3180)
* Allow member and leader deployed in one cluster We'd like to deploy both member and leader controllers in one cluster, so need below two fixes: 1. make the memberannounce webhook in member cluster as namespaced otherwise memberannounce creation will fail. 2. skip any ClusterSet reconsiling in member cluster if it's not the same as member controller's namespace. Signed-off-by: Lan Luo <[email protected]> * Update mutation and validation webhook * Remove uncessary memberclusterannounce,resourceexport,resourceimport webhooks in member manifests * Make clusterclaim,clusterset's validation webhook as namespaced. Signed-off-by: Lan Luo <[email protected]>
- Loading branch information
1 parent
abaac3d
commit abe5e8b
Showing
5 changed files
with
84 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ configurations: | |
|
||
patchesStrategicMerge: | ||
- manager_command_patch.yaml | ||
- webhook_patch.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
apiVersion: admissionregistration.k8s.io/v1 | ||
kind: ValidatingWebhookConfiguration | ||
metadata: | ||
name: validating-webhook-configuration | ||
webhooks: | ||
- admissionReviewVersions: | ||
name: vmemberclusterannounce.kb.io | ||
$patch: delete | ||
- admissionReviewVersions: | ||
name: vresourceexport.kb.io | ||
$patch: delete | ||
- admissionReviewVersions: | ||
name: vresourceimport.kb.io | ||
$patch: delete | ||
--- | ||
apiVersion: admissionregistration.k8s.io/v1 | ||
kind: MutatingWebhookConfiguration | ||
metadata: | ||
name: mutating-webhook-configuration | ||
webhooks: | ||
- admissionReviewVersions: | ||
name: mresourceexport.kb.io | ||
$patch: delete | ||
- admissionReviewVersions: | ||
name: mresourceimport.kb.io | ||
$patch: delete | ||
- admissionReviewVersions: | ||
- v1 | ||
- v1beta1 | ||
name: mclusterclaim.kb.io | ||
namespaceSelector: | ||
matchLabels: | ||
kubernetes.io/metadata.name: kube-system | ||
- admissionReviewVersions: | ||
- v1 | ||
- v1beta1 | ||
name: mclusterset.kb.io | ||
namespaceSelector: | ||
matchLabels: | ||
kubernetes.io/metadata.name: kube-system | ||
--- | ||
apiVersion: admissionregistration.k8s.io/v1 | ||
kind: ValidatingWebhookConfiguration | ||
metadata: | ||
name: validating-webhook-configuration | ||
webhooks: | ||
- admissionReviewVersions: | ||
- v1 | ||
- v1beta1 | ||
name: vclusterclaim.kb.io | ||
namespaceSelector: | ||
matchLabels: | ||
kubernetes.io/metadata.name: kube-system | ||
- admissionReviewVersions: | ||
- v1 | ||
- v1beta1 | ||
name: vclusterset.kb.io | ||
namespaceSelector: | ||
matchLabels: | ||
kubernetes.io/metadata.name: kube-system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters