-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fake-source-cluster for testing the sync service #364
Add fake-source-cluster for testing the sync service #364
Conversation
Hi @saza-ku. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
docker-compose-local.yml
Outdated
@@ -49,6 +53,38 @@ services: | |||
- KWOK_KUBE_APISERVER_PORT=3131 | |||
networks: | |||
- simulator-internal-network | |||
debug-real-cluster: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug-real-cluster: | |
fake-real-cluster: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that "fake" is more appropriate than "debug".
"debug" seems to overly narrow the intended purpose of the cluster.
However, "fake" and "real" words are contradictory.
How about "fake-source-cluster"?
Makefile
Outdated
@@ -68,10 +68,18 @@ docker_up_local: | |||
.PHONY: docker_build_and_up | |||
docker_build_and_up: docker_build docker_up_local | |||
|
|||
.PHONY: docker_debug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we should add a new make command.
Can we implement it as an option in the existing docker_up_local
, like:
docker compose up -d --profile $(profiles)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can specify the profiles by an environment variable of COMPOSE_PROFILES
, like this.
make docker_up_local -e COMPOSE_PROFILES=externalImportEnabled
So this PR doesn't fix Makefile.
/ok-to-test |
docker-compose-local.yml
Outdated
@@ -49,6 +53,38 @@ services: | |||
- KWOK_KUBE_APISERVER_PORT=3131 | |||
networks: | |||
- simulator-internal-network | |||
debug-real-cluster: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that "fake" is more appropriate than "debug".
"debug" seems to overly narrow the intended purpose of the cluster.
However, "fake" and "real" words are contradictory.
How about "fake-source-cluster"?
2692456
to
e9a67e5
Compare
Could you please also update |
Updated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: Kensei Nakada <[email protected]>
68c71c4
to
5ab5224
Compare
docker-compose.yml
Outdated
@@ -3,6 +3,9 @@ services: | |||
simulator-server: | |||
image: registry.k8s.io/scheduler-simulator/simulator-backend:v0.2.0 | |||
container_name: simulator-server | |||
volumes: | |||
- ./simulator/config.yaml:/config.yaml | |||
- ./simulator/kubeconfig.yaml:/kubeconfig.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't mount this kubeconfig since we don't have fake-source-cluster in this case.
4a7a4cb
to
38c9288
Compare
38c9288
to
d6cd2d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ordovicia, sanposhiho, saza-ku The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…#364) * add debug-real-cluster * delete init-debug-real-cluster * rename debug profile to externalImportEnabled * rename debug-real-cluster to fake-source-cluster * delete docker_debug and docker_down_debug * delete config.yaml and kubeconfig.yaml from the image and mount them as volumes * add description of how to run fake-source-cluster * fix description of how to run fake-source-cluster Co-authored-by: Kensei Nakada <[email protected]> * mount config.yaml and in docker-compose.yml --------- Co-authored-by: Kensei Nakada <[email protected]>
…#364) * add debug-real-cluster * delete init-debug-real-cluster * rename debug profile to externalImportEnabled * rename debug-real-cluster to fake-source-cluster * delete docker_debug and docker_down_debug * delete config.yaml and kubeconfig.yaml from the image and mount them as volumes * add description of how to run fake-source-cluster * fix description of how to run fake-source-cluster Co-authored-by: Kensei Nakada <[email protected]> * mount config.yaml and in docker-compose.yml --------- Co-authored-by: Kensei Nakada <[email protected]>
What type of PR is this?
/area simulator
/kind feature
What this PR does / why we need it:
This PR adds a kwok cluster that will be the source cluster of import/sync when debugging.
This cluster starts by running
make docker_debug
.Which issue(s) this PR fixes:
Part of #327
Special notes for your reviewer:
When you edit
simulator/config.yaml
to enableexternalImportEnabled
and runmake docker_debug
, you will seenode-0
,node-1
andnode-2
in the simulator UI./label tide/merge-method-squash