File tree 4 files changed +7
-4
lines changed
4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,6 @@ SONIC_BUILD_INSTRUCTION := make \
344
344
SHUTDOWN_BGP_ON_START=$(SHUTDOWN_BGP_ON_START) \
345
345
INCLUDE_KUBERNETES=$(INCLUDE_KUBERNETES) \
346
346
KUBERNETES_VERSION=$(KUBERNETES_VERSION) \
347
- KUBERNETES_CNI_VERSION=$(KUBERNETES_CNI_VERSION) \
348
347
K8s_GCR_IO_PAUSE_VERSION=$(K8s_GCR_IO_PAUSE_VERSION) \
349
348
INCLUDE_KUBERNETES_MASTER=$(INCLUDE_KUBERNETES_MASTER) \
350
349
SONIC_ENABLE_PFCWD_ON_START=$(ENABLE_PFCWD_ON_START) \
Original file line number Diff line number Diff line change 270
270
# # Install Kubernetes
271
271
echo ' [INFO] Install kubernetes'
272
272
install_kubernetes ${KUBERNETES_VERSION}
273
- sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install kubernetes-cni=${KUBERNETES_CNI_VERSION}
274
273
else
275
274
echo ' [INFO] Skipping Install kubernetes'
276
275
fi
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ INCLUDE_MACSEC = y
165
165
166
166
# INCLUDE_KUBERNETES - if set to y kubernetes packages are installed to be able to
167
167
# run as worker node in kubernetes cluster.
168
- INCLUDE_KUBERNETES = n
168
+ INCLUDE_KUBERNETES ? = n
169
169
170
170
KUBE_DOCKER_PROXY = http://172.16.1.1:3128/
171
171
@@ -175,7 +175,6 @@ KUBE_DOCKER_PROXY = http://172.16.1.1:3128/
175
175
# NOTE: As a worker node it has to run version compatible to kubernetes master.
176
176
#
177
177
KUBERNETES_VERSION = 1.22.2-00
178
- KUBERNETES_CNI_VERSION = 0.8.7-00
179
178
K8s_GCR_IO_PAUSE_VERSION = 3.5
180
179
181
180
# INCLUDE_KUBERNETES_MASTER - if set to y kubernetes packages are installed o be able
Original file line number Diff line number Diff line change 99
99
USE_K8S_PROXY : ""
100
100
}
101
101
102
+ ENABLED_FEATURE_SET = {"telemetry" , "snmp" }
103
+
102
104
def log_debug (m ):
103
105
msg = "{}: {}" .format (inspect .stack ()[1 ][3 ], m )
104
106
syslog .syslog (syslog .LOG_DEBUG , msg )
@@ -260,6 +262,8 @@ def run(self):
260
262
key , op , fvs = subscriber .pop ()
261
263
if not key :
262
264
continue
265
+ if subscriber .getTableName () == FEATURE_TABLE and key not in ENABLED_FEATURE_SET :
266
+ continue
263
267
log_debug ("Received message : '%s'" % str ((key , op , fvs )))
264
268
for callback in (self .callbacks
265
269
[subscriber .getDbConnector ().getDbName ()]
@@ -280,6 +284,8 @@ def set_node_labels(server):
280
284
labels ["sonic_version" ] = version_info ['build_version' ]
281
285
labels ["hwsku" ] = device_info .get_hwsku () if not UNIT_TESTING else "mock"
282
286
labels ["deployment_type" ] = dep_type
287
+ platform = device_info .get_platform ()
288
+ labels ["worker.sonic/platform" ] = platform if platform is not None else ""
283
289
server .mod_db_entry (STATE_DB_NAME ,
284
290
KUBE_LABEL_TABLE , KUBE_LABEL_SET_KEY , labels )
285
291
You can’t perform that action at this time.
0 commit comments