-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Move k8s script to docker-config-engine #14788
Changes from 8 commits
cab707c
4140562
5bd3cf3
1a08821
339233a
f0cd6c1
7014bca
e984011
98209f6
bf36f85
c7f9540
eebb4b0
3925c93
94e8cd2
679db38
8ec5240
7bfb304
66abe57
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,7 +178,7 @@ INCLUDE_ROUTER_ADVERTISER ?= y | |
|
||
# INCLUDE_KUBERNETES - if set to y kubernetes packages are installed to be able to | ||
# run as worker node in kubernetes cluster. | ||
INCLUDE_KUBERNETES ?= n | ||
INCLUDE_KUBERNETES ?= y | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I just enable it for this moment to check PR build tests pass rate. Should disable it as default. |
||
|
||
KUBE_DOCKER_PROXY = http://172.16.1.1:3128/ | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ import datetime | |
import docker | ||
from swsscommon import swsscommon | ||
|
||
CTR_STATE_SCR_PATH = '/usr/share/sonic/scripts/container_startup.py' | ||
CTR_STATE_SCR_PATH = '/etc/sonic/remote_ctr.config.json' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The logic here is to check whether k8s feature is included. If the file exists, it means included. So just check file whether exists, don't care the content. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you also want to change CTR_STATE_SCR_PATH -> CTRMGRD_SERVICE_PATH There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, changed. |
||
|
||
state_db = None | ||
|
||
|
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 am confused:
If $RUNTIME_OWNER=="kube" and CTR_SCRIPT does not exist, you run the script? #Closed
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.
This code means if $RUNTIME_OWNER=="kube" and CTR_SCRIPT exists, than I run the script
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.
Will run the script every time and check inside the script to decide to continue code is here.